Quellcode durchsuchen

设备管理费改版

李进 vor 1 Jahr
Ursprung
Commit
a7d8e5cbbe

+ 6 - 4
device-api-service-merc-mini/src/main/java/com/xy/controller/DeviceAlgorithmChargingController.java

@@ -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);
     }
     }
 
 
 }
 }