- 门店状态报警提示修改
This commit is contained in:
@@ -1716,8 +1716,8 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p
|
|||||||
curSnapshot := curSnapshotMap[v.GenMapKey()]
|
curSnapshot := curSnapshotMap[v.GenMapKey()]
|
||||||
// storeDetail := storeDetailMap[v.StoreID]
|
// storeDetail := storeDetailMap[v.StoreID]
|
||||||
curStoreStatus := "下线"
|
curStoreStatus := "下线"
|
||||||
if curSnapshot != nil && curSnapshot.Status == model.StoreStatusOpened {
|
if curSnapshot != nil {
|
||||||
curStoreStatus = "上线"
|
curStoreStatus = model.StoreStatusName[curSnapshot.Status]
|
||||||
}
|
}
|
||||||
txtAlarm = append(txtAlarm, fmt.Sprintf("您的门店:%s,平台:%s,%s了", v.StoreName, model.VendorChineseNames[v.VendorID], curStoreStatus))
|
txtAlarm = append(txtAlarm, fmt.Sprintf("您的门店:%s,平台:%s,%s了", v.StoreName, model.VendorChineseNames[v.VendorID], curStoreStatus))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const (
|
|||||||
var (
|
var (
|
||||||
StoreStatusName = map[int]string{
|
StoreStatusName = map[int]string{
|
||||||
StoreStatusDisabled: "禁用",
|
StoreStatusDisabled: "禁用",
|
||||||
StoreStatusClosed: "长期休息",
|
StoreStatusClosed: "休息",
|
||||||
StoreStatusHaveRest: "临时休息",
|
StoreStatusHaveRest: "临时休息",
|
||||||
StoreStatusOpened: "营业中",
|
StoreStatusOpened: "营业中",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user