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