secondev-chapanda-portal/src/main/resources/mapper/AttendanceSchedulingMapper.xml

28 lines
941 B
XML

<?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.weaver.seconddev.attend.mapper.AttendanceSchedulingMapper">
<resultMap id="baseMap" type="com.weaver.seconddev.attend.entity.po.PreSchedulingDetailPo">
<id column="id" property="id"/>
<id column="form_data_id" property="formDataId"/>
<id column="flow_id" property="flowId"/>
<id column="ygid" property="employeeId"/>
<id column="ssyf" property="month"/>
</resultMap>
<sql id="BaseColumn">
t.id,form_data_id,ygid,ssyf
</sql>
<select id="getDetailList" resultMap="baseMap">
SELECT
<include refid="BaseColumn"/>
FROM
ft_ypbsp_mxb1 t
WHERE t.delete_type = 0
and t.tenant_key = #{tenantKey}
and t.form_data_id=#{formDataId}
</select>
</mapper>