|
@@ -3,9 +3,8 @@ package com.hrsk.cloud.eg.app.route.impl;
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
import com.hrsk.cloud.eg.app.loan.executor.checkInto.CheckCmdExe;
|
|
import com.hrsk.cloud.eg.app.loan.executor.checkInto.CheckCmdExe;
|
|
import com.hrsk.cloud.eg.app.route.EndpointRouteService;
|
|
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.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.clinet.dto.data.plan.command.EgLoanApiConfigInfoCmd;
|
|
import com.hrsk.cloud.eg.domain.common.constant.egress.EgRouteTypeEnum;
|
|
import com.hrsk.cloud.eg.domain.common.constant.egress.EgRouteTypeEnum;
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
|
|
import com.hrsk.cloud.eg.infrastructure.repository.database.entity.EgLoanApiConfigInfoDo;
|
|
@@ -36,7 +35,7 @@ public class CheckIntoCmd implements EndpointRouteService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public SingleResponse apiEndPoint(ApiInvokeParamCmd apiInvokeParamCmd) {
|
|
public SingleResponse apiEndPoint(ApiInvokeParamCmd apiInvokeParamCmd) {
|
|
- CheckIntoParamCmd checkIntoParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), CheckIntoParamCmd.class);
|
|
|
|
|
|
+ LoanParamCmd checkIntoParamCmd = JSONObject.parseObject(apiInvokeParamCmd.getParam().toString(), LoanParamCmd.class);
|
|
EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(checkIntoParamCmd.getPlan().getApiId());
|
|
EgLoanApiConfigInfoDo loanApiConfigInfo = egApiService.getLoanApiConfigInfo(checkIntoParamCmd.getPlan().getApiId());
|
|
EgLoanApiConfigInfoCmd configCmd = BeanCopyUtils.copy(loanApiConfigInfo, EgLoanApiConfigInfoCmd.class);
|
|
EgLoanApiConfigInfoCmd configCmd = BeanCopyUtils.copy(loanApiConfigInfo, EgLoanApiConfigInfoCmd.class);
|
|
Map<String, CheckCmdExe> collect = checkCmdExeList.stream().collect(Collectors.toMap(CheckCmdExe::getMode, CheckCmdExe -> CheckCmdExe));
|
|
Map<String, CheckCmdExe> collect = checkCmdExeList.stream().collect(Collectors.toMap(CheckCmdExe::getMode, CheckCmdExe -> CheckCmdExe));
|