Commit 6c881827 authored by BlackJokerCJ's avatar BlackJokerCJ

xiyi

parent af064aff
......@@ -66,9 +66,7 @@ public class CreditSubmitCommand extends AbstractCommand {
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();
......@@ -80,6 +78,9 @@ public class CreditSubmitCommand extends AbstractCommand {
JsonResult result = iWakandaFeignService.clientCredit(infoModel);
result.apiCheck();
creditComponent.insert(creditModel);
JSONObject thirdDataReq=new JSONObject();
thirdDataReq.put("orderNo",request.getOrderNo());
windowsProducer.pullCreditThirdData(thirdDataReq);
return JsonResult.success();
}
......
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