| | |
| | | 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; |
| | |
| | | @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); |
| | | } |
| | | |
| | | /** |