|
|
|
@ -474,11 +474,7 @@ public class FieldDefinedServiceImpl extends Service implements FieldDefinedServ
|
|
|
|
|
List<ExtendGroupPO> extendGroupPOS = JSONArray.parseArray(fieldTypeTreeParam.getData(), ExtendGroupPO.class);
|
|
|
|
|
|
|
|
|
|
List<Long> collect1 = extendGroupPOS.stream().map(ExtendGroupPO::getId).collect(Collectors.toList());
|
|
|
|
|
collect1.forEach(e -> {
|
|
|
|
|
if (collect.contains(e)) {
|
|
|
|
|
collect.remove(e);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
collect1.forEach(collect::remove);
|
|
|
|
|
if (CollectionUtils.isNotEmpty(collect)) {
|
|
|
|
|
MapperProxyFactory.getProxy(ExtendGroupMapper.class).batchDelete(collect);
|
|
|
|
|
}
|
|
|
|
@ -525,7 +521,7 @@ public class FieldDefinedServiceImpl extends Service implements FieldDefinedServ
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(fieldids) && null != groupid) {
|
|
|
|
|
// 更新extendInfo表的extend_group_id
|
|
|
|
|
List<Long> ids = Arrays.asList(fieldids.split(",")).stream().map(item -> Long.parseLong(item)).collect(Collectors.toList());
|
|
|
|
|
List<Long> ids = Arrays.stream(fieldids.split(",")).map(Long::parseLong).collect(Collectors.toList());
|
|
|
|
|
getExtendInfoMapper().updateExtendGroupId(groupid, ids);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|