From 53c90cfc99c30654fe857262100720d2ef719a08 Mon Sep 17 00:00:00 2001 From: xlt <xialuotang@xialuotang.com> Date: 星期日, 27 三月 2022 21:57:44 +0800 Subject: [PATCH] update 在全局异常处理器中引入DuplicateKeyException的主键冲突异常,来处理解决主键或UNIQUE索引的数据重复异常。 --- ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml index df17efd..08838c5 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml @@ -60,8 +60,8 @@ left join sys_user u on ur.user_id = u.user_id where u.user_id = #{userId} and m.menu_type in ('M', 'C') - and m.status = 0 - AND ro.status = 0 + and m.status = '0' + and ro.status = '0' order by m.parent_id, m.order_num </select> -- Gitblit v1.9.3