|
@@ -72,6 +72,14 @@ public class PointsRechargeController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/statisticsList")
|
|
@GetMapping("/statisticsList")
|
|
|
public R<IPage<PointsRechargeVO>> statisticsList(PageParam<PointsRecharge> pageParam, PointsRecharge pointsRecharge) {
|
|
public R<IPage<PointsRechargeVO>> statisticsList(PageParam<PointsRecharge> pageParam, PointsRecharge pointsRecharge) {
|
|
|
|
|
+ if (pointsRecharge.getChannelIdList()==null||pointsRecharge.getChannelIdList().isEmpty()){
|
|
|
|
|
+ throw new GlobalException("请求参数-所属企业不允许为空");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (pointsRecharge.getChannelIdList().contains(0L)){
|
|
|
|
|
+ Long userId = SecurityUtils.getSysUser().getUserId();
|
|
|
|
|
+ List<Long> channelIdList = sysUserService.findByUserIdListId(userId);
|
|
|
|
|
+ pointsRecharge.setChannelIdList(channelIdList);
|
|
|
|
|
+ }
|
|
|
IPage<PointsRechargeVO> page = pointsRechargeService.statisticsList(pointsRecharge);
|
|
IPage<PointsRechargeVO> page = pointsRechargeService.statisticsList(pointsRecharge);
|
|
|
return R.SUCCESS(page);
|
|
return R.SUCCESS(page);
|
|
|
}
|
|
}
|