|
|
@@ -88,7 +88,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
wxMerchantMapper.insertSelective(wxMerchant); |
|
|
wxMerchantMapper.insertSelective(wxMerchant); |
|
|
|
|
|
|
|
|
//保存商户商铺的关联 |
|
|
//保存商户商铺的关联 |
|
|
List<Long> shopidlist = JSONArray.parseArray(wxMerchant.getShopids(), Long.class); |
|
|
|
|
|
|
|
|
List<Long> shopidlist = wxMerchant.getShopids(); |
|
|
for(Long shopid:shopidlist){ |
|
|
for(Long shopid:shopidlist){ |
|
|
WxMerchantShop wxMerchantShop = new WxMerchantShop(); |
|
|
WxMerchantShop wxMerchantShop = new WxMerchantShop(); |
|
|
wxMerchantShop.setId(idWorker.nextId()); |
|
|
wxMerchantShop.setId(idWorker.nextId()); |
|
|
@@ -110,7 +110,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//保存商户关联用户 |
|
|
//保存商户关联用户 |
|
|
List<Long> useridlist = JSONArray.parseArray(wxMerchant.getUserids(), Long.class); |
|
|
|
|
|
|
|
|
List<Long> useridlist = wxMerchant.getUserids(); |
|
|
for(Long userid:useridlist){ |
|
|
for(Long userid:useridlist){ |
|
|
WxMerchantBUser wxMerchantBUser = new WxMerchantBUser(); |
|
|
WxMerchantBUser wxMerchantBUser = new WxMerchantBUser(); |
|
|
wxMerchantBUser.setId(userid); |
|
|
wxMerchantBUser.setId(userid); |
|
|
@@ -148,7 +148,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
|
|
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
//保存商户商铺的关联 |
|
|
//保存商户商铺的关联 |
|
|
List<Long> shopidlist = JSONArray.parseArray(wxMerchant.getShopids(), Long.class); |
|
|
|
|
|
|
|
|
List<Long> shopidlist = wxMerchant.getShopids(); |
|
|
for(Long shopid:shopidlist){ |
|
|
for(Long shopid:shopidlist){ |
|
|
WxMerchantShop wxMerchantShop = new WxMerchantShop(); |
|
|
WxMerchantShop wxMerchantShop = new WxMerchantShop(); |
|
|
wxMerchantShop.setId(idWorker.nextId()); |
|
|
wxMerchantShop.setId(idWorker.nextId()); |
|
|
@@ -171,7 +171,7 @@ public class WxMerchantServiceImpl implements WxMerchantService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//保存商户关联用户 |
|
|
//保存商户关联用户 |
|
|
List<Long> useridlist = JSONArray.parseArray(wxMerchant.getUserids(), Long.class); |
|
|
|
|
|
|
|
|
List<Long> useridlist = wxMerchant.getUserids(); |
|
|
for(Long userid:useridlist){ |
|
|
for(Long userid:useridlist){ |
|
|
WxMerchantBUser wxMerchantBUser = new WxMerchantBUser(); |
|
|
WxMerchantBUser wxMerchantBUser = new WxMerchantBUser(); |
|
|
wxMerchantBUser.setId(userid); |
|
|
wxMerchantBUser.setId(userid); |
|
|
|