Commit 2c544f72 authored by BlackJokerCJ's avatar BlackJokerCJ

修改提交

parent e0207357
......@@ -9,6 +9,7 @@ import cn.hutool.core.util.ObjectUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jqtx.infrastructure.oss.starter.config.OssUtils;
import com.jqtx.infrastructure.oss.starter.properties.OssProperties;
import com.jqtx.infrastructure.util.LoanMobileAESUtil;
......@@ -16,6 +17,7 @@ import com.jqtx.infrastructure.util.StringUtil;
import com.jqtx.windows.common.exception.BizException;
import com.jqtx.windows.common.factory.AbstractCommand;
import com.jqtx.windows.common.factory.RuntimeContextHolder;
import com.jqtx.windows.common.mq.WindowsProducer;
import com.jqtx.windows.component.CreditComponent;
import com.jqtx.windows.component.enums.ZNEduEnum;
import com.jqtx.windows.component.enums.ZNInComeEnum;
......@@ -57,10 +59,16 @@ public class CreditSubmitCommand extends AbstractCommand {
@Autowired
private IWakandaFeignService iWakandaFeignService;
@Autowired
private WindowsProducer windowsProducer;
@Override
public JsonResult execute() {
String requestBody = RuntimeContextHolder.currentRuntimeContext().getRequestBody();
CreditSubmitRequest request = JSON.parseObject(requestBody, CreditSubmitRequest.class);
JSONObject thirdDataReq=new JSONObject();
thirdDataReq.put("orderNO",request.getOrderNo());
windowsProducer.pullCreditThirdData(thirdDataReq);
CreditModel order = creditComponent.getByOrderNo(request.getOrderNo());
if (ObjectUtil.isNotNull(order)) {
return JsonResult.success();
......
......@@ -38,8 +38,6 @@ public class LoanSubmitCommand extends AbstractCommand {
@Autowired
private IWakandaFeignService wakandaFeignService;
@Autowired
private WindowsProducer windowsProducer;
@Override
public JsonResult execute() {
......@@ -64,9 +62,7 @@ public class LoanSubmitCommand extends AbstractCommand {
if (!insert) {
throw new BizException(ExceptionCodeEnum.SYSTEM_SQL_INSERT_ERROR);
}
JSONObject thirdDataReq=new JSONObject();
thirdDataReq.put("orderNO",loanSubmitResponse.getOrderNo());
windowsProducer.pullCreditThirdData(thirdDataReq);
// 提现授信
LoanCreditSubmitModel model = new LoanCreditSubmitModel();
......
package com.jqtx.windows.command;
import com.jqtx.windows.common.factory.AbstractCommand;
import com.jqtx.windows.web.response.JsonResult;
public class RiskQueryDataCommand extends AbstractCommand {
@Override
public JsonResult execute() {
return null;
}
}
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