提交 39d5f2ab authored 作者: zhoushaopan's avatar zhoushaopan

feat(统计模块): 增加备注

增加备注
上级 7174d399
...@@ -1295,6 +1295,20 @@ public class DeviceLibraryController { ...@@ -1295,6 +1295,20 @@ public class DeviceLibraryController {
} }
@Transactional(rollbackFor = Exception.class)
@GetMapping("/compare")
@ApiOperation(value = "查看脏数据")
public ResponseEntity<List<DeviceLibrary>> compareData(){
Integer unitId = userUtils.getCurrentUnitId();
List<DeviceLibrary> deviceLibraries = deviceLibraryService.getDeviceByUnitNameAll(unitId);
DeviceLibrarySelectVo deviceLibrarySelectVo = new DeviceLibrarySelectVo();
deviceLibrarySelectVo.setAreaId(2);
List<DeviceLibrary> coreDevicePage = deviceLibraryService.getCoreDevicePage(deviceLibrarySelectVo);
deviceLibraries.removeAll(coreDevicePage);
return ResponseEntity.ok(coreDevicePage);
}
// @ApiOperation(value = "修改单位名称", notes = "修改单位名称") // @ApiOperation(value = "修改单位名称", notes = "修改单位名称")
// @PostMapping("/updateDeviceLocationAndOwnUnit") // @PostMapping("/updateDeviceLocationAndOwnUnit")
// @Transactional(rollbackFor = Exception.class) // @Transactional(rollbackFor = Exception.class)
......
...@@ -547,6 +547,7 @@ public class StatisticalServiceImpl implements StatisticalService { ...@@ -547,6 +547,7 @@ public class StatisticalServiceImpl implements StatisticalService {
workBench.setDailyDeviceNum(Long.valueOf(deviceLibraries.stream().filter(deviceLibrary -> workBench.setDailyDeviceNum(Long.valueOf(deviceLibraries.stream().filter(deviceLibrary ->
deviceLibrary.getOwnUnit().equals(unitName)&&Arrays.asList(2,14).contains(deviceLibrary.getLifeStatus())) deviceLibrary.getOwnUnit().equals(unitName)&&Arrays.asList(2,14).contains(deviceLibrary.getLifeStatus()))
.count()).intValue()); .count()).intValue());
List<Task> allTasks = taskDao.findAll(); List<Task> allTasks = taskDao.findAll();
List<Task> tasks = allTasks.stream().filter(task -> task.getBusinessType()==7).collect(Collectors.toList()); List<Task> tasks = allTasks.stream().filter(task -> task.getBusinessType()==7).collect(Collectors.toList());
List<Task> tasks2 = allTasks.stream().filter(task -> task.getBusinessType()==4).collect(Collectors.toList()); List<Task> tasks2 = allTasks.stream().filter(task -> task.getBusinessType()==4).collect(Collectors.toList());
......
...@@ -15,10 +15,19 @@ public class WorkBench { ...@@ -15,10 +15,19 @@ public class WorkBench {
private Integer packingNum; private Integer packingNum;
/**
* 全省装备库
*/
private Integer allDeviceNum; private Integer allDeviceNum;
/**
* 省级装备库
*/
private Integer selfDeviceNum; private Integer selfDeviceNum;
/**
* 本级管理库
*/
private Integer dailyDeviceNum; private Integer dailyDeviceNum;
private Integer matchingDeviceNum; private Integer matchingDeviceNum;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论