Commit 6997bd0f authored by 张庆's avatar 张庆

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/main/java/com/jqtx/windows/command/LoanSubmitCommand.java
parents 1a1ae1f7 782283d8
...@@ -47,8 +47,8 @@ public class LoanSubmitCommand extends AbstractCommand { ...@@ -47,8 +47,8 @@ public class LoanSubmitCommand extends AbstractCommand {
public JsonResult execute() { public JsonResult execute() {
String request = RuntimeContextHolder.currentRuntimeContext().getRequestBody(); String request = RuntimeContextHolder.currentRuntimeContext().getRequestBody();
LoanSubmitResponse loanSubmitResponse = JSON.parseObject(request, LoanSubmitResponse.class); LoanSubmitResponse loanSubmitResponse = JSON.parseObject(request, LoanSubmitResponse.class);
CreditModel componentByOrderNo = creditComponent.getByOrderNo(loanSubmitResponse.getOrderNo()); CreditModel creditModel = creditComponent.getByOrderNo(loanSubmitResponse.getOrderNo());
if (Objects.isNull(componentByOrderNo)) { if (Objects.isNull(creditModel)) {
throw new BizException(ExceptionCodeEnum.BIZ_CREDIT_NOT_FOUND_ERROR); throw new BizException(ExceptionCodeEnum.BIZ_CREDIT_NOT_FOUND_ERROR);
} }
//查询loan表是否存在 //查询loan表是否存在
...@@ -71,12 +71,12 @@ public class LoanSubmitCommand extends AbstractCommand { ...@@ -71,12 +71,12 @@ public class LoanSubmitCommand extends AbstractCommand {
thirdCredit.put("reqNo", loanSubmitResponse.getOrderNo()); thirdCredit.put("reqNo", loanSubmitResponse.getOrderNo());
thirdCredit.put("type", "01"); thirdCredit.put("type", "01");
abcHttpClient.postRequest(thirdCredit.toJSONString(), ZNPostUrlEnum.CREDIT_APPLY.getCode()); abcHttpClient.postRequest(thirdCredit.toJSONString(), ZNPostUrlEnum.CREDIT_APPLY.getCode());
CreditModel creditModel=new CreditModel(); CreditModel creditModel1=new CreditModel();
creditModel.setCreditThirdStatus("INIT"); creditModel1.setCreditThirdStatus("INIT");
creditComponent.updateByOrderNo(loanSubmitResponse.getOrderNo(),creditModel); creditComponent.updateByOrderNo(loanSubmitResponse.getOrderNo(),creditModel1);
// 提现授信 // 提现授信
LoanCreditSubmitModel model = new LoanCreditSubmitModel(); LoanCreditSubmitModel model = new LoanCreditSubmitModel();
model.setOrderNo(componentByOrderNo.getOrderNo()); model.setOrderNo(loanSubmitResponse.getOrderNo());
JsonResult<Boolean> booleanJsonResult = wakandaFeignService.loanCredit(model); JsonResult<Boolean> booleanJsonResult = wakandaFeignService.loanCredit(model);
return JsonResult.success(booleanJsonResult.isSuccess()); return JsonResult.success(booleanJsonResult.isSuccess());
} }
......
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