| | |
| | | @Override |
| | | public Collection<CodeRuleVO> listCodeRuleByIds(Collection<String> oidCollections, boolean hasSec) throws VciBaseException { |
| | | VciBaseUtil.alertNotNull(oidCollections, "数据对象主键集合"); |
| | | List<CodeRule> codeRuleDOList = listCodeRuleDOByOidCollections(oidCollections); |
| | | return codeRuleDO2VOs(codeRuleDOList, true); |
| | | List<CodeRule> codeRuleDOList = listCodeRuleDOByIdCollections(oidCollections); |
| | | return codeRuleDO2VOs(codeRuleDOList, hasSec); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 使用规则id集合查询数据对象 |
| | | * |
| | | * @param idCollections id的集合 |
| | | * @return 数据对象列表 |
| | | */ |
| | | private List<CodeRule> listCodeRuleDOByIdCollections(Collection<String> idCollections) throws VciBaseException { |
| | | List<CodeRule> codeRuleDOList = new ArrayList<CodeRule>(); |
| | | if (!CollectionUtils.isEmpty(idCollections)) { |
| | | Collection<Collection<String>> oidCollectionsList = VciBaseUtil.switchCollectionForOracleIn(idCollections); |
| | | for (Collection<String> ids : oidCollectionsList) { |
| | | List<CodeRule> tempDOList = codeRuleMapper.selectList( |
| | | Wrappers.<CodeRule>query() |
| | | .lambda().in(CodeRule::getId,ids) |
| | | ); |
| | | if (!CollectionUtils.isEmpty(tempDOList)) { |
| | | codeRuleDOList.addAll(tempDOList); |
| | | } |
| | | } |
| | | } |
| | | return codeRuleDOList; |
| | | } |
| | | |
| | | /** |
| | | * 参照主数据编码规则列表 |
| | | * |
| | | * @param bladeQueryObject 查询条件 |