饿鲜达创建门店商品优化

This commit is contained in:
苏尹岚
2020-02-11 14:38:59 +08:00
parent 3cc6db8f0f
commit dec577d5fb
4 changed files with 11 additions and 5 deletions

View File

@@ -20,7 +20,6 @@ import (
const (
defVendorCatID = 201222934 // 其他蔬菜
exdStoreName = "饿鲜达"
)
var (
@@ -148,8 +147,7 @@ func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, v
isExd bool = false
customSkuID int64
)
store, _ := dao.GetStoreDetail(dao.GetDB(), storeSku.StoreID, model.VendorIDEBAI)
if strings.Contains(store.Name, exdStoreName) {
if strings.Contains(storeSku.StoreName, model.ExdStoreName) {
isExd = true
customSkuID = utils.Str2Int64(storeSku.ExdSkuID)
} else {