<?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.gic.haoban.manage.service.dao.mapper.TabHaobanRepairExternalUserMapper">
  <resultMap type="com.gic.haoban.manage.service.entity.TabHaobanRepairExternalUser" id="result-map-tabHaobanRepairExternalUser">
      <result column="id"  property="id"/>
      <result column="wx_enterprise_id"  property="wxEnterpriseId"/>
      <result column="user_id"  property="userId"/>
      <result column="new_user_id"  property="newUserId"/>
      <result column="status_flag"  property="statusFlag"/>
      <result column="remark"  property="remark"/>
      <result column="update_time"  property="updateTime"/>
  </resultMap>
  <sql id="Base_Column_List">
	  wx_enterprise_id,
	  user_id,
	  new_user_id,
	  status_flag,
	  remark , self_user_id 
  </sql>
  
  <insert id="batchInsert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanRepairExternalUser">
        INSERT INTO tab_haoban_repair_external_user(
          id ,
		  wx_enterprise_id,
		  user_id,
		  new_user_id,
		  status_flag,
		  remark , self_user_id  , update_time 
	  )VALUES
        <foreach collection= "list" item="item" separator=",">
            ( #{item.id} ,  #{item.wxEnterpriseId,jdbcType=CHAR},
			   #{item.userId,jdbcType=VARCHAR},
			   #{item.newUserId,jdbcType=VARCHAR},
			   #{item.statusFlag,jdbcType=INTEGER},
			   #{item.remark,jdbcType=VARCHAR} , #{item.selfUserId} , #{item.updateTime}
			)
        </foreach>
    </insert>
  
</mapper> 