From e5cf686c680baed0560933cdb856f6872e5ab8ad Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Fri, 17 May 2024 11:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E4=B8=AD=E5=BF=83orgOu?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=A1=B9=E7=9B=AEtendereeId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/RiskManageServiceImpl.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java index 8239cf8..b96652a 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java @@ -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);