From 2bfad65f3f4ed0282f53e3ae01fc10c879a734bc Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 09 十一月 2023 10:03:39 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/util/gennerAttrMapUtil.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/util/gennerAttrMapUtil.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/util/gennerAttrMapUtil.java index 695bc04..8916bdc 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/util/gennerAttrMapUtil.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/util/gennerAttrMapUtil.java @@ -4,12 +4,14 @@ import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; import com.vci.ubcs.code.vo.webserviceModel.attrmap.LibraryDO; +import com.vci.ubcs.code.webService.config.AttributeMapConfig; import com.vci.ubcs.starter.util.LocalFileUtil; -import com.vci.ubcs.webservice.config.AttributeMapConfig; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import java.util.Map; +@Slf4j public class gennerAttrMapUtil { @Autowired(required = false) private AttributeMapConfig attributeMapConfig; @@ -27,17 +29,22 @@ * @param systemId */ public LibraryDO gennerAttrMapBySystem(String systemId, Map<String, String> system_attrmap) throws Throwable{ + log.info("绯荤粺鏍囪瘑->"+systemId); if(StringUtils.isBlank(systemId)){ throw new Throwable("绯荤粺鏍囪瘑涓虹┖"); } LibraryDO rootDataVO=new LibraryDO(); if(system_attrmap.containsKey(systemId)){ String path=system_attrmap.get(systemId); + log.info("绯荤粺鏍囪瘑->"+systemId+"锛涙枃浠跺睘鎬ч厤缃枃浠惰矾寰�->"+path); String attributeMapData= LocalFileUtil.readContentForFile(path); + log.info("璇诲彇鍚庣殑灞炴�ф槧灏勫唴瀹�"+attributeMapData); XStream xStream = new XStream(new DomDriver()); xStream.processAnnotations(LibraryDO.class); xStream.autodetectAnnotations(true); - rootDataVO = (LibraryDO) xStream.fromXML(attributeMapData); + log.info("杞崲鎴愬璞tart"); + rootDataVO = (LibraryDO) xStream.fromXML(attributeMapData); + log.info("杞崲鎴愬璞nd"); } return rootDataVO; -- Gitblit v1.9.3