修正消息中心不显示

This commit is contained in:
2025-11-22 16:01:36 +08:00
parent f3a9926caf
commit 12592c5a24
15 changed files with 331 additions and 380 deletions

View File

@@ -265,15 +265,15 @@ public class SysMenuServiceImpl implements SysMenuService {
}
// 检查菜单名称是否已存在(排除自身)
ResultDomain<Boolean> checkResult = checkMenuNameExists(menu.getName(), menu.getID());
if (!checkResult.isSuccess()) {
resultDomain.fail(checkResult.getMessage());
return resultDomain;
}
if (checkResult.getData()) {
resultDomain.fail("菜单名称已存在");
return resultDomain;
}
// ResultDomain<Boolean> checkResult = checkMenuNameExists(menu.getName(), menu.getID());
// if (!checkResult.isSuccess()) {
// resultDomain.fail(checkResult.getMessage());
// return resultDomain;
// }
// if (checkResult.getData()) {
// resultDomain.fail("菜单名称已存在");
// return resultDomain;
// }
// 设置更新时间
menu.setUpdateTime(new Date());

View File

@@ -139,7 +139,7 @@
SELECT COUNT(1)
FROM tb_sys_menu m
WHERE deleted = 0
AND m.name = #{name}
AND m.name = #{menuName}
<if test="excludeId != null and excludeId != ''">
AND m.id != #{excludeId}
</if>