|
@@ -838,7 +838,6 @@ func (this *ReportController) ReportList() {
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
departmentId, _ := this.GetInt("DepartmentId")
|
|
|
industrialManagementId, _ := this.GetInt("IndustrialManagementId")
|
|
|
-
|
|
|
var condition string
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
@@ -880,7 +879,7 @@ func (this *ReportController) ReportList() {
|
|
|
return
|
|
|
}
|
|
|
page = paging.GetPaging(currentIndex, pageSize, total)
|
|
|
- condition += ` ORDER BY art.publish_date DESC`
|
|
|
+ condition += ` GROUP BY art.article_id ORDER BY art.publish_date DESC`
|
|
|
list, err := models.IndustrialToArticleWhichDepartment(condition, pars, uid, startSize, pageSize)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
@@ -899,7 +898,6 @@ func (this *ReportController) ReportList() {
|
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- fmt.Println(len(listSubject))
|
|
|
if len(listSubject) > 0 {
|
|
|
list[k].SubjectName = ""
|
|
|
for _, v3 := range listSubject {
|