Browse Source

修改应急任务状态

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
4cb6afe5c8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/update/status/UpdateInspectionStatusService.java

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/update/status/UpdateInspectionStatusService.java View File

@@ -95,7 +95,7 @@ public class UpdateInspectionStatusService {
* @param status
*/
public void updateEmergencyStatus(Inspection oldInspection, Integer status) {
log.info("修改应急任务数据, id:{}, type:{}, emergencyDataInspectionId:{}, status={}", oldInspection.getId(), oldInspection.getType(), oldInspection.getEmergencyDataInspectionId(), status);
log.info("修改应急任务数据, id:{}, type:{}, status={}", oldInspection.getId(), oldInspection.getType(), status);
Inspection emergencyInspection = inspectionMapper.selectOne(new LambdaQueryWrapper<Inspection>()
.eq(Inspection::getEmergencyDataInspectionId, oldInspection.getId())
.eq(Inspection::getMark, MarkEnum.VALID.getCode()));
@@ -113,7 +113,7 @@ public class UpdateInspectionStatusService {
emergencyInspection.setAnalyseStatus(inspection.getAnalyseStatus());
emergencyInspection.setVideoUrl(inspection.getVideoUrl());
emergencyInspection.setAiVideoUrl(inspection.getAiVideoUrl());
inspectionMapper.updateById(inspection);
inspectionMapper.updateById(emergencyInspection);
log.info("修改应急任务数据完成");
}
}

Loading…
Cancel
Save