- 临时修改SendAlarmVendorSnapshot
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user