浏览代码

no message

xingzai 3 年之前
父节点
当前提交
52b1417fc1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      controllers/report.go

+ 2 - 0
controllers/report.go

@@ -701,6 +701,7 @@ func (this *ReportController) IndustryListByDepartment() {
 				br.ErrMsg = "获取失败,Err:" + err.Error()
 				return
 			}
+			subjectNamesNew = strings.TrimRight(subjectNamesNew, "/")
 			artList[k2].SubjectName = subjectNamesNew
 			artList[k2].DepartmentId = v.DepartmentId
 			artList[k2].IndustryName = industryName + "-" + subjectNamesNew
@@ -929,6 +930,7 @@ func (this *ReportController) ReportList() {
 			br.ErrMsg = "获取失败,Err:" + err.Error()
 			return
 		}
+		subjectNamesNew = strings.TrimRight(subjectNamesNew, "/")
 		list[k].SubjectName = subjectNamesNew
 		list[k].IndustryName = industryName + "-" + subjectNamesNew
 	}