From ed0f172865f9349eb6907be8aa18df71d4889dd8 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 26 Nov 2019 11:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E8=A5=BF=E6=B4=BB=E5=8A=A8=E4=B8=8D?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=90=8C=E6=AD=A5=E6=A0=87=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/act/act.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index d70606856..119d3a727 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -160,7 +160,9 @@ func ActStoreSkuParam2Model(ctx *jxcontext.Context, db *dao.DaoDB, act *model.Ac wrongSkuList = append(wrongSkuList, v) continue } - actSkuMap.SyncStatus = model.SyncFlagNewMask + if !(vendorID == model.VendorIDJX || act.Type == model.ActSkuFake) { + actSkuMap.SyncStatus = model.SyncFlagNewMask + } if v.ActPrice != 0 { actSkuMap.ActualActPrice = v.ActPrice } else { @@ -430,11 +432,9 @@ func CreateAct(ctx *jxcontext.Context, act *model.Act, vendorIDs []int, actRules actMap := &model.ActMap{ ActID: act.ID, VendorID: vendorID, - - SyncStatus: model.SyncFlagNewMask, } - if act.Type == model.ActSkuFake { - actMap.SyncStatus = 0 + if !(vendorID == model.VendorIDJX || act.Type == model.ActSkuFake) { + actMap.SyncStatus = model.SyncFlagNewMask } dao.WrapAddIDCULDEntity(actMap, ctx.GetUserName()) actMapList = append(actMapList, actMap)