|
@@ -1,6 +1,8 @@
|
|
|
package com.usky.vpp.controller.web;
|
|
package com.usky.vpp.controller.web;
|
|
|
|
|
|
|
|
import com.usky.common.core.bean.ApiResult;
|
|
import com.usky.common.core.bean.ApiResult;
|
|
|
|
|
+import com.usky.common.core.bean.CommonPage;
|
|
|
|
|
+import com.usky.vpp.domain.VppEnergyReadingMonthly;
|
|
|
import com.usky.vpp.service.VppSettlementService;
|
|
import com.usky.vpp.service.VppSettlementService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -16,34 +18,56 @@ public class SettlementController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private VppSettlementService vppSettlementService;
|
|
private VppSettlementService vppSettlementService;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 分页查询powermeter数据
|
|
|
|
|
+ * <ul>
|
|
|
|
|
+ * <li>id 主键ID 精确匹配</li>
|
|
|
|
|
+ * <li>customerName 客户名称 模糊匹配</li>
|
|
|
|
|
+ * <li>calcCycle 计算周期 模糊匹配</li>
|
|
|
|
|
+ * <li>current 页码</li>
|
|
|
|
|
+ * <li>size 页大小</li>
|
|
|
|
|
+ * </ul>
|
|
|
|
|
+ */
|
|
|
@GetMapping(value = "/reading")
|
|
@GetMapping(value = "/reading")
|
|
|
- public ApiResult<Object> pageReading(@RequestParam(required = false) java.util.Map<String, Object> params) {
|
|
|
|
|
- return ApiResult.success(null);
|
|
|
|
|
|
|
+ public ApiResult<CommonPage<VppEnergyReadingMonthly>> pageReading(
|
|
|
|
|
+ @RequestParam(value = "id", required = false) Long id,
|
|
|
|
|
+ @RequestParam(value = "customerName", required = false) String customerName,
|
|
|
|
|
+ @RequestParam(value = "calcCycle", required = false) String calcCycle,
|
|
|
|
|
+ @RequestParam(value = "current", required = false, defaultValue = "1") Integer current,
|
|
|
|
|
+ @RequestParam(value = "size", required = false, defaultValue = "20") Integer size) {
|
|
|
|
|
+ return ApiResult.success(vppSettlementService.pageReading(id, customerName, calcCycle, current, size));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping(value = "/reading/calculate")
|
|
@PostMapping(value = "/reading/calculate")
|
|
|
public ApiResult<Void> calculateReading(@RequestBody(required = false) Object body) {
|
|
public ApiResult<Void> calculateReading(@RequestBody(required = false) Object body) {
|
|
|
return ApiResult.success();
|
|
return ApiResult.success();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping(value = "/bill")
|
|
@GetMapping(value = "/bill")
|
|
|
public ApiResult<Object> pageBill(@RequestParam(required = false) java.util.Map<String, Object> params) {
|
|
public ApiResult<Object> pageBill(@RequestParam(required = false) java.util.Map<String, Object> params) {
|
|
|
return ApiResult.success(null);
|
|
return ApiResult.success(null);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping(value = "/bill")
|
|
@PostMapping(value = "/bill")
|
|
|
public ApiResult<Object> generateBill(@RequestBody(required = false) Object body) {
|
|
public ApiResult<Object> generateBill(@RequestBody(required = false) Object body) {
|
|
|
return ApiResult.success(null);
|
|
return ApiResult.success(null);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping(value = "/bill/{id}")
|
|
@GetMapping(value = "/bill/{id}")
|
|
|
public ApiResult<Object> getBill(@PathVariable("id") Long id, @RequestParam(required = false) java.util.Map<String, Object> params) {
|
|
public ApiResult<Object> getBill(@PathVariable("id") Long id, @RequestParam(required = false) java.util.Map<String, Object> params) {
|
|
|
return ApiResult.success(null);
|
|
return ApiResult.success(null);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping(value = "/bill/{id}/download")
|
|
@GetMapping(value = "/bill/{id}/download")
|
|
|
public ApiResult<Object> downloadBill(@PathVariable("id") Long id) {
|
|
public ApiResult<Object> downloadBill(@PathVariable("id") Long id) {
|
|
|
return ApiResult.success(null);
|
|
return ApiResult.success(null);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@GetMapping(value = "/payment")
|
|
@GetMapping(value = "/payment")
|
|
|
public ApiResult<Object> pagePayment(@RequestParam(required = false) java.util.Map<String, Object> params) {
|
|
public ApiResult<Object> pagePayment(@RequestParam(required = false) java.util.Map<String, Object> params) {
|
|
|
return ApiResult.success(null);
|
|
return ApiResult.success(null);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@PostMapping(value = "/payment")
|
|
@PostMapping(value = "/payment")
|
|
|
public ApiResult<Object> recordPayment(@RequestBody(required = false) Object body) {
|
|
public ApiResult<Object> recordPayment(@RequestBody(required = false) Object body) {
|
|
|
return ApiResult.success(null);
|
|
return ApiResult.success(null);
|