|
|
|
@ -201,7 +201,10 @@ public class CalcTargetConfigServiceImpl |
|
|
|
|
|
|
|
// 目标物公式描述生成、计算物配置默认信息设置 |
|
|
|
List<CalcSourceConfigDTO> sourceConfigs = targetConfig.getSourceConfigs(); |
|
|
|
|
|
|
|
List<CalcSourceConfigDTO> list = sourceConfigs.stream().filter(e -> ObjectUtil.isEmpty(e.getSourceThingCode()) || ObjectUtil.isEmpty(e.getSourceAttrCode())).toList(); |
|
|
|
if(!CollectionUtils.isEmpty(list)){ |
|
|
|
throw new SysException("计算源物配置属性编码或者物编码不能为空!"); |
|
|
|
} |
|
|
|
List<CalcSourceConfigDTO> duplicates = findDuplicates(sourceConfigs); |
|
|
|
if(!CollectionUtils.isEmpty(duplicates)){ |
|
|
|
String result = duplicates.stream() |
|
|
|
|