Forráskód Böngészése

修改指标同步提醒

hongze 3 éve
szülő
commit
db7fe8a089
1 módosított fájl, 10 hozzáadás és 8 törlés
  1. 10 8
      services/data/edb_info_notice.go

+ 10 - 8
services/data/edb_info_notice.go

@@ -24,7 +24,8 @@ func RefreshNotice() (err error) {
 		return errors.New("GetEdbInfoByCondition:" + err.Error())
 	}
 	//日度
-	dayDiv := `<div>日度指标,超过3天未更新:</div>`
+	dayDiv := `<div style="margin-bottom: 20px;min-width: 1000px;overflow-x: scroll;">
+                <div>日度指标,超过3天未更新:</div>`
 	dayTable := `<table border="1" style="border-collapse: collapse;">
     <thead>
     <tr>
@@ -44,11 +45,11 @@ func RefreshNotice() (err error) {
 		}
 	}
 	dayTable += dayTableBody
-	dayTable += ` </tbody></table>`
+	dayTable += ` </tbody></table></div>`
 	noticeSendBody := dayDiv + dayTable
 	noticeSendBody += `<br/>`
 	//周度
-	weekDiv := `<div>周度指标,超过7天未更新:</div>`
+	weekDiv := `<div style="margin-bottom: 20px;min-width: 1000px;overflow-x: scroll;"><div>周度指标,超过7天未更新:</div>`
 	weekTable := `<table border="1" style="border-collapse: collapse;">
     <thead>
     <tr>
@@ -68,11 +69,11 @@ func RefreshNotice() (err error) {
 		}
 	}
 	weekTable += weekTableBody
-	weekTable += ` </tbody></table>`
+	weekTable += ` </tbody></table></div>`
 	noticeSendBody += weekDiv + weekTable
 	noticeSendBody += `<br/>`
 	//月度
-	monthDiv := `<div>月度指标,超过一个月未更新:</div>`
+	monthDiv := `<div style="margin-bottom: 20px;min-width: 1000px;overflow-x: scroll;"><div>月度指标,超过一个月未更新:</div>`
 	monthTable := `<table border="1" style="border-collapse: collapse;">
     <thead>
     <tr>
@@ -92,12 +93,12 @@ func RefreshNotice() (err error) {
 		}
 	}
 	monthTable += monthTableBody
-	monthTable += ` </tbody></table>`
+	monthTable += ` </tbody></table></div>`
 	noticeSendBody += monthDiv + monthTable
 	noticeSendBody += `<br/>`
 	//所有指标
 	allDiv := `<hr style="color: red">`
-	allDiv = `<div>当前所有指标,按数据日期升序排列:</div>`
+	allDiv = `<div style="margin-bottom: 20px;min-width: 1000px;overflow-x: scroll;"><div>当前所有指标,按数据日期升序排列:</div>`
 	allTable := `<table border="1" style="border-collapse: collapse;">
     <thead>
     <tr>
@@ -114,10 +115,11 @@ func RefreshNotice() (err error) {
 		allTableBody += getTableTr(v)
 	}
 	allTable += allTableBody
-	allTable += ` </tbody></table>`
+	allTable += ` </tbody></table></div>`
 	noticeSendBody += allDiv + allTable
 
 	utils.SendEmailByHongze("指标更新情况通知", noticeSendBody, utils.RefreshEdbInfoEmailSendToUsers, "", "")
+	//utils.SendEmailByHongze("指标更新情况通知", noticeSendBody, "317699326@qq.com", "", "")
 	return
 }