ZengTao
2023-09-21 d0e719bd6bb8d2a840211d60efbb46b83d77455d
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>