- 门店状态报警提示修改

This commit is contained in:
gazebo
2019-09-11 17:37:57 +08:00
parent 569abe56b5
commit 435b4397d6
2 changed files with 3 additions and 3 deletions

View File

@@ -1716,8 +1716,8 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p
curSnapshot := curSnapshotMap[v.GenMapKey()]
// storeDetail := storeDetailMap[v.StoreID]
curStoreStatus := "下线"
if curSnapshot != nil && curSnapshot.Status == model.StoreStatusOpened {
curStoreStatus = "上线"
if curSnapshot != nil {
curStoreStatus = model.StoreStatusName[curSnapshot.Status]
}
txtAlarm = append(txtAlarm, fmt.Sprintf("您的门店:%s,平台:%s,%s了", v.StoreName, model.VendorChineseNames[v.VendorID], curStoreStatus))
}

View File

@@ -49,7 +49,7 @@ const (
var (
StoreStatusName = map[int]string{
StoreStatusDisabled: "禁用",
StoreStatusClosed: "长期休息",
StoreStatusClosed: "休息",
StoreStatusHaveRest: "临时休息",
StoreStatusOpened: "营业中",
}