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
8b1abb12
authored
Feb 02, 2019
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
买券活动统计功能
parent
45cf4458
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
0 deletions
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/BuyVoucherActivityQuery.java
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/BuyVoucherActivityStatisticsBean.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/BuyVoucherActivityQuery.java
View file @
8b1abb12
...
...
@@ -20,6 +20,7 @@ public class BuyVoucherActivityQuery extends AbstractPagedQuery {
private
Integer
valid
;
// 活动有效标识1:有效 0失效
private
Date
createdTimeStart
;
//
private
Date
createdTimeEnd
;
private
Integer
buyAndUsed
;
//是否买了并使用了券1:有效 0失效
public
Integer
getId
()
{
return
id
;
...
...
@@ -73,4 +74,12 @@ public class BuyVoucherActivityQuery extends AbstractPagedQuery {
this
.
createdTimeEnd
=
createdTimeEnd
;
}
public
Integer
getBuyAndUsed
()
{
return
buyAndUsed
;
}
public
void
setBuyAndUsed
(
Integer
buyAndUsed
)
{
this
.
buyAndUsed
=
buyAndUsed
;
}
}
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/BuyVoucherActivityStatisticsBean.java
0 → 100644
View file @
8b1abb12
package
com
.
ctrip
.
fun
.
common
.
vo
.
basic
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
com.ctrip.fun.common.vo.user.CommuneExtBean
;
public
class
BuyVoucherActivityStatisticsBean
implements
Serializable
{
private
static
final
long
serialVersionUID
=
100000000000L
;
private
Integer
totalSaleOnline
;
//总售出套数
private
Integer
buyPersonsOnline
;
//线上购买人数
private
Integer
buyAndUsePersonsOnline
;
//购买并使用人数
private
Integer
buyAndNotUsePersonsOnline
;
//购买但未使用人数
private
List
<
VoucherRuleBean
>
voucherRules
=
new
ArrayList
<
VoucherRuleBean
>();
//活动券模板列表
private
List
<
CommuneExtBean
>
communeExts
=
new
ArrayList
<
CommuneExtBean
>();;
//使用或者未使用券每页会员
private
long
communeExtCounts
;
//使用或者未使用会员总人数
public
Integer
getTotalSaleOnline
()
{
return
totalSaleOnline
;
}
public
void
setTotalSaleOnline
(
Integer
totalSaleOnline
)
{
this
.
totalSaleOnline
=
totalSaleOnline
;
}
public
Integer
getBuyPersonsOnline
()
{
return
buyPersonsOnline
;
}
public
void
setBuyPersonsOnline
(
Integer
buyPersonsOnline
)
{
this
.
buyPersonsOnline
=
buyPersonsOnline
;
}
public
Integer
getBuyAndUsePersonsOnline
()
{
return
buyAndUsePersonsOnline
;
}
public
void
setBuyAndUsePersonsOnline
(
Integer
buyAndUsePersonsOnline
)
{
this
.
buyAndUsePersonsOnline
=
buyAndUsePersonsOnline
;
}
public
Integer
getBuyAndNotUsePersonsOnline
()
{
return
buyAndNotUsePersonsOnline
;
}
public
void
setBuyAndNotUsePersonsOnline
(
Integer
buyAndNotUsePersonsOnline
)
{
this
.
buyAndNotUsePersonsOnline
=
buyAndNotUsePersonsOnline
;
}
public
List
<
VoucherRuleBean
>
getVoucherRules
()
{
return
voucherRules
;
}
public
void
setVoucherRules
(
List
<
VoucherRuleBean
>
voucherRules
)
{
this
.
voucherRules
=
voucherRules
;
}
public
List
<
CommuneExtBean
>
getCommuneExts
()
{
return
communeExts
;
}
public
void
setCommuneExts
(
List
<
CommuneExtBean
>
communeExts
)
{
this
.
communeExts
=
communeExts
;
}
public
long
getCommuneExtCounts
()
{
return
communeExtCounts
;
}
public
void
setCommuneExtCounts
(
long
communeExtCounts
)
{
this
.
communeExtCounts
=
communeExtCounts
;
}
}
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/basic/VoucherRuleBean.java
View file @
8b1abb12
...
...
@@ -181,6 +181,24 @@ public class VoucherRuleBean implements java.io.Serializable {
* 每满多少减多少 列:如值为100,则 200<=订单金额<300可以使用两张
*/
private
BigDecimal
fullCutAmount
;
/**
* 发放总数
*/
private
long
sendAmount
;
/**
* 使用总数
*/
private
long
usedAmount
;
/**
* 未使用总数
*/
private
long
notUsedCount
;
/**
* 百分比
*/
private
String
percent
;
@SuppressWarnings
(
"rawtypes"
)
public
AbstractRuleConditionBean
getRuleCondition
()
{
...
...
@@ -467,4 +485,38 @@ public class VoucherRuleBean implements java.io.Serializable {
this
.
fullCutAmount
=
fullCutAmount
;
}
public
long
getSendAmount
()
{
return
sendAmount
;
}
public
void
setSendAmount
(
long
sendAmount
)
{
this
.
sendAmount
=
sendAmount
;
}
public
long
getUsedAmount
()
{
return
usedAmount
;
}
public
void
setUsedAmount
(
long
usedAmount
)
{
this
.
usedAmount
=
usedAmount
;
}
public
long
getNotUsedCount
()
{
return
notUsedCount
;
}
public
void
setNotUsedCount
(
long
notUsedCount
)
{
this
.
notUsedCount
=
notUsedCount
;
}
public
String
getPercent
()
{
return
percent
;
}
public
void
setPercent
(
String
percent
)
{
this
.
percent
=
percent
;
}
}
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