新增店铺

This commit is contained in:
zhangchenbiao
2024-04-24 14:26:39 +08:00
parent e2cf2ae528
commit 15feb2d9a5
2 changed files with 21 additions and 12 deletions

View File

@@ -25,10 +25,10 @@
id, region_id, line_id, partner_id, point_id, shop_name, shop_code, store_num, shop_manager_user_id, supervisor_user_id, plan_open_time, cur_progress, shop_type, shop_stage, deleted, create_time, update_time
</sql>
<insert id="batchAddShop">
<foreach collection="shopInfoList" item="shop" separator=";">
insert into xfsg_shop_info(region_id, line_id, partner_id, shop_name, shop_code)
values(#{shop.regionId}, #{shop.lineId}, #{shop.partnerId}, #{shop.shopName}, #{shop.shopCode})
<insert id="batchAddShop" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
insert into xfsg_shop_info(region_id, line_id, partner_id, shop_name, shop_code) values
<foreach collection="shopInfoList" item="shop" separator=",">
(#{shop.regionId}, #{shop.lineId}, #{shop.partnerId}, #{shop.shopName}, #{shop.shopCode})
</foreach>
</insert>