完善功能

master
chen 4 years ago
parent 6f8b0499e0
commit 5c6b5da756
  1. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgGuaranteeLetterAssignUserController.java
  2. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgLoanNoticeController.java
  3. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgPaymentConfirmationConsiderController.java

@ -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,"确认失败!");

@ -72,7 +72,7 @@ public class DgLoanNoticeController {
@RequestBody LoanNoticeUpdateRequest loanNoticeUpdateRequest) { @RequestBody LoanNoticeUpdateRequest loanNoticeUpdateRequest) {
//如果为驳回操作且无审核意见,抛出异常 //如果为驳回操作且无审核意见,抛出异常
if (StatusCode.SP_REJECT.equals(loanNoticeUpdateRequest.getStatus()) && loanNoticeUpdateRequest.getAuditOpinion().length()==0){ if (StatusCode.SP_REJECT.equals(loanNoticeUpdateRequest.getStatus()) && loanNoticeUpdateRequest.getAuditOpinion().length()==0){
ExceptionCast.cast(HrmsCode.EMPTY_OPINION); return ResponseResult.FAIL(44444,"请填写审核意见!");
} }
boolean result = loanNoticeService.updateLoanNotice(loanNoticeUpdateRequest); boolean result = loanNoticeService.updateLoanNotice(loanNoticeUpdateRequest);
return result ? ResponseResult.SUCCESS("更新成功!"):ResponseResult.FAIL(40005,"更新失败!"); return result ? ResponseResult.SUCCESS("更新成功!"):ResponseResult.FAIL(40005,"更新失败!");

@ -63,7 +63,7 @@ public class DgPaymentConfirmationConsiderController {
@RequestBody PaymentConfirmationUpdateRequest paymentConfirmationUpdateRequest) { @RequestBody PaymentConfirmationUpdateRequest paymentConfirmationUpdateRequest) {
//如果为驳回操作且无审核意见,抛出异常 //如果为驳回操作且无审核意见,抛出异常
if (StatusCode.SP_REJECT.equals(paymentConfirmationUpdateRequest.getStatus()) && paymentConfirmationUpdateRequest.getAuditOpinion().length()==0){ if (StatusCode.SP_REJECT.equals(paymentConfirmationUpdateRequest.getStatus()) && paymentConfirmationUpdateRequest.getAuditOpinion().length()==0){
ExceptionCast.cast(HrmsCode.EMPTY_OPINION); return ResponseResult.FAIL(44444,"请填写审核意见!");
} }
boolean result = paymentConfirmationConsiderService.updatePaymentConfirmation(paymentConfirmationUpdateRequest); boolean result = paymentConfirmationConsiderService.updatePaymentConfirmation(paymentConfirmationUpdateRequest);
return result ? ResponseResult.SUCCESS("更新成功!"):ResponseResult.FAIL(40005,"更新失败!"); return result ? ResponseResult.SUCCESS("更新成功!"):ResponseResult.FAIL(40005,"更新失败!");

Loading…
Cancel
Save