智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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="org.springblade.modules.member.mapper.MemberMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="memberResultMap" type="org.springblade.modules.member.entity.Member">
        <id column="id" property="id"/>
        <result column="name" property="name"/>
        <result column="post" property="post"/>
        <result column="cardid" property="cardid"/>
        <result column="cell" property="cell"/>
        <result column="creditCode" property="creditcode"/>
        <result column="rtime" property="rtime"/>
        <result column="dept_id" property="deptId"/>
    </resultMap>
 
 
    <select id="selectMemberPage" resultMap="memberResultMap">
        select * from sys_member where is_deleted = 0
    </select>
 
    <select id="selectMemberInfo" resultMap="memberResultMap">
        select * from sys_member where dept_id=#{deptId}
    </select>
 
</mapper>