|
@@ -1053,8 +1053,10 @@ func GetLzSurveyProduct(cont context.Context) (err error) {
|
|
|
//隆众-调研指标数据
|
|
|
func GetLzSurveyProductData(cont context.Context) (err error) {
|
|
|
utils.FileLogLz.Info("GetLzSurveyProductData start:" + time.Now().Format(utils.FormatDateTime))
|
|
|
+ go utils.SendEmail("隆众数据开始获取"+time.Now().Format("2006-01-02 15:04:05"), ";msg:"+msg, utils.EmailSendToUsers)
|
|
|
var msg string
|
|
|
defer func() {
|
|
|
+ go utils.SendEmail("隆众数据获取完成"+time.Now().Format("2006-01-02 15:04:05"), ";msg:"+msg, utils.EmailSendToUsers)
|
|
|
if err != nil {
|
|
|
fmt.Println("Err:" + err.Error())
|
|
|
go utils.SendEmail("获取隆众调研指标数据失败"+time.Now().Format("2006-01-02 15:04:05"), ";Err:"+err.Error(), utils.EmailSendToUsers)
|
|
@@ -1080,7 +1082,7 @@ func GetLzSurveyProductData(cont context.Context) (err error) {
|
|
|
paramMap["pageSize"] = 100
|
|
|
|
|
|
//startDate := time.Now().AddDate(-4, 0, 0).UnixNano() / 1e6
|
|
|
- startDateTime, _ := time.Parse(utils.FormatDate, "2018-01-01")
|
|
|
+ startDateTime, _ := time.Parse(utils.FormatDate, "2021-07-01")
|
|
|
startDate := startDateTime.UnixNano() / 1e6
|
|
|
endDate := time.Now().AddDate(utils.DATA_END_DATE_LIMIT, 0, 0).UnixNano() / 1e6
|
|
|
|