|
@@ -638,7 +638,7 @@ func (this *ReportController) IndustryListByDepartment() {
|
|
|
chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
var startSize int
|
|
|
var condition string
|
|
|
- condition = ` AND a.publish_status=1 AND m.chart_permission_id =` + strconv.Itoa(chartPermissionId)
|
|
|
+ condition = ` AND a.is_report = 1 AND a.publish_status=1 AND m.chart_permission_id =` + strconv.Itoa(chartPermissionId)
|
|
|
if pageSize <= 0 {
|
|
|
pageSize = utils.PageSize20
|
|
|
}
|
|
@@ -680,7 +680,6 @@ func (this *ReportController) IndustryListByDepartment() {
|
|
|
}
|
|
|
for k2, v2 := range artList {
|
|
|
subjectNames, err := models.GetSubjectNames(v2.ArticleId)
|
|
|
-
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败" + strconv.Itoa(v2.ArticleId)
|
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
@@ -877,7 +876,6 @@ func (this *ReportController) ReportList() {
|
|
|
condition += ` AND art.department_id = ` + strconv.Itoa(departmentId)
|
|
|
}
|
|
|
if industrialManagementId > 0 {
|
|
|
-
|
|
|
condition += ` AND m.industrial_management_id = ` + strconv.Itoa(industrialManagementId)
|
|
|
}
|
|
|
if articleId > 0 {
|
|
@@ -897,7 +895,7 @@ func (this *ReportController) ReportList() {
|
|
|
return
|
|
|
}
|
|
|
page = paging.GetPaging(currentIndex, pageSize, total)
|
|
|
- condition += ` GROUP BY art.article_id ORDER BY art.publish_date DESC`
|
|
|
+ condition += ` AND art.is_report =1 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 = "获取失败"
|
|
@@ -933,6 +931,7 @@ func (this *ReportController) ReportList() {
|
|
|
subjectNamesNew = strings.TrimRight(subjectNamesNew, "/")
|
|
|
list[k].SubjectName = subjectNamesNew
|
|
|
list[k].IndustryName = industryName + "-" + subjectNamesNew
|
|
|
+ resp.IndustryName = industryName
|
|
|
}
|
|
|
resp.List = list
|
|
|
resp.Paging = page
|