|
@@ -315,7 +315,7 @@ public class StoreModel {
|
|
|
throw new MallException("添加店铺表失败,请重试");
|
|
|
}
|
|
|
|
|
|
- //插入storeName表
|
|
|
+ //插入storeName表和 StoreSiteInfo表
|
|
|
if (WebSiteConstant.MEMBER_DISTRIBUTOR.equals(ownStoreAddDTO.getWebSite())) {
|
|
|
StoreName storeNameInsert = new StoreName();
|
|
|
storeNameInsert.setStoreId(storeId);
|
|
@@ -327,6 +327,16 @@ public class StoreModel {
|
|
|
if (count == 0) {
|
|
|
throw new MallException("添加店铺名称表失败,请重试");
|
|
|
}
|
|
|
+ StoreSiteInfo storeSiteInfo = new StoreSiteInfo();
|
|
|
+ storeSiteInfo.setStoreId(storeId);
|
|
|
+ storeSiteInfo.setWebSite(ownStoreAddDTO.getWebSite());
|
|
|
+ storeSiteInfo.setBusinessState(StoreConst.STORE_BUSINESS_STATE_DECORATION);
|
|
|
+ storeSiteInfo.setCreateId(0L);
|
|
|
+ storeSiteInfo.setCreateTime(new Date());
|
|
|
+ count = storeSiteInfoWriteMapper.insert(storeSiteInfo);
|
|
|
+ if (count == 0) {
|
|
|
+ throw new MallException("添加店铺站点信息表失败,请重试");
|
|
|
+ }
|
|
|
}
|
|
|
//插入vendor表,关联storeId
|
|
|
Vendor vendor = new Vendor();
|