From efce7ce3e63712ecc8b4c3039a73b508fc3ea880 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期一, 28 四月 2025 10:20:37 +0800 Subject: [PATCH] 修改 --- src/main/resources/mapper/menu/MenuDao.xml | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/resources/mapper/menu/MenuDao.xml b/src/main/resources/mapper/menu/MenuDao.xml index 64ba80f..6935e5f 100644 --- a/src/main/resources/mapper/menu/MenuDao.xml +++ b/src/main/resources/mapper/menu/MenuDao.xml @@ -7,14 +7,17 @@ </update> <select id="getList" resultType="com.example.server.menu.model.Menu"> - select a.id,a.pid,a.menu_name - from menu a - where - a.is_delete = 0 - <if test="site!='宸ヤ綔缁�'"> - and menu_name not like '%绠$悊%' - </if> - order by sort + SELECT a.id, a.pid, a.menu_name + FROM menu a + WHERE + a.is_delete = 0 + <if test="site != '宸ヤ綔缁�'"> + AND ( + menu_name NOT LIKE '%绠$悊%' + OR menu_name = '涓夌骇缃戠粶鍥剧鐞�' + ) + </if> + ORDER BY sort; </select> </mapper> -- Gitblit v1.9.1