|
@@ -24,7 +24,8 @@ func RefreshNotice() (err error) {
|
|
return errors.New("GetEdbInfoByCondition:" + 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;">
|
|
dayTable := `<table border="1" style="border-collapse: collapse;">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
@@ -44,11 +45,11 @@ func RefreshNotice() (err error) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
dayTable += dayTableBody
|
|
dayTable += dayTableBody
|
|
- dayTable += ` </tbody></table>`
|
|
|
|
|
|
+ dayTable += ` </tbody></table></div>`
|
|
noticeSendBody := dayDiv + dayTable
|
|
noticeSendBody := dayDiv + dayTable
|
|
noticeSendBody += `<br/>`
|
|
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;">
|
|
weekTable := `<table border="1" style="border-collapse: collapse;">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
@@ -68,11 +69,11 @@ func RefreshNotice() (err error) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
weekTable += weekTableBody
|
|
weekTable += weekTableBody
|
|
- weekTable += ` </tbody></table>`
|
|
|
|
|
|
+ weekTable += ` </tbody></table></div>`
|
|
noticeSendBody += weekDiv + weekTable
|
|
noticeSendBody += weekDiv + weekTable
|
|
noticeSendBody += `<br/>`
|
|
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;">
|
|
monthTable := `<table border="1" style="border-collapse: collapse;">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
@@ -92,12 +93,12 @@ func RefreshNotice() (err error) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
monthTable += monthTableBody
|
|
monthTable += monthTableBody
|
|
- monthTable += ` </tbody></table>`
|
|
|
|
|
|
+ monthTable += ` </tbody></table></div>`
|
|
noticeSendBody += monthDiv + monthTable
|
|
noticeSendBody += monthDiv + monthTable
|
|
noticeSendBody += `<br/>`
|
|
noticeSendBody += `<br/>`
|
|
//所有指标
|
|
//所有指标
|
|
allDiv := `<hr style="color: red">`
|
|
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;">
|
|
allTable := `<table border="1" style="border-collapse: collapse;">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
@@ -114,10 +115,11 @@ func RefreshNotice() (err error) {
|
|
allTableBody += getTableTr(v)
|
|
allTableBody += getTableTr(v)
|
|
}
|
|
}
|
|
allTable += allTableBody
|
|
allTable += allTableBody
|
|
- allTable += ` </tbody></table>`
|
|
|
|
|
|
+ allTable += ` </tbody></table></div>`
|
|
noticeSendBody += allDiv + allTable
|
|
noticeSendBody += allDiv + allTable
|
|
|
|
|
|
utils.SendEmailByHongze("指标更新情况通知", noticeSendBody, utils.RefreshEdbInfoEmailSendToUsers, "", "")
|
|
utils.SendEmailByHongze("指标更新情况通知", noticeSendBody, utils.RefreshEdbInfoEmailSendToUsers, "", "")
|
|
|
|
+ //utils.SendEmailByHongze("指标更新情况通知", noticeSendBody, "317699326@qq.com", "", "")
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|