Fixiaobai
2023-09-07 e29f147aab5b0b0b794d611b522b67b94423e3cf
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>