zhangchuanxing před 5 dny
rodič
revize
20a1bd4d97

+ 7 - 7
controllers/cygx/report_article.go

@@ -1985,9 +1985,9 @@ func (this *IndustrialSubjectController) ReportMappingAdd() {
 	br.IsAddLog = true
 }
 
-//func init() {
-//	initart()
-//}
+func init() {
+	initart()
+}
 
 func initart() {
 	//行业
@@ -2306,13 +2306,13 @@ func initAct() {
 	mapMobile := make(map[string]bool)
 	mapuserMapbil := make(map[int]*models.WxUserSller)
 	//var activityIds []int
-	//activityIds = []int{5590, 5658, 5734, 5747, 5805, 5833, 5832, 5865, 5887, 5872, 5889, 5870, 5892, 5890, 5935, 5976, 5946, 6005,6062} //	2024-12-12 15:30
+	//activityIds = []int{5590, 5658, 5734, 5747, 5805, 5833, 5832, 5865, 5887, 5872, 5889, 5870, 5892, 5890, 5935, 5976, 5946, 6005,6062} //	2024-12-19 15:55
 	//activityIds = []int{6005} //	2024-10-31 17:15
 	//activityIds = []int{6052} //	2024-11-07 16:45
 
-	activity_ids := " 5590, 5658, 5734, 5747, 5805, 5833, 5832, 5865, 5887, 5872, 5889, 5870, 5892, 5890, 5935, 5976, 5946, 6005,6062,6174,6224 "
+	activity_ids := " 5590, 5658, 5734, 5747, 5805, 5833, 5832, 5865, 5887, 5872, 5889, 5870, 5892, 5890, 5935, 5976, 5946, 6005,6062,6174,6224,6254 "
 
-	condition = " AND  s.activity_id IN (" + activity_ids + ")  AND  ( is_meeting  = 1  OR    duration != '' ) AND  s.create_time < '2024-12-05 15:55' "
+	condition = " AND  s.activity_id IN (" + activity_ids + ")  AND  ( is_meeting  = 1  OR    duration != '' ) AND  s.create_time < '2024-12-12 15:30' "
 	listH, err := cygx.GetActivityMeetByUser(condition, 0, 9999)
 	if err != nil {
 		fmt.Println(err)
@@ -2325,7 +2325,7 @@ func initAct() {
 	}
 	fmt.Println(mobileMap)
 
-	condition = " AND  s.activity_id IN (" + activity_ids + ")    AND  ( is_meeting  = 1  OR    duration != '' ) AND  s.create_time > '2024-12-05 15:55'   "
+	condition = " AND  s.activity_id IN (" + activity_ids + ")    AND  ( is_meeting  = 1  OR    duration != '' ) AND  s.create_time > '2024-12-12 15:30'   "
 	list, err := cygx.GetActivityMeetByUser(condition, 0, 1000)
 	fmt.Println(list)
 	fmt.Println()

+ 1 - 1
models/cygx/report_article.go

@@ -1312,7 +1312,7 @@ func GetCygxCelueArticleHistoryRecordPvAll(articleIds string) (item []*ArticleHi
 
 func GetCygxCelueArticleHistoryRecordPvAll_H(articleIds string) (item []*ArticleHistoryRep, err error) {
 	o := orm.NewOrmUsingDB("hz_cygx")
-	sql := `SELECT * FROM cygx_article_history_record_all as  h WHERE article_id IN ( ` + articleIds + ` )  AND   h.is_del = 0  AND h.company_id != 16   AND h.platfor = 2 AND  h.create_time <'2024-12-05 15:55'  `
+	sql := `SELECT * FROM cygx_article_history_record_all as  h WHERE article_id IN ( ` + articleIds + ` )  AND   h.is_del = 0  AND h.company_id != 16   AND h.platfor = 2 AND  h.create_time <'2024-12-12 15:30'  `
 	sql += ` group by mobile  ORDER BY create_time DESC  `
 	_, err = o.Raw(sql).QueryRows(&item)
 	return

+ 1 - 1
models/cygx/summary_manage.go

@@ -575,7 +575,7 @@ func GetArticleHistoryList_H(articleId int, condition string) (items []*ArticleH
 				cygx_article_history_record_all AS h
 			WHERE
 				h.article_id = ?
-				AND h.platfor = 1  AND h.is_del = 0  AND h.create_time <'2024-12-05 15:55' `
+				AND h.platfor = 1  AND h.is_del = 0  AND h.create_time <'2024-12-12 15:30' `
 	if condition != "" {
 		sql = sql + condition + ` group by mobile  `
 	}