|
|
@@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<mapper namespace="jp.yamada.fcbi.mapper.YmdfFcStoreMapper">
|
|
|
|
|
|
<resultMap type="YmdfFcStore" id="YmdfFcStoreResult">
|
|
|
- <result property="id" column="id" />
|
|
|
+ <result property="storeId" column="store_id" />
|
|
|
<result property="storeCode" column="store_code" />
|
|
|
<result property="storeName" column="store_name" />
|
|
|
<result property="brandCode" column="brand_code" />
|
|
|
@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectYmdfFcStoreVo">
|
|
|
- select id, store_code, store_name, brand_code, business_type_code, region_code, store_address, store_phone, store_latitude, store_longitude, manager, store_status, del_flag, create_by, create_time, update_by, update_time, remark, version from ymdf_fc_store
|
|
|
+ select store_id, store_code, store_name, brand_code, business_type_code, region_code, store_address, store_phone, store_latitude, store_longitude, manager, store_status, del_flag, create_by, create_time, update_by, update_time, remark, version from ymdf_fc_store
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectYmdfFcStoreList" parameterType="YmdfFcStore" resultMap="YmdfFcStoreResult">
|
|
|
@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertYmdfFcStore" parameterType="YmdfFcStore">
|
|
|
insert into ymdf_fc_store
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,</if>
|
|
|
+ <if test="storeId != null">store_id,</if>
|
|
|
<if test="storeCode != null and storeCode != ''">store_code,</if>
|
|
|
<if test="storeName != null and storeName != ''">store_name,</if>
|
|
|
<if test="brandCode != null and brandCode != ''">brand_code,</if>
|
|
|
@@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="version != null">version,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},</if>
|
|
|
+ <if test="storeId != null">#{storeId},</if>
|
|
|
<if test="storeCode != null and storeCode != ''">#{storeCode},</if>
|
|
|
<if test="storeName != null and storeName != ''">#{storeName},</if>
|
|
|
<if test="brandCode != null and brandCode != ''">#{brandCode},</if>
|
|
|
@@ -125,13 +125,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteYmdfFcStoreById" parameterType="String">
|
|
|
- delete from ymdf_fc_store where id = #{id}
|
|
|
+ delete from ymdf_fc_store where store_id = #{storeId}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteYmdfFcStoreByIds" parameterType="String">
|
|
|
- delete from ymdf_fc_store where id in
|
|
|
+ delete from ymdf_fc_store where store_id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
- #{id}
|
|
|
+ #{storeId}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
</mapper>
|