RosteringStaffMapper.xml
1.41 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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.pipihelper.project.feishu.dao.RosteringStaffDao">
<resultMap id="ResultMap" type="com.pipihelper.project.feishu.entity.RosteringStaff">
<id column="id" property="id"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
<result column="department" property="department"/>
<result column="ding_id" property="dingId"/>
<result column="job_no" property="jobNo"/>
<result column="name" property="name"/>
</resultMap>
<!-- <resultMap id="BuffConfigResultBOMap" type="com.pipihelper.project.feishu.entity.Deployee"
extends="EmployeeResultMap">
</resultMap>-->
<sql id="Base_Column_List">
id,create_time,update_time,department,ding_id,job_no,name
</sql>
<select id="findAll" resultMap="ResultMap">
select
<include refid="Base_Column_List"/>
from t_rostering_staff
</select>
<select id="findByNames" resultMap="ResultMap">
select
<include refid="Base_Column_List"/>
from t_rostering_staff
where name in
<foreach collection="names" open="(" separator="," close=")" item="name">
#{name}
</foreach>
</select>
</mapper>