1
This commit is contained in:
@@ -125,11 +125,13 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
if resp, err := a.BatchCreateStore(ShopBatchCreateStoreParam); err != nil {
|
if resp, err := a.BatchCreateStore(ShopBatchCreateStoreParam); err != nil {
|
||||||
|
globals.SugarLogger.Debugf("BatchCreateStore err=%v", err)
|
||||||
return "", err
|
return "", err
|
||||||
} else {
|
} else {
|
||||||
|
globals.SugarLogger.Debugf("BatchCreateStore resp=%s", utils.Format4Output(resp, false))
|
||||||
//必须先存进数据库
|
//必须先存进数据库
|
||||||
storeMap := &model.StoreMap{
|
storeMap := &model.StoreMap{
|
||||||
VendorStoreID: vendorStoreID,
|
VendorStoreID: utils.Int64ToStr(resp.ResultList[0].Store.StoreId),
|
||||||
StoreID: storeID,
|
StoreID: storeID,
|
||||||
VendorID: model.VendorIDDD,
|
VendorID: model.VendorIDDD,
|
||||||
VendorOrgCode: storeDetail.VendorOrgCode,
|
VendorOrgCode: storeDetail.VendorOrgCode,
|
||||||
|
|||||||
Reference in New Issue
Block a user