|
@@ -669,9 +669,10 @@ func (this *ReportController) IndustryListByDepartment() {
|
|
}
|
|
}
|
|
listDepar[k2].SubjectName = strings.TrimRight(listDepar[k2].SubjectName, "/")
|
|
listDepar[k2].SubjectName = strings.TrimRight(listDepar[k2].SubjectName, "/")
|
|
}
|
|
}
|
|
- listDepar[k2].IndustryName += "-" + listDepar[k2].SubjectName
|
|
+ if listDepar[k2].SubjectName != "" {
|
|
|
|
+ listDepar[k2].IndustryName += "-" + listDepar[k2].SubjectName
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
list[k].List = listDepar
|
|
list[k].List = listDepar
|
|
if v.FollowNum > 0 {
|
|
if v.FollowNum > 0 {
|
|
list[k].IsMyFollow = true
|
|
list[k].IsMyFollow = true
|
|
@@ -862,7 +863,9 @@ func (this *ReportController) ReportList() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
list[k].SubjectName = strings.TrimRight(list[k].SubjectName, "/")
|
|
list[k].SubjectName = strings.TrimRight(list[k].SubjectName, "/")
|
|
- list[k].IndustryName += "-" + list[k].SubjectName
|
|
+ if list[k].SubjectName != "" {
|
|
|
|
+ list[k].IndustryName += "-" + list[k].SubjectName
|
|
|
|
+ }
|
|
resp.NickName = v.NickName
|
|
resp.NickName = v.NickName
|
|
resp.IndustryName = v.IndustryName
|
|
resp.IndustryName = v.IndustryName
|
|
}
|
|
}
|