diff --git a/src/main/java/com/jqtx/windows/command/CreditSubmitCommand.java b/src/main/java/com/jqtx/windows/command/CreditSubmitCommand.java index a5ce68ba4f4a04d1875a22cb2860d498d73cd470..a846fa63a1ac96af663e4a2829b612b1b7025443 100644 --- a/src/main/java/com/jqtx/windows/command/CreditSubmitCommand.java +++ b/src/main/java/com/jqtx/windows/command/CreditSubmitCommand.java @@ -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(); diff --git a/src/main/java/com/jqtx/windows/command/LoanSubmitCommand.java b/src/main/java/com/jqtx/windows/command/LoanSubmitCommand.java index bd326b5d94ad90e3bcbe97815143610d8efc6659..80505d84281f295babd525b92a72e35f587f4ba8 100644 --- a/src/main/java/com/jqtx/windows/command/LoanSubmitCommand.java +++ b/src/main/java/com/jqtx/windows/command/LoanSubmitCommand.java @@ -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(); diff --git a/src/main/java/com/jqtx/windows/command/RiskQueryDataCommand.java b/src/main/java/com/jqtx/windows/command/RiskQueryDataCommand.java new file mode 100644 index 0000000000000000000000000000000000000000..5d58eae59c5f2d1f73ae3a995788cc2de3f1217b --- /dev/null +++ b/src/main/java/com/jqtx/windows/command/RiskQueryDataCommand.java @@ -0,0 +1,11 @@ +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; + } +}