Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop
This commit is contained in:
@@ -82,7 +82,7 @@ func SplicingTimeToDoudian(openTime1, closeTime1, openTime2, closeTime2 int16) (
|
|||||||
// shop/batchCreateStore 批量创建门店
|
// shop/batchCreateStore 批量创建门店
|
||||||
func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) {
|
func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) {
|
||||||
var (
|
var (
|
||||||
storeIDs string
|
//storeIDs string
|
||||||
tempStoreID []int64
|
tempStoreID []int64
|
||||||
lists []shop_batchCreateStore_request.StoreListItem
|
lists []shop_batchCreateStore_request.StoreListItem
|
||||||
ShopBatchCreateStoreParam *shop_batchCreateStore_request.ShopBatchCreateStoreParam
|
ShopBatchCreateStoreParam *shop_batchCreateStore_request.ShopBatchCreateStoreParam
|
||||||
@@ -126,6 +126,7 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
if len(resp.ResultList) == 0 {
|
if len(resp.ResultList) == 0 {
|
||||||
return "", errors.New(fmt.Sprintf("创建店铺失败:%v", err))
|
return "", errors.New(fmt.Sprintf("创建店铺失败:%v", err))
|
||||||
}
|
}
|
||||||
|
var storeIDs string
|
||||||
for k, v := range resp.ResultList {
|
for k, v := range resp.ResultList {
|
||||||
if k != len(resp.ResultList) {
|
if k != len(resp.ResultList) {
|
||||||
storeIDs = utils.Int64ToStr(v.Store.StoreId) + ","
|
storeIDs = utils.Int64ToStr(v.Store.StoreId) + ","
|
||||||
|
|||||||
Reference in New Issue
Block a user