Compare commits
2 Commits
0dbe162d7f
...
d00c3bc327
Author | SHA1 | Date |
---|---|---|
|
d00c3bc327 | |
|
533ef4797f |
|
@ -38,6 +38,18 @@ public class BackMemberStatisticsController {
|
||||||
redisService.setCacheObject(CacheConstants.TOP_30_ACTIVITY + ETop30Type.AMOUNT.getKey(), flag);
|
redisService.setCacheObject(CacheConstants.TOP_30_ACTIVITY + ETop30Type.AMOUNT.getKey(), flag);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("/getShowPeople")
|
||||||
|
public AjaxResult getShowPeople() {
|
||||||
|
return AjaxResult.success("操作成功!", redisService.getCacheObject(CacheConstants.TOP_30_ACTIVITY + ETop30Type.PEOPLE.getKey()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getShowAmount")
|
||||||
|
public AjaxResult getShowAmount() {
|
||||||
|
return AjaxResult.success("操作成功!", redisService.getCacheObject(CacheConstants.TOP_30_ACTIVITY + ETop30Type.AMOUNT.getKey()));
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/topPeople")
|
@PostMapping("/topPeople")
|
||||||
public AjaxResult topPeople(@RequestBody DirectStatisticsTop30QueryParam param) {
|
public AjaxResult topPeople(@RequestBody DirectStatisticsTop30QueryParam param) {
|
||||||
param.setFaker(false);
|
param.setFaker(false);
|
||||||
|
|
|
@ -72,8 +72,10 @@ public class MemberStatisticsServiceImpl implements IMemberStatisticsService {
|
||||||
result = generateFakeData(list, 30, fakerList, type);
|
result = generateFakeData(list, 30, fakerList, type);
|
||||||
}
|
}
|
||||||
for (DirectStatisticsTop30VO directStatisticsTop30VO : result) {
|
for (DirectStatisticsTop30VO directStatisticsTop30VO : result) {
|
||||||
directStatisticsTop30VO.setMemberCode(DataMaskingUtil.mask(directStatisticsTop30VO.getMemberCode(), 2, 2));
|
if(param.getFaker()){
|
||||||
directStatisticsTop30VO.setMemberName(DataMaskingUtil.mask(directStatisticsTop30VO.getMemberName(), 1, 0));
|
directStatisticsTop30VO.setMemberCode(DataMaskingUtil.mask(directStatisticsTop30VO.getMemberCode(), 2, 2));
|
||||||
|
directStatisticsTop30VO.setMemberName(DataMaskingUtil.mask(directStatisticsTop30VO.getMemberName(), 1, 0));
|
||||||
|
}
|
||||||
directStatisticsTop30VO.setNumberOfAmount(directStatisticsTop30VO.getNumberOfAmount().divide(new BigDecimal(10000)));
|
directStatisticsTop30VO.setNumberOfAmount(directStatisticsTop30VO.getNumberOfAmount().divide(new BigDecimal(10000)));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
where
|
where
|
||||||
del_flag = 0
|
del_flag = 0
|
||||||
and order_status = 1
|
and order_status = 1
|
||||||
|
AND (order_type in (1,2) or (order_Type = 3 and ORDER_TYPE_EXTEND = 1))
|
||||||
and pay_time between #{param.startDate} and #{param.endDate}
|
and pay_time between #{param.startDate} and #{param.endDate}
|
||||||
group by PK_REFERENCE
|
group by PK_REFERENCE
|
||||||
) r
|
) r
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
where
|
where
|
||||||
del_flag = 0
|
del_flag = 0
|
||||||
and order_status = 1
|
and order_status = 1
|
||||||
|
AND (order_type in (1,2) or (order_Type = 3 and ORDER_TYPE_EXTEND = 1))
|
||||||
and pay_time between #{param.startDate} and #{param.endDate}
|
and pay_time between #{param.startDate} and #{param.endDate}
|
||||||
group by PK_REFERENCE
|
group by PK_REFERENCE
|
||||||
) r
|
) r
|
||||||
|
|
Loading…
Reference in New Issue