|
@@ -3868,8 +3868,9 @@ func initart22() {
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
|
|
|
- condition += ` AND art.is_class = 1 `
|
|
|
- condition += ` AND art.publish_date >= '2024-01-01' AND art.file_link = '' AND publish_status = 1 `
|
|
|
+ condition += ` AND art.publish_date >= '2024-10-01'
|
|
|
+ AND art.publish_status = 1
|
|
|
+ AND art.article_type_id = 0 `
|
|
|
|
|
|
//return
|
|
|
condition += ` GROUP BY art.article_id ORDER BY art.publish_date DESC `
|
|
@@ -3934,26 +3935,31 @@ func initart22() {
|
|
|
|
|
|
cellPd := rowTitle.AddCell()
|
|
|
cellPd.Value = "行业"
|
|
|
- cellA := rowTitle.AddCell()
|
|
|
- cellA.Value = "系列"
|
|
|
+ //cellA := rowTitle.AddCell()
|
|
|
+ //cellA.Value = "系列"
|
|
|
cellB := rowTitle.AddCell()
|
|
|
cellB.Value = "发布时间"
|
|
|
|
|
|
for _, v := range list {
|
|
|
|
|
|
- if v.SubCategoryName != "行业深度" {
|
|
|
- continue
|
|
|
- }
|
|
|
+ //if v.SubCategoryName != "行业深度" {
|
|
|
+ // continue
|
|
|
+ //}
|
|
|
row := sheet.AddRow()
|
|
|
|
|
|
cellADatatitle := row.AddCell()
|
|
|
cellADatatitle.Value = v.Title
|
|
|
|
|
|
cellADataPd := row.AddCell()
|
|
|
- cellADataPd.Value = v.ChartPermissionName
|
|
|
|
|
|
- cellAData := row.AddCell()
|
|
|
- cellAData.Value = v.SubCategoryName
|
|
|
+ if v.ChartPermissionName == "" {
|
|
|
+ cellADataPd.Value = v.CategoryName
|
|
|
+ } else {
|
|
|
+ cellADataPd.Value = v.ChartPermissionName
|
|
|
+ }
|
|
|
+
|
|
|
+ //cellAData := row.AddCell()
|
|
|
+ //cellAData.Value = v.SubCategoryName
|
|
|
|
|
|
cellBData := row.AddCell()
|
|
|
cellBData.Value = v.PublishDate
|