Преглед изворни кода

解决·失败和已取消状态都能进行重新提交

pull/369/head
suqin пре 10 месеци
родитељ
комит
57656be58d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/resubmit/ResubmitInspectionService.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/resubmit/ResubmitInspectionService.java Прегледај датотеку

@@ -149,7 +149,7 @@ public class ResubmitInspectionService {
return JsonResult.error(ResubmitInspectionCodeEnum.INSPECTION_IS_NOT_EXIST.getCode(), ResubmitInspectionCodeEnum.INSPECTION_IS_NOT_EXIST.getMsg());
}

if (inspectionOld.getStatus() != InspectionStatusEnum.FLIGHT_FAILED.getCode() || inspectionOld.getStatus() != InspectionStatusEnum.FLIGHT_CANCELED.getCode()) {
if (inspectionOld.getStatus() != InspectionStatusEnum.FLIGHT_FAILED.getCode() && inspectionOld.getStatus() != InspectionStatusEnum.FLIGHT_CANCELED.getCode()) {
return JsonResult.error(ResubmitInspectionCodeEnum.FAILED_INSPECTION_CANNOT_RESUBMIT.getCode(), ResubmitInspectionCodeEnum.FAILED_INSPECTION_CANNOT_RESUBMIT.getMsg());
}


Loading…
Откажи
Сачувај