This commit is contained in:
richboo111
2023-10-08 10:02:38 +08:00
parent 176cd43a75
commit aa7fc8c4f4

View File

@@ -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,