From 9b53e546b912e6509792ec16c2b1e6a74d0e2b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 14 Feb 2020 11:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E7=BB=9F=E8=AE=A1=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E4=BA=8B=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/report/report.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index cc2201e9c..c514f6b25 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -263,12 +263,8 @@ func BeginSavePriceRefer(ctx *jxcontext.Context, cityCodes, skuIDs []int, isAsyn v := batchItemList[0].(*model.PriceReferSnapshot) for _, appOrg := range apimanager.CurAPIManager.GetAppOrgCodeList(model.VendorIDJD) { directPrice, _ := jd.GetAPI(appOrg).GetJdSkuDirectPrice(v.SkuID) - if directPrice == 0 { - continue - } else { - v.JdDirectPrice = int(directPrice) - dao.UpdateEntity(db, v, "JdDirectPrice") - } + v.JdDirectPrice = int(directPrice) + dao.UpdateEntity(db, v, "JdDirectPrice") } return retVal, err }