<?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.cool.store.mapper.CloseStoreAccountInfoMapper">
  <resultMap id="BaseResultMap" type="com.cool.store.entity.CloseStoreAccountInfoDO">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="close_store_id" jdbcType="BIGINT" property="closeStoreId" />
    <result column="system_name" jdbcType="VARCHAR" property="systemName" />
    <result column="system_code" jdbcType="VARCHAR" property="systemCode" />
    <result column="account_type" jdbcType="VARCHAR" property="accountType" />
    <result column="status" jdbcType="BIT" property="status" />
    <result column="close_type" jdbcType="TINYINT" property="closeType" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  </resultMap>

  <insert id="insertBatch" parameterType="java.util.List">
    INSERT INTO zxjp_close_store_account_info (close_store_id, system_name, system_code, account_type, status, close_type)
    VALUES
    <foreach collection="list" item="item" separator=",">
      (#{item.closeStoreId}, #{item.systemName}, #{item.systemCode}, #{item.accountType}, #{item.status}, #{item.closeType})
    </foreach>
  </insert>
</mapper>