Commit a0582644 authored by 张庆's avatar 张庆

防止重复提交

parent e3854e89
......@@ -41,15 +41,15 @@ public class LoanResultListener extends AbstractMQConsumerHandler<CreditResultMo
}
WithdrawDetailResponse response = new WithdrawDetailResponse();
if ("YES".equalsIgnoreCase(creditResultModel.getCreditStatus())) {
byOrderNo.setLoanStatus(CreditResultStatusEnum.PASS.getCode());
byOrderNo.setLoanCreditResult(CreditResultStatusEnum.PASS.getCode());
response.setStatus(1);
}
if ("RETRIAL".equalsIgnoreCase(creditResultModel.getCreditStatus())) {
byOrderNo.setLoanStatus(CreditResultStatusEnum.INIT.getCode());
byOrderNo.setLoanCreditResult(CreditResultStatusEnum.INIT.getCode());
response.setStatus(0);
}
if ("REJECT".equalsIgnoreCase(creditResultModel.getCreditStatus())) {
byOrderNo.setLoanStatus(CreditResultStatusEnum.REFUSED.getCode());
byOrderNo.setLoanCreditResult(CreditResultStatusEnum.REFUSED.getCode());
response.setStatus(2);
}
byOrderNo.setGmtModified(LocalDateTime.now());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment