|
@@ -174,9 +174,9 @@ func DocumentReportList(documentType int, chartPermissionIdList []string, classi
|
|
|
}
|
|
|
|
|
|
if orderField != "" && orderType != "" {
|
|
|
- condition += ` group by t1.outside_report_id order by t1.` + orderField + ` ` + orderType
|
|
|
+ condition += ` order by t1.` + orderField + ` ` + orderType
|
|
|
} else {
|
|
|
- condition += ` group by t1.outside_report_id order by t1.report_update_time desc`
|
|
|
+ condition += ` order by t1.report_update_time desc`
|
|
|
}
|
|
|
|
|
|
outsideReportList, err := document_manage_model.GetOutsideReportListByCondition(condition, pars, startSize, pageSize)
|
|
@@ -237,7 +237,7 @@ func RuiSiReportList(classifyIdFirst, classifyIdSecond, classifyIdThird int, cha
|
|
|
}
|
|
|
|
|
|
// 作者为 全球市场战略研究中心 PCI Research
|
|
|
- condition += ` and a.author = '全球市场战略研究中心 PCI Research'`
|
|
|
+ condition += ` and a.author = '战研中心 PCIR'`
|
|
|
// 已发布的报告
|
|
|
condition += ` and a.state = 2`
|
|
|
|
|
@@ -276,9 +276,9 @@ func RuiSiReportList(classifyIdFirst, classifyIdSecond, classifyIdThird int, cha
|
|
|
}
|
|
|
|
|
|
if orderField != "" && orderType != "" {
|
|
|
- condition += ` group by a.id order by a.` + orderField + ` ` + orderType
|
|
|
+ condition += ` order by a.` + orderField + ` ` + orderType
|
|
|
} else {
|
|
|
- condition += ` group by a.id order by a.publish_time desc`
|
|
|
+ condition += ` order by a.publish_time desc`
|
|
|
}
|
|
|
|
|
|
reportList, err := models.GetReportListByCondition(condition, pars, startSize, pageSize)
|