From 322d1969926604f823cd5bf21a31c4bfca7a583c Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 9 Sep 2019 13:37:37 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=B8=B4=E6=97=B6=E4=BF=AE=E6=94=B9SendAla?= =?UTF-8?q?rmVendorSnapshot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index c29fe6ade..d84319f03 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1585,6 +1585,27 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p storeDetail, _ := dao.GetStoreDetail(db, storeID, list[0].VendorID) if storeDetail != nil { storeDetailMap[storeID] = storeDetail + + // userList, _ := GetRoleUserList(ctx, autils.NewStoreBossRole(storeID)) + // for _, mobile := range []string{storeDetail.Tel1, storeDetail.MarketManPhone, storeDetail.OperatorPhone} { + // if mobile != "" { + // if user, err2 := dao.GetUserByID(db, "mobile", mobile); err2 == nil { + // userList = append(userList, user.GetID()) + // } + // } + // } + // for _, userID := range userList { + // if userID != "" { + // if userMap[userID] == nil { + // userMap[userID] = make(map[int]int) + // } + // userMap[userID][storeID] = 1 + // if txtAlarmSnapshotMap[storeID] != nil { + // userMapTxt[userID] = append(userMapTxt[userID], txtAlarmSnapshotMap[storeID]...) + // } + // } + // } + for _, mobile := range []string{storeDetail.Tel1, storeDetail.MarketManPhone, storeDetail.OperatorPhone} { if mobile != "" { if userMap[mobile] == nil {