<?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.ssm.manage.mapper.SsmStoreConversionMapper">

    <resultMap type="com.ssm.manage.entity.StoreConversion" id="StoreConversionMap">
        <result property="id" column="id" jdbcType="BIGINT"/>
        <result property="storeId" column="store_id" jdbcType="BIGINT"/>
        <result property="storeNum" column="store_num" jdbcType="VARCHAR"/>
        <result property="storeName" column="store_name" jdbcType="VARCHAR"/>
        <result property="storesId" column="stores_id" jdbcType="BIGINT"/>
        <result property="storesNum" column="stores_num" jdbcType="VARCHAR"/>
        <result property="storesName" column="stores_name" jdbcType="VARCHAR"/>
        <result property="statu" column="statu" jdbcType="INTEGER"/>
        <result property="updateId" column="update_id" jdbcType="BIGINT"/>
        <result property="updateName" column="update_name" jdbcType="VARCHAR"/>
        <result property="updateDate" column="update_date" jdbcType="TIMESTAMP"/>
        <result property="proposerDate" column="proposer_date" jdbcType="TIMESTAMP"/>
        <result property="proposerId" column="proposer_id" jdbcType="BIGINT"/>
        <result property="proposerName" column="proposer_name" jdbcType="VARCHAR"/>
        <result property="orderCode" column="order_code" jdbcType="VARCHAR"/>

        <result property="staffId" column="staff_id" jdbcType="BIGINT"/>
        <result property="staffName" column="staff_name" jdbcType="VARCHAR"/>
        <result property="staffNum" column="staff_num" jdbcType="VARCHAR"/>
        <result property="brandNumber" column="brand_number" jdbcType="VARCHAR"/>
        <result property="oldBrandNumber" column="old_brand_number"  jdbcType="VARCHAR" />
    </resultMap>
    <select id="selectByIds" resultMap="StoreConversionMap">
        select *
--         id,store_id,store_num,store_name,stores_id,stores_num,stores_name,statu,order_code,staff_id,staff_name,brand_number,staff_num
        from store_conversion where id in
        <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
            #{item}
        </foreach>
    </select>

</mapper>

