From 6af6557a8d8a525ec3cab33607b8a041ef0968fa Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 08 十一月 2023 11:15:31 +0800 Subject: [PATCH] 历史导入生成编码时添加前后缀代码逻辑添加;历史导入模板下载时查询模板返回的key不区分大小写。 --- Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/webserviceModel/attrmap/GeneralMappingUtil.java | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/webserviceModel/attrmap/GeneralMappingUtil.java b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/webserviceModel/attrmap/GeneralMappingUtil.java index e69de29..7e9db1b 100644 --- a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/webserviceModel/attrmap/GeneralMappingUtil.java +++ b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/vo/webserviceModel/attrmap/GeneralMappingUtil.java @@ -0,0 +1,30 @@ +package com.vci.ubcs.code.vo.webserviceModel.attrmap; + +public class GeneralMappingUtil { + + private static GeneralMappingUtil newInstance=null; + public static GeneralMappingUtil getNewInstance() { + if(newInstance==null){ + newInstance=new GeneralMappingUtil(); + } + return newInstance; + } + + /*** + * 閫氳繃绯荤粺鏍囪瘑鑾峰彇瀵瑰簲鐨勯泦鎴愬睘鎬ф槧灏� + * @param system + */ + private void getLibraryClsfAttrMapping(String system){ + try { + /** String fileNamePath=LocalFileUtil.getProjectFolder(); + fileNamePath+=File.separator+"mdmInMapXml"+File.separator+"clsfAttrMap.xml"; + String clasAttrXml= LocalFileUtil.readContentForFile(fileNamePath); + XStream xStream = new XStream(new DomDriver()); + xStream.processAnnotations(ApplyCodeDO.class); + xStream.autodetectAnnotations(true); + ApplyCodeDO applyCodeDO = (ApplyCodeDO) xStream.fromXML(clasAttrXml);**/ + }catch (Throwable e){ + new Throwable("璇诲彇灞炴�ф槧灏勬枃浠跺嚭閿�!"); + } + } +} -- Gitblit v1.9.3