Fixiaobai
2023-09-05 c9da1b0da1178911e383ddcaebecd1e088fa6004
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>