|
|
@ -78,7 +78,7 @@ public class DgGuaranteeLetterAssignUserController { |
|
|
|
@RequestBody GuaranteeLetterUpdateStatusRequest guaranteeLetterUpdateStatusRequest) { |
|
|
|
@RequestBody GuaranteeLetterUpdateStatusRequest guaranteeLetterUpdateStatusRequest) { |
|
|
|
//如果为驳回操作且无审核意见,抛出异常
|
|
|
|
//如果为驳回操作且无审核意见,抛出异常
|
|
|
|
if (StatusCode.SP_REJECT.equals(guaranteeLetterUpdateStatusRequest.getStatus()) && guaranteeLetterUpdateStatusRequest.getAuditOpinion().length()==0){ |
|
|
|
if (StatusCode.SP_REJECT.equals(guaranteeLetterUpdateStatusRequest.getStatus()) && guaranteeLetterUpdateStatusRequest.getAuditOpinion().length()==0){ |
|
|
|
ExceptionCast.cast(HrmsCode.EMPTY_OPINION); |
|
|
|
return ResponseResult.FAIL(44444,"请填写审核意见!"); |
|
|
|
} |
|
|
|
} |
|
|
|
boolean result = guaranteeLetterAssignUserService.updateGuaranteeLetterStatus(guaranteeLetterUpdateStatusRequest); |
|
|
|
boolean result = guaranteeLetterAssignUserService.updateGuaranteeLetterStatus(guaranteeLetterUpdateStatusRequest); |
|
|
|
return result ? ResponseResult.SUCCESS("确认成功!"):ResponseResult.FAIL(40005,"确认失败!"); |
|
|
|
return result ? ResponseResult.SUCCESS("确认成功!"):ResponseResult.FAIL(40005,"确认失败!"); |
|
|
|