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
1f923ff3
authored
Jun 12, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加onlyMe字段
parent
4bbba582
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
0 deletions
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/AbstractRuleConditionBean.java
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/MultipleCourseConditionBean.java
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/AbstractRuleConditionBean.java
View file @
1f923ff3
...
...
@@ -18,6 +18,7 @@ public abstract class AbstractRuleConditionBean<T extends AbstractRuleConditionB
protected
String
resourceIds
;
// 资源ID
protected
Date
productStartDate
;
// 产品或资源ID的开始时间
protected
Date
productEndDate
;
// 产品或资源的结束时间
protected
Integer
onlyMe
;
// onlyMe:0/1 是否只能本人使用
public
abstract
boolean
isEnableUse
(
T
t
);
...
...
@@ -63,4 +64,12 @@ public abstract class AbstractRuleConditionBean<T extends AbstractRuleConditionB
this
.
productEndDate
=
productEndDate
;
}
public
Integer
getOnlyMe
()
{
return
onlyMe
;
}
public
void
setOnlyMe
(
Integer
onlyMe
)
{
this
.
onlyMe
=
onlyMe
;
}
}
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/MultipleCourseConditionBean.java
View file @
1f923ff3
...
...
@@ -14,6 +14,7 @@ public class MultipleCourseConditionBean {
protected
Integer
type
;
// 类型
protected
Date
productStartDate
;
// 产品或资源ID的开始时间
protected
Date
productEndDate
;
// 产品或资源的结束时间
protected
Integer
onlyMe
;
// onlyMe:0/1 是否只能本人使用
/**
...
...
@@ -135,6 +136,14 @@ public class MultipleCourseConditionBean {
public
void
setConditionList
(
List
<
ConditionMultipleElement
>
conditionList
)
{
this
.
conditionList
=
conditionList
;
}
public
Integer
getOnlyMe
()
{
return
onlyMe
;
}
public
void
setOnlyMe
(
Integer
onlyMe
)
{
this
.
onlyMe
=
onlyMe
;
}
...
...
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/VoucherItemDTO.java
View file @
1f923ff3
...
...
@@ -43,6 +43,7 @@ public class VoucherItemDTO implements Serializable {
private
int
multiple
;
private
String
multiAmount
;
private
Integer
onlyMe
;
//是否本人使用1是本人使用;0是非本人使用
public
void
doExecuteNullField
()
{
if
(
description
==
null
)
{
...
...
@@ -259,4 +260,14 @@ public class VoucherItemDTO implements Serializable {
this
.
multiAmount
=
multiAmount
;
}
public
Integer
getOnlyMe
()
{
return
onlyMe
;
}
public
void
setOnlyMe
(
Integer
onlyMe
)
{
this
.
onlyMe
=
onlyMe
;
}
}
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/VoucherRuleBean.java
View file @
1f923ff3
...
...
@@ -151,6 +151,11 @@ public class VoucherRuleBean implements java.io.Serializable {
* 发放用户类型Msg
*/
private
String
sendToUserValueMsg
;
/**
* 是否仅限本人使用
*/
private
int
onlyMe
;
//仅限本人使用:1是;0否
@SuppressWarnings
(
"rawtypes"
)
public
AbstractRuleConditionBean
getRuleCondition
()
{
...
...
@@ -389,4 +394,12 @@ public class VoucherRuleBean implements java.io.Serializable {
this
.
multiple
=
multiple
;
}
public
int
getOnlyMe
()
{
return
onlyMe
;
}
public
void
setOnlyMe
(
int
onlyMe
)
{
this
.
onlyMe
=
onlyMe
;
}
}
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