Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-common
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cd0ace1a
authored
Dec 21, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一单多人可使用多个抵用券功能
parent
c19269b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/VoucherItemDTO.java
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/VoucherRuleBean.java
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/VoucherItemDTO.java
View file @
cd0ace1a
...
@@ -48,6 +48,12 @@ public class VoucherItemDTO implements Serializable {
...
@@ -48,6 +48,12 @@ public class VoucherItemDTO implements Serializable {
private
Integer
userLimit
;
//领券人限制
private
Integer
userLimit
;
//领券人限制
private
String
alreadyShared
;
//是否被抢走
private
String
alreadyShared
;
//是否被抢走
private
String
qiangQuanUid
;
//抢券人UID
private
String
qiangQuanUid
;
//抢券人UID
//是否可以和其他种类券一起用
private
int
exclusive
;
//0否 1是
//一单可以使用的张数
private
int
canUseAmount
;
//限制同类型的券一单可以使用几张
//每满多少减多少 列:如值为100,则 200<=订单金额<300可以使用两张
private
BigDecimal
fullCutAmount
;
public
void
doExecuteNullField
()
{
public
void
doExecuteNullField
()
{
if
(
description
==
null
)
{
if
(
description
==
null
)
{
...
@@ -313,6 +319,36 @@ public class VoucherItemDTO implements Serializable {
...
@@ -313,6 +319,36 @@ public class VoucherItemDTO implements Serializable {
public
void
setQiangQuanUid
(
String
qiangQuanUid
)
{
public
void
setQiangQuanUid
(
String
qiangQuanUid
)
{
this
.
qiangQuanUid
=
qiangQuanUid
;
this
.
qiangQuanUid
=
qiangQuanUid
;
}
}
public
int
getExclusive
()
{
return
exclusive
;
}
public
void
setExclusive
(
int
exclusive
)
{
this
.
exclusive
=
exclusive
;
}
public
int
getCanUseAmount
()
{
return
canUseAmount
;
}
public
void
setCanUseAmount
(
int
canUseAmount
)
{
this
.
canUseAmount
=
canUseAmount
;
}
public
BigDecimal
getFullCutAmount
()
{
return
fullCutAmount
;
}
public
void
setFullCutAmount
(
BigDecimal
fullCutAmount
)
{
this
.
fullCutAmount
=
fullCutAmount
;
}
}
}
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/VoucherRuleBean.java
View file @
cd0ace1a
...
@@ -166,6 +166,21 @@ public class VoucherRuleBean implements java.io.Serializable {
...
@@ -166,6 +166,21 @@ public class VoucherRuleBean implements java.io.Serializable {
* 分享领取限制
* 分享领取限制
*/
*/
private
int
userLimit
;
//分享领取限制0:不限 2社员
private
int
userLimit
;
//分享领取限制0:不限 2社员
/**
* 是否可以和其他种类券一起用,0否 1是
*/
private
int
exclusive
;
/**
* 一单可以使用的张数
*/
private
int
canUseAmount
;
/**
* 每满多少减多少 列:如值为100,则 200<=订单金额<300可以使用两张
*/
private
BigDecimal
fullCutAmount
;
@SuppressWarnings
(
"rawtypes"
)
@SuppressWarnings
(
"rawtypes"
)
public
AbstractRuleConditionBean
getRuleCondition
()
{
public
AbstractRuleConditionBean
getRuleCondition
()
{
...
@@ -428,4 +443,28 @@ public class VoucherRuleBean implements java.io.Serializable {
...
@@ -428,4 +443,28 @@ public class VoucherRuleBean implements java.io.Serializable {
this
.
userLimit
=
userLimit
;
this
.
userLimit
=
userLimit
;
}
}
public
int
getExclusive
()
{
return
exclusive
;
}
public
void
setExclusive
(
int
exclusive
)
{
this
.
exclusive
=
exclusive
;
}
public
int
getCanUseAmount
()
{
return
canUseAmount
;
}
public
void
setCanUseAmount
(
int
canUseAmount
)
{
this
.
canUseAmount
=
canUseAmount
;
}
public
BigDecimal
getFullCutAmount
()
{
return
fullCutAmount
;
}
public
void
setFullCutAmount
(
BigDecimal
fullCutAmount
)
{
this
.
fullCutAmount
=
fullCutAmount
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment