From 0d402ec65fbe182591eec371063f51738e421715 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, 15 Mar 2021 11:17:31 +0800 Subject: [PATCH] aa --- business/jxcallback/orderman/orderman_ext.go | 9 +++++++++ business/jxstore/cms/store.go | 6 ++++++ business/jxstore/cms/store_sku.go | 6 ++++++ business/jxstore/cms/sync.go | 3 +++ business/jxstore/misc/store_score.go | 3 +++ business/jxstore/report/report.go | 3 +++ business/jxutils/weixinmsg/weixinmsg.go | 3 +++ 7 files changed, 33 insertions(+) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index e89896b0c..1aacd4b44 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -300,6 +300,9 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro } } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) @@ -344,6 +347,9 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS } } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) @@ -905,6 +911,9 @@ func (c *OrderManager) GetAfsOrders(ctx *jxcontext.Context, keyword, afsOrderID, storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index e0d3db66c..f226adae5 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1539,6 +1539,9 @@ func TmpGetJxBadCommentsByStoreId(ctx *jxcontext.Context, keyword string, storeI storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) @@ -2846,6 +2849,9 @@ func GetStorePriceScore(ctx *jxcontext.Context, storeIDs, vendorIDs []int, fromS storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 3533da991..ec78f70ef 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -497,6 +497,9 @@ func GetStoresSkus(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus, isHi storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) @@ -4813,6 +4816,9 @@ func GetStoreSkuAudit(ctx *jxcontext.Context, storeIDs, nameIDs, skuIDs, statuss storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 3277a6dde..e2f433052 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -532,6 +532,9 @@ func (v *VendorSync) SyncStoresSkus(ctx *jxcontext.Context, parentTask tasksch.I storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) diff --git a/business/jxstore/misc/store_score.go b/business/jxstore/misc/store_score.go index 0340dc879..7621c1458 100644 --- a/business/jxstore/misc/store_score.go +++ b/business/jxstore/misc/store_score.go @@ -825,6 +825,9 @@ func GetStoreTotalScoreList(ctx *jxcontext.Context, storeIDList []int, cityCode storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index d18317767..f723090f3 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -486,6 +486,9 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID, sortT storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k) diff --git a/business/jxutils/weixinmsg/weixinmsg.go b/business/jxutils/weixinmsg/weixinmsg.go index 7ebf6fdba..7c08a6c0b 100644 --- a/business/jxutils/weixinmsg/weixinmsg.go +++ b/business/jxutils/weixinmsg/weixinmsg.go @@ -807,6 +807,9 @@ func SendStoreMessage(ctx *jxcontext.Context, title, content string, storeIDs [] storeIDs2 = append(storeIDs2, v) } } + if len(storeIDs2) == 0 { + storeIDs2 = append(storeIDs2, -1) + } } else { for k, _ := range storeIDsMap { storeIDs2 = append(storeIDs2, k)