|
@@ -162,7 +162,9 @@ func (this *ReportSelectionController) Detail() {
|
|
|
v2.CompanyLabel = append(v2.CompanyLabel, vCompanyLabel+"#")
|
|
|
}
|
|
|
}
|
|
|
- if v2.SubjectName == "" {
|
|
|
+ if v2.ThirdName != "" {
|
|
|
+ v2.ShowName = v2.ThirdName
|
|
|
+ } else if v2.SubjectName == "" {
|
|
|
v2.ShowName = v2.IndustrialManagementNames
|
|
|
} else {
|
|
|
v2.ShowName = v2.SubjectName
|
|
@@ -177,7 +179,7 @@ func (this *ReportSelectionController) Detail() {
|
|
|
if subjectItem.SubjectName == "" {
|
|
|
subjectItem.SubjectName = subjectItem.IndustrialManagementName
|
|
|
}
|
|
|
- subjectItem.Md5String = utils.MD5(fmt.Sprint("IN_ID", v2.IndustrialManagementId, "S_ID", v2.IndustrialSubjectId))
|
|
|
+ subjectItem.Md5String = utils.MD5(fmt.Sprint("IN_ID", v2.IndustrialManagementId, "S_ID", v2.IndustrialSubjectId, "T_ID", v2.ThirdId))
|
|
|
v2.Md5String = subjectItem.Md5String
|
|
|
|
|
|
itemSubject.ListSubject = append(itemSubject.ListSubject, subjectItem)
|
|
@@ -251,7 +253,7 @@ func (this *ReportSelectionController) ClickHistory() {
|
|
|
br.ErrMsg = "文章不存在,文章ID错误"
|
|
|
return
|
|
|
}
|
|
|
- if req.IndustrialSubjectId+req.IndustrialManagementId <= 0 {
|
|
|
+ if req.IndustrialSubjectId+req.IndustrialManagementId+req.ThirdId <= 0 {
|
|
|
br.Msg = "标的ID不存在"
|
|
|
br.ErrMsg = "产业或标的ID不存在"
|
|
|
return
|
|
@@ -267,6 +269,7 @@ func (this *ReportSelectionController) ClickHistory() {
|
|
|
CompanyName: user.CompanyName,
|
|
|
IndustrialSubjectId: req.IndustrialSubjectId,
|
|
|
IndustrialManagementId: req.IndustrialManagementId,
|
|
|
+ ThirdId: req.ThirdId,
|
|
|
RegisterPlatform: utils.REGISTER_PLATFORM,
|
|
|
}
|
|
|
err = models.AddCygxReportSelectionSubjectHistory(&item)
|