|
|
@@ -62,13 +62,12 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
} |
|
|
|
for (InspectionFile inspectionFile : inspectionFileList) { |
|
|
|
//任务状态判断 |
|
|
|
Inspection inspection = inspectionMapper.selectById(inspectionFile.getInspectionId()); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
JsonResult.error("问题所属的任务不存在"); |
|
|
|
} |
|
|
|
//任务状态判断,已生成工单,问题未解决 |
|
|
|
Integer status = inspection.getStatus(); |
|
|
|
if (20 == status) { |
|
|
|
if(20 == inspectionFile.getStatus()){ |
|
|
|
//任务状态判断,已生成工单,问题未解决 |
|
|
|
Inspection inspection = inspectionMapper.selectById(inspectionFile.getInspectionId()); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
JsonResult.error("问题所属的任务不存在"); |
|
|
|
} |
|
|
|
inspectionFileLists.add(inspectionFile); |
|
|
|
} |
|
|
|
} |