修正消息中心不显示
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user