饿鲜达部分商品增加默认价格和分类

This commit is contained in:
苏尹岚
2020-02-18 10:57:48 +08:00
parent 649d4d78e4
commit fa28f3b30c
4 changed files with 25 additions and 15 deletions

View File

@@ -1041,8 +1041,8 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
// globals.SugarLogger.Debug(utils.Format4Output(inSkuBind, false))
var skuBind *model.StoreSkuBind
if v.ID == 0 {
if v.ExdSkuID == "" {
// if !(strings.Contains(v.StoreName, model.ExdStoreName) && v.ExdSkuID == "") {
// if v.ExdSkuID == "" {
if (strings.Contains(v.StoreName, model.ExdStoreName) && v.ExdSkuID != "") || (!strings.Contains(v.StoreName, model.ExdStoreName) && v.ExdSkuID == "") {
if skuBindInfo.IsFocus == 1 && v.SkuNameStatus == model.SkuStatusNormal && v.SkuStatus == model.SkuStatusNormal && isCanChangePrice {
skuBind = &model.StoreSkuBind{
StoreID: storeID,