From f3721fda60a1d33d4a38b8c506b2bd906e28559b Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 27 Jun 2019 18:37:18 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E9=97=A8=E5=BA=97=E6=8A=A5=E8=AD=A6excel?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8D=E7=94=A8=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 7b8db4cee..062e39cfe 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1328,7 +1328,7 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p } excelBin := excel.Obj2Excel([]*excel.Obj2ExcelSheetConfig{excelConf}) keyPart := []string{ - fixTitle, + "store_status", mobile, time.Now().Format("20060102T150405") + ".xlsx", } @@ -1353,7 +1353,7 @@ func shouldSkipMobile4SendStoreStatusInfo(mobile string) bool { func sendStoreStatusInfo2Mobile(mobile, title, excelURL string) { if user := userProvider.GetUser(mobile, auth2.AuthTypeMobile); user != nil { globals.SugarLogger.Debugf("sendStoreStatusInfo2Mobile %s:%s", mobile, excelURL) - msg.SendUserMessage(user.GetID(), title, fmt.Sprintf("详情见: %s", excelURL)) + msg.SendUserMessage(user.GetID(), title, fmt.Sprintf("详情见: \n%s", excelURL)) } }