终端运行评价接口

This commit is contained in:
2025-05-13 13:53:44 +08:00
parent e6d75386aa
commit 757a68d57a

View File

@@ -203,13 +203,10 @@ public class DeviceController extends BaseController {
@ApiOperation("台账状态统计") @ApiOperation("台账状态统计")
@PostMapping(value = "statisticDevNum") @PostMapping(value = "statisticDevNum")
@OperateInfo(info = LogEnum.BUSINESS_COMMON) @OperateInfo(info = LogEnum.BUSINESS_COMMON)
public HttpResult<DevStatusNumVO> statisticDevNum(@RequestParam Integer powerFlag, @RequestParam String deptId) { public HttpResult<DevStatusNumVO> statisticDevNum(@RequestBody DeviceInfoParam deviceInfoParam) {
DevStatusNumVO devStatusNumVO = new DevStatusNumVO(); DevStatusNumVO devStatusNumVO = new DevStatusNumVO();
String methodDescribe = getMethodDescribe("statisticDevNum"); String methodDescribe = getMethodDescribe("statisticDevNum");
DeviceInfoParam deviceInfoParam = new DeviceInfoParam();
deviceInfoParam.setDeptIndex(deptId);
deviceInfoParam.setStatisticalType(new SimpleDTO()); deviceInfoParam.setStatisticalType(new SimpleDTO());
deviceInfoParam.setPowerFlag(powerFlag);
List<GeneralDeviceDTO> generalDeviceDTOList = generalDeviceService.getDeviceInfo(deviceInfoParam,new ArrayList<>(), Stream.of(1).collect(Collectors.toList())); List<GeneralDeviceDTO> generalDeviceDTOList = generalDeviceService.getDeviceInfo(deviceInfoParam,new ArrayList<>(), Stream.of(1).collect(Collectors.toList()));
List<String> devIds = generalDeviceDTOList.stream().flatMap(list->list.getDeviceIndexes().stream()).collect(Collectors.toList()); List<String> devIds = generalDeviceDTOList.stream().flatMap(list->list.getDeviceIndexes().stream()).collect(Collectors.toList());
if(CollectionUtil.isEmpty(devIds)){ if(CollectionUtil.isEmpty(devIds)){