wuyouming666
2024-01-17 0613a5b982c6521560ea17eda7c07bb97e6ec5e9
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>