Fixiaobai
2023-08-30 bdfbdd352a37ad4a21361dccb0f16717ae6116c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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.yuanchu.limslaboratory.mapper.MenuMapper">
 
    <select id="getMenuList" resultType="com.yuanchu.limslaboratory.pojo.Menu">
        select id, name, parent_id parentId
        from menu
        where state = 1
          and id != 39
       and parent_id != 39
    </select>
    <select id="getMenuNameAndId" resultType="map">
        select url, id, name
        from menu
        where state = 1
    </select>
</mapper>