|
@@ -2,6 +2,8 @@ package com.xy.controller;
|
|
|
|
|
|
import com.xy.annotate.RestMappingController;
|
|
import com.xy.annotate.RestMappingController;
|
|
import com.xy.dto.DeviceAlgorithmChargingDto;
|
|
import com.xy.dto.DeviceAlgorithmChargingDto;
|
|
|
|
+import com.xy.dto.DeviceAlgorithmChargingHistoryDto;
|
|
|
|
+import com.xy.service.DeviceAlgorithmChargingHistoryServiceImpl;
|
|
import com.xy.service.DeviceAlgorithmChargingServiceImpl;
|
|
import com.xy.service.DeviceAlgorithmChargingServiceImpl;
|
|
import com.xy.utils.MercAuthUtils;
|
|
import com.xy.utils.MercAuthUtils;
|
|
import com.xy.utils.PageBean;
|
|
import com.xy.utils.PageBean;
|
|
@@ -14,17 +16,17 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
-@Api(tags = "小程序-设备计费历史表")
|
|
|
|
|
|
+@Api(tags = "小程序-设备算法计费历史表")
|
|
@RestMappingController("merc-mini/device-algorithm-charging")
|
|
@RestMappingController("merc-mini/device-algorithm-charging")
|
|
public class DeviceAlgorithmChargingController {
|
|
public class DeviceAlgorithmChargingController {
|
|
|
|
|
|
- private DeviceAlgorithmChargingServiceImpl deviceAlgorithmChargingService;
|
|
|
|
|
|
+ private DeviceAlgorithmChargingHistoryServiceImpl deviceAlgorithmChargingHistoryService;
|
|
|
|
|
|
@PostMapping("page")
|
|
@PostMapping("page")
|
|
@ApiOperation("分页查询")
|
|
@ApiOperation("分页查询")
|
|
- public R<PageBean<DeviceAlgorithmChargingDto.Vo>> page(@RequestBody @Validated DeviceAlgorithmChargingDto.Page page) {
|
|
|
|
|
|
+ public R<PageBean<DeviceAlgorithmChargingHistoryDto.Vo>> page(@RequestBody DeviceAlgorithmChargingHistoryDto.Page page) {
|
|
page.setMercId(MercAuthUtils.getMercId());
|
|
page.setMercId(MercAuthUtils.getMercId());
|
|
- return deviceAlgorithmChargingService.page(page);
|
|
|
|
|
|
+ return deviceAlgorithmChargingHistoryService.page(page);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|