fix: 81638 企业标准--试运行的数据删除提示操作失败

This commit is contained in:
2024-02-04 15:50:50 +08:00
parent 72cbae102a
commit d7db40826d
@@ -702,15 +702,9 @@ public class EnterpriseStandardAuthUserServiceImpl extends ServiceImpl<Enterpris
throw new JeroBootException(ResultCommon.EMPTY_COMMON, "ids不能为空");
}
String[] idList = ids.split(",");
List<Map<String, Object>> records = new ArrayList<>();
for (String id : idList) {
Map<String, Object> map = new HashMap<>();
map.put(FieldCommon.ID, id);
records.add(map);
}
this.delFlagSet(records);
for (Map<String, Object> map : records) {
if (!(boolean) map.get(FieldCommon.DEL_FLAG)) {
boolean auth = this.hasDelAuth(id, userId);
if (!auth) {
return false;
}
}