浏览代码

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

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


正在加载...
取消
保存