|
|
|
|
@ -292,7 +292,7 @@ public class MaintenanceController extends BladeController { |
|
|
|
|
MaintenanceTask taskOld = taskService.getById(task.getId()); |
|
|
|
|
|
|
|
|
|
// 获取详细中的异常项目数量
|
|
|
|
|
long count = taskDto.getDetailList().stream().filter(e -> CommonConstant.FALSE_INT.equals(e.getIsRepair())).count(); |
|
|
|
|
long count = taskDto.getDetailList().stream().filter(e -> CommonConstant.TRUE_INT.equals(e.getIsRepair())).count(); |
|
|
|
|
if (count == 0) { |
|
|
|
|
// 确认维修数量 = 0, 更新巡检的维修状态为无需维修
|
|
|
|
|
taskOld.setRepairStatus(MaintenanceStatusEnum.REPAIR_NO.getValue()); |
|
|
|
|
|