fix initShop
This commit is contained in:
@@ -39,10 +39,12 @@
|
||||
</sql>
|
||||
|
||||
<insert id="batchAddShop" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
|
||||
insert into xfsg_shop_info(region_id, line_id, partner_id, shop_name, store_num,supervisor_user_id) values
|
||||
insert into xfsg_shop_info(region_id, line_id, partner_id, shop_name, store_num,supervisor_user_id,create_time,join_mode,franchise_brand,
|
||||
development_manager,want_shop_area_id,investment_manager) values
|
||||
<foreach collection="shopInfoList" item="shop" separator=",">
|
||||
(#{shop.regionId}, #{shop.lineId}, #{shop.partnerId}, #{shop.shopName},
|
||||
#{shop.storeNum},#{shop.supervisorUserId})
|
||||
#{shop.storeNum},#{shop.supervisorUserId},#{shop.createTime},#{shop.joinMode},#{shop.franchiseBrand},#{shop.developmentManager},
|
||||
#{shop.wantShopAreaId},#{shop.investmentManager})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
|
||||
@@ -111,6 +111,8 @@ public class ShopServiceImpl implements ShopService {
|
||||
shopInfo.setStoreNum(RandomEightCharCodeUtils.getCode());
|
||||
shopInfo.setSupervisorUserId(lineInfo.getInvestmentManager());
|
||||
shopInfo.setShopName("店铺" + NumberConverter.convertArabicToChinese(i + 1));
|
||||
shopInfo.setCreateTime(new Date());
|
||||
shopInfo.setInvestmentManager(lineInfo.getInvestmentManager());
|
||||
addShopList.add(shopInfo);
|
||||
}
|
||||
shopInfoDAO.batchAddShop(addShopList);
|
||||
|
||||
Reference in New Issue
Block a user