Commit 8b1abb12 by chongli

买券活动统计功能

parent 45cf4458
......@@ -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;
}
}
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;
}
}
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment