ZengTao
2024-02-23 5066cb7a47f568f7cdb594f83643b0547c5a6a2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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.example.springboot.mapper.MenuListMapper">
    <select id="findByParent" resultType="com.example.springboot.entity.MenuList">
        select id, `name`, `path`
        from menu_list
        where parent = #{parent}
        order by priority
    </select>
    <select id="findByParentNull" resultType="com.example.springboot.entity.MenuList">
        select id, `name`, `path`
        from menu_list
        where parent is null
        order by priority
    </select>
</mapper>