2025-03-19 15:46
SqlInfoQueryWrapper.Wrapper wrapper = SqlHelper.getQueryWrapper()
.select("id")
.setTableName(subTableName)
.setWhere(where -> {
where.eq(subFieldCode, obj);
where.eq("is_deleted", 0);
})
.build();
List<Map<String, Object>> oldDataList = sqlService.getDataListByPlus(wrapper);
Set<Long> collect = oldDataList.stream()
.filter(oldData -> !idSet.contains(Func.getMap2Str(oldData, "id")))
.map(oldData -> Func.getMap2Long(oldData, "id"))
.collect(Collectors.toSet());
if (Func.isNotEmpty(collect)) {
Map<String,Object> subDelParams=new HashMap<>();
subDelParams.put("dataIdList", new ArrayList<>(collect));
subDelParams.put("whereFieldCode","id");
proxyService.delData(subFormId, subDelParams);
}
修改对应的代码