From 757a68d57adda9f7a2101b2f55df0cb927064b72 Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Tue, 13 May 2025 13:53:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E7=AB=AF=E8=BF=90=E8=A1=8C=E8=AF=84?= =?UTF-8?q?=E4=BB=B7=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/njcn/device/pq/controller/DeviceController.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeviceController.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeviceController.java index 7ca6def60..a301294e5 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeviceController.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/controller/DeviceController.java @@ -203,13 +203,10 @@ public class DeviceController extends BaseController { @ApiOperation("台账状态统计") @PostMapping(value = "statisticDevNum") @OperateInfo(info = LogEnum.BUSINESS_COMMON) - public HttpResult statisticDevNum(@RequestParam Integer powerFlag, @RequestParam String deptId) { + public HttpResult statisticDevNum(@RequestBody DeviceInfoParam deviceInfoParam) { DevStatusNumVO devStatusNumVO = new DevStatusNumVO(); String methodDescribe = getMethodDescribe("statisticDevNum"); - DeviceInfoParam deviceInfoParam = new DeviceInfoParam(); - deviceInfoParam.setDeptIndex(deptId); deviceInfoParam.setStatisticalType(new SimpleDTO()); - deviceInfoParam.setPowerFlag(powerFlag); List generalDeviceDTOList = generalDeviceService.getDeviceInfo(deviceInfoParam,new ArrayList<>(), Stream.of(1).collect(Collectors.toList())); List devIds = generalDeviceDTOList.stream().flatMap(list->list.getDeviceIndexes().stream()).collect(Collectors.toList()); if(CollectionUtil.isEmpty(devIds)){