|
@@ -204,9 +204,12 @@ public class UStandardInfoServiceImpl extends ServiceImpl<StandardInfoMapper, St
|
|
|
//新的数据排序后组合成字符串
|
|
|
List<Long> newRightIds = standardInfoJoinDTO.getRightIds();
|
|
|
Collections.sort(newRightIds);
|
|
|
- //把左Id加进来 确保只有在左id相同的情况下才进行判断
|
|
|
- newRightIds.add(leftId);
|
|
|
+
|
|
|
String newRightIdsStr = String.join(",", newRightIds.stream().map(String::valueOf).collect(Collectors.toList()));
|
|
|
+ if(CollectionUtil.isNotEmpty(newRightIds)){
|
|
|
+ //把左Id加进来 确保只有在左id相同的情况下才进行判断
|
|
|
+ newRightIdsStr = newRightIdsStr + "," + leftId;
|
|
|
+ }
|
|
|
newGroupRightIds.add(newRightIdsStr);
|
|
|
}
|
|
|
|