skyouc
2024-12-21 c635d78b479510ebe2556a420948effcd30a0731
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<!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="selectByParentId" resultType="com.zy.asrs.wms.system.entity.Menu">
        select * from sys_menu
        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>
 
    <select id="selectByHostId" resultType="com.zy.asrs.wms.system.entity.Menu">
        select * from sys_menu
        where host_id = #{hostId}
          and deleted = 0
        order by id
    </select>
 
    <delete id="removeByHostId">
        delete from sys_menu
        where host_id = #{hostId}
    </delete>
 
</mapper>