|
@@ -6,6 +6,7 @@ import com.hrsk.cloud.eg.app.route.EndpointRouteService;
|
|
|
import com.hrsk.cloud.eg.clinet.dto.data.EgLoanApiConfigInfoDto;
|
|
|
import com.hrsk.cloud.eg.clinet.dto.data.command.ApiInvokeParamCmd;
|
|
|
import com.hrsk.cloud.eg.clinet.dto.data.command.CheckIntoParamCmd;
|
|
|
+import com.hrsk.cloud.eg.clinet.dto.data.command.LoanParamCmd;
|
|
|
import com.hrsk.cloud.eg.clinet.dto.data.plan.command.EgLoanApiConfigInfoCmd;
|
|
|
import com.hrsk.cloud.eg.domain.common.constant.egress.EgRouteTypeEnum;
|
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
|
|
@@ -36,10 +37,10 @@ public class CheckIntoCmd implements EndpointRouteService {
|
|
|
|
|
|
@Override
|
|
|
public SingleResponse apiEndPoint(ApiInvokeParamCmd apiInvokeParamCmd) {
|
|
|
- CheckIntoParamCmd checkIntoParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), CheckIntoParamCmd.class);
|
|
|
- EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(checkIntoParamCmd.getPlan().getApiId());
|
|
|
+ LoanParamCmd loanParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), LoanParamCmd.class);
|
|
|
+ EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(loanParamCmd.getPlan().getApiId());
|
|
|
Map<String, CheckCmdExe> collect = checkCmdExeList.stream().collect(Collectors.toMap(CheckCmdExe::getMode, CheckCmdExe -> CheckCmdExe));
|
|
|
- return collect.get(loanApiConfigInfo.getIntegrationMode()).route(checkIntoParamCmd);
|
|
|
+ return collect.get(loanApiConfigInfo.getIntegrationMode()).route(loanParamCmd);
|
|
|
}
|
|
|
|
|
|
@Override
|