|
@@ -1947,7 +1947,7 @@ func (this *ReportController) IndustryListByDepartmentPc() {
|
|
|
articleIdGroup = articleIdSub + "," + articleIdInd
|
|
|
} else if articleIdSub != "" && articleIdInd == "" {
|
|
|
articleIdGroup = articleIdSub
|
|
|
- } else if articleIdSub == "" && articleIdInd == "" {
|
|
|
+ } else if articleIdSub == "" && articleIdInd != "" {
|
|
|
articleIdGroup = articleIdInd
|
|
|
}
|
|
|
slice := strings.Split(keyWord, "/")
|
|
@@ -1955,7 +1955,7 @@ func (this *ReportController) IndustryListByDepartmentPc() {
|
|
|
var subjectIds string
|
|
|
for _, v := range slice {
|
|
|
subjectId, err := models.GetcygxIndustrialSubjectByName(v)
|
|
|
- if err != nil {
|
|
|
+ if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "获取信息失败"
|
|
|
br.ErrMsg = "获取客户信息失败,Err:" + err.Error()
|
|
|
return
|
|
@@ -1965,18 +1965,20 @@ func (this *ReportController) IndustryListByDepartmentPc() {
|
|
|
}
|
|
|
}
|
|
|
subjectIds = strings.TrimRight(subjectIds, ",")
|
|
|
- articleBySub, err := models.GetArticleIdsBySubId(subjectIds)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "获取文章关联的标的失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
- if articleIdGroup != "" {
|
|
|
- if articleBySub != "" {
|
|
|
- articleIdGroup += "," + articleBySub
|
|
|
+ if len(subjectIds) > 0 {
|
|
|
+ articleBySub, err := models.GetArticleIdsBySubId(subjectIds)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取文章关联的标的失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if articleIdGroup != "" {
|
|
|
+ if articleBySub != "" {
|
|
|
+ articleIdGroup += "," + articleBySub
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ articleIdGroup = articleBySub
|
|
|
}
|
|
|
- } else {
|
|
|
- articleIdGroup = articleBySub
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2020,10 +2022,11 @@ func (this *ReportController) IndustryListByDepartmentPc() {
|
|
|
}
|
|
|
for k2, v2 := range artList {
|
|
|
if artList[k2].IsReport == "1" {
|
|
|
- artList[k2].Title = "【研选观点】" + v2.Title
|
|
|
+ artList[k2].Title = v2.Title
|
|
|
} else {
|
|
|
- artList[k2].Title = "【研选纪要】" + v2.Title
|
|
|
+ artList[k2].Title = v2.Title
|
|
|
}
|
|
|
+ artList[k2].IndustryName = strings.Replace(artList[k2].IndustryName, " ", "", -1)
|
|
|
}
|
|
|
list[k].List = artList
|
|
|
if v.FollowNum > 0 {
|
|
@@ -2143,10 +2146,11 @@ func (this *ReportController) IndustryAndArticleListPc() {
|
|
|
}
|
|
|
for k2, v2 := range artList {
|
|
|
if artList[k2].IsReport == "1" {
|
|
|
- artList[k2].Title = "【研选观点】" + v2.Title
|
|
|
+ artList[k2].Title = v2.Title
|
|
|
} else {
|
|
|
- artList[k2].Title = "【研选纪要】" + v2.Title
|
|
|
+ artList[k2].Title = v2.Title
|
|
|
}
|
|
|
+ artList[k2].IndustryName = strings.Replace(artList[k2].IndustryName, " ", "", -1)
|
|
|
}
|
|
|
DepartmentList[k].List = artList
|
|
|
if v.FollowNum > 0 {
|