RosteringStaffMapper.xml 1.41 KB
<?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>