|
@@ -174,9 +174,9 @@ func DocumentReportList(documentType int, chartPermissionIdList []string, classi
|
|
|
}
|
|
|
|
|
|
if orderField != "" && orderType != "" {
|
|
|
- condition += ` order by t1.` + orderField + ` ` + orderType
|
|
|
+ condition += ` group by t1.outside_report_id order by t1.` + orderField + ` ` + orderType
|
|
|
} else {
|
|
|
- condition += ` order by t1.modify_time desc`
|
|
|
+ condition += ` group by t1.outside_report_id order by t1.report_update_time desc`
|
|
|
}
|
|
|
|
|
|
outsideReportList, err := document_manage_model.GetOutsideReportListByCondition(condition, pars, startSize, pageSize)
|
|
@@ -260,9 +260,9 @@ func RuiSiReportList(classifyIdFirst, classifyIdSecond, classifyIdThird int, cha
|
|
|
}
|
|
|
|
|
|
if orderField != "" && orderType != "" {
|
|
|
- condition += ` order by a.` + orderField + ` ` + orderType
|
|
|
+ condition += ` group by a.id order by a.` + orderField + ` ` + orderType
|
|
|
} else {
|
|
|
- condition += ` order by a.publish_time desc`
|
|
|
+ condition += ` group by a.id order by a.publish_time desc`
|
|
|
}
|
|
|
|
|
|
reportList, err := models.GetReportListByCondition(condition, pars, startSize, pageSize)
|