Browse Source

no message

xingzai 1 year ago
parent
commit
2ff2febc70
1 changed files with 18 additions and 3 deletions
  1. 18 3
      services/resource_data.go

+ 18 - 3
services/resource_data.go

@@ -482,9 +482,24 @@ func UpdateResourceData(sourceId int, source, doType, publishDate string) (err e
 	return
 }
 
-//func init() {
-//	UpdateNewchartResourceData(5509)
-//}
+func init130() {
+	//UpdateNewchartResourceData(5509)
+
+	var condition string
+	var pars []interface{}
+	condition += ` AND publish_status  = 1 `
+
+	list, e := models.GetChartList(condition, pars, 0, 1000000)
+	if e != nil {
+		fmt.Println(e)
+		return
+	}
+
+	for _, v := range list {
+		fmt.Println(v.ChartId)
+		UpdateNewchartResourceData(v.ChartId)
+	}
+}
 
 // 更新图表
 func UpdateNewchartResourceData(sourceId int) {