From 88a29049b6a4810cb7295e12b61c6653d63b2bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 25 May 2020 11:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=96=B0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index c6300fc43..469f1eb5a 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1590,13 +1590,14 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { WHERE a.store_id = b.id AND a.vendor_store_id = '' AND a.vendor_id = 5 AND a.deleted_at = ? AND b.deleted_at = ? + and a.jds_street_code = 0 ` sqlParams := []interface{}{utils.DefaultTimeValue, utils.DefaultTimeValue} err = dao.GetRows(db, &stores, sql, sqlParams) result1, _ := api.JdShopAPI.GetProvince() for _, v := range stores { for _, vv := range result1 { - if vv.AreaID != 1 && vv.AreaID != 2 && vv.AreaID != 3 && vv.AreaID != 4 { + if vv.AreaID == 1 || vv.AreaID == 2 || vv.AreaID == 3 || vv.AreaID == 4 { continue } result2, _ := api.JdShopAPI.GetCity(vv.AreaID)