fix gao event rank
This commit is contained in:
+1
@@ -279,6 +279,7 @@ public class GaoEventRecordServiceImplement extends AbstractEntityService<GaoEve
|
||||
@Override
|
||||
public PageResult<GaoCustomerEventRankView> pageRankByRange(GaoEventRecordRankPage page) {
|
||||
TimiException.required(page.getStoreId(), "not found page.storeId");
|
||||
page.setTodayDateValue(dateValue(Time.now()));
|
||||
PageResult<GaoCustomerEventRankView> result = new PageResult<>();
|
||||
result.setTotal(mapper.countRankByRange(page));
|
||||
result.setList(mapper.selectRankByRange(page));
|
||||
|
||||
@@ -23,9 +23,24 @@ public class GaoEventRecordRankPage extends BasePage {
|
||||
/// 登记事件 ID 列表,为空查询全部登记事件
|
||||
private List<String> eventIdList;
|
||||
|
||||
/// 排行类型
|
||||
private RankType rankType;
|
||||
|
||||
/// 开始登记时间
|
||||
private Long beginAt;
|
||||
|
||||
/// 结束登记时间
|
||||
private Long endAt;
|
||||
|
||||
/// 查询当天日期值,服务端内部填充,格式为 yyyyMMdd
|
||||
private Integer todayDateValue;
|
||||
|
||||
public enum RankType {
|
||||
/// 按累计登记天数
|
||||
TOTAL_DAYS,
|
||||
/// 按累计登记次数
|
||||
TOTAL_COUNT,
|
||||
/// 按最近连续登记天数
|
||||
CONTINUOUS_DAYS
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user