风控中台对接-字典表数据缓存和查询方法补充
This commit is contained in:
parent
e3d6b43544
commit
e6ab9578da
@ -114,4 +114,26 @@ public class ParamDataUtils {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据系统地址编码、字典编码、地址全名 获取详细地址
|
||||
* @param codeNo
|
||||
* @param itemNo
|
||||
* @param fullAddress
|
||||
* @return
|
||||
*/
|
||||
public static String queryMapDetailAddress(String codeNo, String itemNo, String fullAddress){
|
||||
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
|
||||
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
|
||||
if(null != libraryMapRes){
|
||||
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(itemNo);
|
||||
if(null != resMap){
|
||||
String apAddress = resMap.get("ap_address_value");
|
||||
fullAddress = fullAddress.replaceAll(apAddress, "");
|
||||
return fullAddress;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.ample.esb.common.address;
|
||||
|
||||
import com.amarsoft.are.ARE;
|
||||
import com.amarsoft.are.jbo.*;
|
||||
import com.ample.esb.common.ParamDataUtils;
|
||||
import com.tenwa.reckon.util.UUIDUtil;
|
||||
@ -53,6 +54,7 @@ public class PersonAddressController {
|
||||
* @return
|
||||
* */
|
||||
public String saveOrUpdate(JBOTransaction tx)throws Exception {
|
||||
ARE.getLog().info("[PersonAddressController] saveOrUpdate bulid Begin .................");
|
||||
BizObjectManager rcAddressInfo = JBOFactory.getBizObjectManager(RC_ADDRESS_INFO.CLASS_NAME,tx);
|
||||
BizObjectManager rcAddressLibrary = JBOFactory.getBizObjectManager(RC_ADDRESS_LIBRARY.CLASS_NAME,tx);
|
||||
// : 2023-8-17 ¸ù¾Ý province ²éѯ RC_ADDRESS_LIBRARY ±í
|
||||
@ -71,6 +73,7 @@ public class PersonAddressController {
|
||||
}
|
||||
makeRcAddressInfoByLibrary(rcAddressLibraryBizObject, rcAddressInfoBizObject);
|
||||
rcAddressInfo.saveObject(rcAddressInfoBizObject);
|
||||
ARE.getLog().info("[PersonAddressController] saveOrUpdate bulid Begin .................");
|
||||
// : 2023-8-17 ·µ»ØidÖµ
|
||||
return "true@"+id;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user