Commit 984f2f90 authored by BlackJokerCJ's avatar BlackJokerCJ

修改提交

parent f2b26516
package com.jqtx.windows.command;
import com.alibaba.fastjson.JSON;
import com.jqtx.windows.common.factory.AbstractCommand;
import com.jqtx.windows.common.factory.RuntimeContextHolder;
import com.jqtx.windows.web.request.CreditSubmitRequest;
import com.jqtx.windows.web.request.CreditThirdDataRequest;
import com.jqtx.windows.web.response.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class CreditThirdDataCommand extends AbstractCommand {
@Override
public JsonResult execute() {
String requestBody = RuntimeContextHolder.currentRuntimeContext().getRequestBody();
CreditThirdDataRequest request = JSON.parseObject(requestBody, CreditThirdDataRequest.class);
return null;
}
}
package com.jqtx.windows.web.config;
import com.jqtx.infrastructure.util.AKAESUtil;
import com.jqtx.windows.command.*;
import com.jqtx.windows.common.factory.AbstractCommand;
import lombok.extern.slf4j.Slf4j;
......@@ -34,6 +35,9 @@ public class RouterConfig implements CommandLineRunner {
@Autowired
private SignContractCommand signContractCommand;
@Autowired
private CreditThirdDataCommand creditThirdDataCommand;
private static HashMap<String, AbstractCommand> commandHashMap = new HashMap<>();
public static AbstractCommand getCommand(String method) {
......@@ -54,6 +58,8 @@ public class RouterConfig implements CommandLineRunner {
commandHashMap.put("syncLoan",syncLoanCommand);
commandHashMap.put("syncCreditResult",syncCreditCommand);
commandHashMap.put("syncBack",backedCommand);
commandHashMap.put("creditThirdData",creditThirdDataCommand);
}
}
package com.jqtx.windows.web.request;
import lombok.Data;
@Data
public class CreditThirdDataRequest {
private String certNo;
private String mobile;
private String clientName;
private String apiCode;
}
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