<?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.ym.mec.biz.dal.dao.TenantApplyCallRecordDao">
    <resultMap id="BaseResultMap" type="com.ym.mec.biz.dal.entity.TenantApplyCallRecord">
        <id column="id_" jdbcType="INTEGER" property="id"/>
        <result column="tenant_apply_id_" jdbcType="INTEGER" property="tenantApplyId"/>
        <result column="call_back_people_" jdbcType="VARCHAR" property="callBackPeople"/>
        <result column="call_back_log_" jdbcType="VARCHAR" property="callBackLog"/>
        <result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
    </resultMap>

    <sql id="Base_Column_List">
        id_, tenant_apply_id_, call_back_people_, call_back_log_, create_time_
    </sql>

    <insert id="insertBatch" keyColumn="id_" keyProperty="id" useGeneratedKeys="true"
            parameterType="com.ym.mec.biz.dal.entity.TenantApplyCallRecord">
        insert into tenant_apply_call_record(tenant_apply_id_, call_back_people_, call_back_log_, create_time_)
        values
        <foreach collection="entities" item="entity" separator=",">
            (#{entity.tenantApplyId}, #{entity.callBackPeople}, #{entity.callBackLog}, #{entity.createTime})
        </foreach>
    </insert>

</mapper>
