fix: 删除字典下的字典项方法缺失问题修复

This commit is contained in:
ray
2024-07-10 22:11:05 +08:00
parent f7ccd5f103
commit 16621a4199

View File

@@ -187,7 +187,10 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
boolean result = this.removeById(id); boolean result = this.removeById(id);
if (result) { if (result) {
// 删除字典下的字典项 // 删除字典下的字典项
dictItemService.removeByDictId(Convert.toLong(id)); dictItemService.remove(
new LambdaQueryWrapper<SysDictItem>()
.eq(SysDictItem::getDictId, id)
);
} }
} }
} }