From ab8b9ed094d719c752af88bc6d382fc5feeb08ba Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 06 八月 2024 08:06:35 +0800
Subject: [PATCH] #

---
 zy-asrs-wms/src/main/resources/mapper/system/MenuMapper.xml |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/zy-asrs-wms/src/main/resources/mapper/system/MenuMapper.xml b/zy-asrs-wms/src/main/resources/mapper/system/MenuMapper.xml
index a705d86..a9a672c 100644
--- a/zy-asrs-wms/src/main/resources/mapper/system/MenuMapper.xml
+++ b/zy-asrs-wms/src/main/resources/mapper/system/MenuMapper.xml
@@ -2,11 +2,15 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.zy.asrs.wms.system.mapper.MenuMapper">
 
-    <select id="selectByPathName" resultType="com.zy.asrs.wms.system.entity.Menu">
+    <select id="selectByParentId" resultType="com.zy.asrs.wms.system.entity.Menu">
         select * from sys_menu
-        where path_name like #{pathName}
-        and type = #{type}
-        and host_id = 1
+        where parent_id = #{parentId}
+        <if test="type!=null">
+            and type = #{type}
+        </if>
+        <if test="hostId!=null">
+            and host_id = #{hostId}
+        </if>
         and deleted = 0
         order by id
     </select>

--
Gitblit v1.9.1