|
@@ -195,8 +195,11 @@ public abstract class ParagraphBuilder implements IParagraphBuilder {
|
|
|
* @version V1.0 2021/7/26 2:16 下午
|
|
|
*/
|
|
|
public static Map<String, AttrValueVO> attrValueList2Map(Set<String> codeSet, List<AttrValueVO> attrValues) {
|
|
|
- // 将统计队列中的一条数据转换为map
|
|
|
Map<String, AttrValueVO> data = new HashMap<>();
|
|
|
+ if (CollectionUtils.isEmpty(codeSet) || CollectionUtils.isEmpty(attrValues) ) {
|
|
|
+ return data;
|
|
|
+ }
|
|
|
+ // 将统计队列中的一条数据转换为map
|
|
|
for (AttrValueVO attrValue : attrValues) {
|
|
|
if (attrValue == null || !codeSet.contains(attrValue.getCode())) {
|
|
|
continue;
|