ludc
2023-03-27 82a410d9ec7a5d15eed27e9990cff371feab43a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.springblade.code.vo.universalInter.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("读取属性映射文件出错!");
        }
    }
}