|
|
@@ -49,6 +49,7 @@ public class IotReportFailureController {
|
|
|
Long loginUserDeptId = SecurityFrameworkUtils.getLoginUserDeptId();
|
|
|
companyCode = deptUtil.getCompanyCode(loginUserDeptId);
|
|
|
ids = deptUtil.getDeptIds(companyCode);
|
|
|
+ ids.add(loginUserDeptId);
|
|
|
} else {
|
|
|
ids = deptService.getChildDeptIdListFromCache(iotFailureReportPageReqVO.getDeptId());
|
|
|
ids.add(iotFailureReportPageReqVO.getDeptId());
|
|
|
@@ -59,7 +60,9 @@ public class IotReportFailureController {
|
|
|
Long trans = iotFailureReportMapper.selectCountByTimeAndStatus(iotFailureReportPageReqVO, ids);
|
|
|
iotFailureReportPageReqVO.setStatus("finished");
|
|
|
Long finished = iotFailureReportMapper.selectCountByTimeAndStatus(iotFailureReportPageReqVO, ids);
|
|
|
- return CommonResult.success(ImmutableMap.of("reporting", reporting, "trans", trans, "finished", finished));
|
|
|
+ iotFailureReportPageReqVO.setStatus("close");
|
|
|
+ Long close = iotFailureReportMapper.selectCountByTimeAndStatus(iotFailureReportPageReqVO, ids);
|
|
|
+ return CommonResult.success(ImmutableMap.of("reporting", reporting, "trans", trans, "finished", finished,"close", close));
|
|
|
}
|
|
|
|
|
|
@GetMapping("/page")
|