风控中心orgOu使用项目tendereeId

This commit is contained in:
yss
2024-05-17 11:24:27 +08:00
parent 4c37a7e9f7
commit e5cf686c68

View File

@ -13,6 +13,7 @@ import com.chinaunicom.mall.ebtp.extend.riskmanage.entity.RiskManageRegulationVO
import com.chinaunicom.mall.ebtp.extend.riskmanage.service.IRiskManageService;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -70,9 +71,14 @@ public class RiskManageServiceImpl implements IRiskManageService {
//调用节点
regulationGroupApply.setCallPointCode(regulation.getCallPointCode());
regulationGroupApply.setCallPointName(regulation.getCallPointName());
BaseCacheUser cacheUser = cacheUserService.getCacheUser();
regulationGroupApply.setOuterVoList(CallRegulationUtil.getCallRegulationMap(params,regulationParams,cacheUser.getOrganizationId()));
String orgOu=Objects.isNull(params.get("orgOu"))?"":params.get("orgOu").toString();
if(StringUtils.isBlank(orgOu) ){
BaseCacheUser cacheUser = cacheUserService.getCacheUser();
if(StringUtils.isNotBlank(cacheUser.getOrganizationId())){
orgOu=cacheUser.getOrganizationId();
}
}
regulationGroupApply.setOuterVoList(CallRegulationUtil.getCallRegulationMap(params,regulationParams,orgOu));
log.info("调用山分风控接口参数:{}", JsonUtils.objectToJson(regulationGroupApply));
//校验信息
return regulationService.applyRegulation(regulationGroupApply);