From 8e450b9761175acfcb8d421d81b7bf8ff37169f9 Mon Sep 17 00:00:00 2001 From: lihang <lihang@vci-tech.com> Date: 星期二, 13 六月 2023 14:49:36 +0800 Subject: [PATCH] 元数据Feign增加查询全部的接口 --- Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/AttributeServiceImpl.java | 12 +++--------- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/AttributeServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/AttributeServiceImpl.java index 4b7a621..d98174c 100644 --- a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/AttributeServiceImpl.java +++ b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/AttributeServiceImpl.java @@ -19,7 +19,6 @@ import com.vci.ubcs.omd.wrapper.AttributeWrapper; import com.vci.ubcs.omd.wrapper.BtmTypeWrapper; import com.vci.ubcs.starter.exception.VciBaseException; -import com.vci.ubcs.starter.util.Map2MPJLambdaUtil; import com.vci.ubcs.starter.web.constant.OmdRegExpConstant; import com.vci.ubcs.starter.web.enumpck.VciFieldTypeEnum; import com.vci.ubcs.starter.web.util.VciBaseUtil; @@ -117,15 +116,10 @@ @Override public List<BtmTypeVO> applyRange(String oid) { List<BtmType> btmTypes = baseMapper.selectApplyRange(oid); - if (!CollectionUtils.isEmpty(btmTypes)){ - return btmTypes.stream().map(btm -> { - BtmTypeVO vo = new BtmTypeVO(); - vo.setId(btm.getId()); - vo.setName(btm.getName()); - return vo; - }).collect(Collectors.toList()); + if (CollectionUtils.isEmpty(btmTypes)){ + return null; } - return null; + return BtmTypeWrapper.build().listEntityVO(btmTypes); } /** -- Gitblit v1.9.3