|
|
@ -156,7 +156,7 @@ public class MaintenanceServiceImpl extends BaseServiceImpl<MaintenanceMapper, O |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 开启一个流程实例 |
|
|
|
* 开启一个流程实例 |
|
|
|
**/ |
|
|
|
**/ |
|
|
@ -247,7 +247,7 @@ public class MaintenanceServiceImpl extends BaseServiceImpl<MaintenanceMapper, O |
|
|
|
} |
|
|
|
} |
|
|
|
// 日常维护完成数
|
|
|
|
// 日常维护完成数
|
|
|
|
maintainVo.setMaintain(maintainList.size()); |
|
|
|
maintainVo.setMaintain(maintainList.size()); |
|
|
|
List<Long> maintainFinish = maintainList.stream().filter(o-> Func.isNotEmpty(o.getStatus()) && MaintenanceConstant.TASK_STATUS_5 == o.getStatus()) |
|
|
|
List<Long> maintainFinish = maintainList.stream().filter(o-> "结束".equals(o.getFlowTaskName())) |
|
|
|
.map(OperMaintenanceTaskEntity::getId).collect(Collectors.toList()); |
|
|
|
.map(OperMaintenanceTaskEntity::getId).collect(Collectors.toList()); |
|
|
|
if(CollectionUtil.isEmpty(maintainFinish)){ |
|
|
|
if(CollectionUtil.isEmpty(maintainFinish)){ |
|
|
|
maintainVo.setMaintainFinish(0); |
|
|
|
maintainVo.setMaintainFinish(0); |
|
|
@ -281,7 +281,7 @@ public class MaintenanceServiceImpl extends BaseServiceImpl<MaintenanceMapper, O |
|
|
|
regularWorkVO.setMainTaskIds(regularWorkList.stream().map(OperMaintenanceTaskEntity::getId).map(Object::toString).collect(Collectors.joining(","))); |
|
|
|
regularWorkVO.setMainTaskIds(regularWorkList.stream().map(OperMaintenanceTaskEntity::getId).map(Object::toString).collect(Collectors.joining(","))); |
|
|
|
regularWorkVO.setRegularWorkSum(regularWorkList.size()); |
|
|
|
regularWorkVO.setRegularWorkSum(regularWorkList.size()); |
|
|
|
// 定期工作任务完成数量
|
|
|
|
// 定期工作任务完成数量
|
|
|
|
List<OperMaintenanceTaskEntity> regularWorkFinishList = regularWorkList.stream().filter(o -> MaintenanceConstant.TASK_STATUS_5 == o.getStatus()).collect(Collectors.toList()); |
|
|
|
List<OperMaintenanceTaskEntity> regularWorkFinishList = regularWorkList.stream().filter(o -> "结束".equals(o.getFlowTaskName())).collect(Collectors.toList()); |
|
|
|
if (CollectionUtil.isEmpty(regularWorkFinishList)) { |
|
|
|
if (CollectionUtil.isEmpty(regularWorkFinishList)) { |
|
|
|
regularWorkVO.setRegularWork(0); |
|
|
|
regularWorkVO.setRegularWork(0); |
|
|
|
return regularWorkVO; |
|
|
|
return regularWorkVO; |
|
|
|