瀏覽代碼

no message

zhangchuanxing 1 月之前
父節點
當前提交
0664652b34
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      controllers/cygx/report_article.go

+ 10 - 1
controllers/cygx/report_article.go

@@ -5246,7 +5246,7 @@ func initart121_1() {
 }
 
 //func init() {
-//	initContract()
+//	initUserKw()
 //}
 
 func initAct33() {
@@ -5558,7 +5558,16 @@ func initUserKw() {
 	cellB12 := rowTitle.AddCell()
 	cellB12.Value = "搜索时间"
 
+	mapUserTimeDay := make(map[string]bool)
+
 	for _, vE := range listKw {
+
+		ctime := utils.StrTimeToTime(vE.CreateTime).Format(utils.FormatDate)
+		keyMap := fmt.Sprint(vE.Mobile, "_", ctime, vE.KeyWord)
+		if mapUserTimeDay[keyMap] {
+			continue
+		}
+		mapUserTimeDay[keyMap] = true
 		row := sheet.AddRow()
 		cellAData := row.AddCell()
 		cellAData.Value = vE.KeyWord