From 729db9dd93f8884a8f1f0b32a4462708f858ea9b Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 13 六月 2023 20:05:53 +0800 Subject: [PATCH] 代码整合 --- 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