| | |
| | | @GetMapping("/demand/list") |
| | | @Operation(summary = "负荷移植-月最大需量,实测需量,有功功率") |
| | | public CommonResult<List<PowerDemandDTO>> getPowerDemandList(@RequestParam Map<String, Object> params) { |
| | | log.info("负荷移植-月最大需量,实测需量,有功功率"); |
| | | List<PowerDemandDTO> result = new ArrayList<>(); |
| | | List<PowerDemandEntity> list = powerDemandService.list(params); |
| | | if (CollectionUtils.isEmpty(result)) { |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | log.info("list.size=" + list.size()); |
| | | return success(result); |
| | | } |
| | | Calendar calendar = Calendar.getInstance(); |