|
@@ -42,6 +42,23 @@ public class DeviceChargingHistoryController {
|
|
|
return deviceChargingHistoryService.mySpendPage(page);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("mySpendPageCount")
|
|
|
+ @ApiOperation("财务管理-支出管理-设备管理费缴费统计")
|
|
|
+ public R<Integer> mySpendPageCount(@RequestBody DeviceChargingHistoryDto.PageByTopMerc page) {
|
|
|
+ page.getPage().setSize(-1);
|
|
|
+ page.setCurMercId(MercAuthUtils.getMercId());
|
|
|
+ PageBean<DeviceChargingHistoryDto.MySpendPageVO> pageVoPageBean = R.feignCheckData(deviceChargingHistoryService.mySpendPage(page));
|
|
|
+ List<DeviceChargingHistoryDto.MySpendPageVO> records = pageVoPageBean.getRecords();
|
|
|
+ int totalMoney = 0;
|
|
|
+ if (CollUtil.isNotEmpty(records)) {
|
|
|
+ for (DeviceChargingHistoryDto.MySpendPageVO r : records) {
|
|
|
+ totalMoney += r.getChargingMoney();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return R.ok(totalMoney);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@PostMapping("pageByTopMerc")
|
|
|
@ApiOperation("加盟商-服务费管理-设备管理费")
|
|
|
public R<PageBean<DeviceChargingHistoryDto.PageVo>> pageByTopMerc(@RequestBody @Validated DeviceChargingHistoryDto.PageByTopMerc page) {
|