diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 3c9487f29..1e0a5a524 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -2090,8 +2090,11 @@ func RrefreshEbaiVendorAct(ctx *jxcontext.Context) (err error) { ` sqlParams := []interface{}{storeMap.StoreID, sku.Skuid} if err = dao.GetRow(db, &storeSkuBind, sql, sqlParams); err == nil && storeSkuBind != nil { - actVendorSku.SkuID = storeSkuBind.SkuID - actVendorSku.OriginPrice = jxutils.IntPrice2Standard(int64(storeSkuBind.Price)) + if actSkus, _ := dao.GetEffectiveActStoreSkuInfo(db, 0, []int{model.VendorIDMTWM}, model.ActTypeAll, []int{storeMap.StoreID}, + []int{storeSkuBind.SkuID}, utils.Timestamp2Time(result.Starttime), utils.Timestamp2Time(result.Endtime)); len(actSkus) == 0 { + actVendorSku.SkuID = storeSkuBind.SkuID + actVendorSku.OriginPrice = jxutils.IntPrice2Standard(int64(storeSkuBind.Price)) + } } dao.CreateEntity(db, actVendorSku) } diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 9a485d8a6..fd0562076 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1973,7 +1973,8 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // } // } //} - act.RrefreshMtwmVendorAct(jxcontext.AdminCtx) + //act.RrefreshMtwmVendorAct(jxcontext.AdminCtx) + act.RrefreshEbaiVendorAct(jxcontext.AdminCtx) //var ( // db = dao.GetDB() // skuNames []*model.SkuName