|
|
|
|
|
|
|
|
return JsonResult.error(ResubmitInspectionCodeEnum.INSPECTION_IS_NOT_EXIST.getCode(), ResubmitInspectionCodeEnum.INSPECTION_IS_NOT_EXIST.getMsg()); |
|
|
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()); |
|
|
return JsonResult.error(ResubmitInspectionCodeEnum.FAILED_INSPECTION_CANNOT_RESUBMIT.getCode(), ResubmitInspectionCodeEnum.FAILED_INSPECTION_CANNOT_RESUBMIT.getMsg()); |
|
|
} |
|
|
} |
|
|
|
|
|
|