Browse Source

gis接口及问题核实接口

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
15dc144fd7
1 changed files with 6 additions and 7 deletions
  1. +6
    -7
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/InspectionFileServiceImpl.java

+ 6
- 7
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/InspectionFileServiceImpl.java View File

@@ -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);
}
}

Loading…
Cancel
Save