|
@@ -5,6 +5,7 @@ import (
|
|
|
"errors"
|
|
|
"fmt"
|
|
|
"hongze/hongze_task/models"
|
|
|
+ "hongze/hongze_task/models/cygx"
|
|
|
"hongze/hongze_task/models/roadshow"
|
|
|
"hongze/hongze_task/utils"
|
|
|
"strconv"
|
|
@@ -31,6 +32,15 @@ func AddReportRecord(cont context.Context) (err error) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ listEmail, err := cygx.GetAskEmail() //权益研究员姓名
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ mapResearcherNameRai := make(map[string]bool)
|
|
|
+ for _, v := range listEmail {
|
|
|
+ mapResearcherNameRai[v.Name] = true
|
|
|
+ }
|
|
|
+
|
|
|
companyList, err := roadshow.RsCompanyList()
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -157,6 +167,9 @@ func AddReportRecord(cont context.Context) (err error) {
|
|
|
|
|
|
mapRsReportRecordPermission := make(map[string]bool) // 一个公司的一场路演,添加了多个研究员只记录一次
|
|
|
for _, v := range list {
|
|
|
+ if mapResearcherNameRai[v.ResearcherName] && v.CompanyName == "" {
|
|
|
+ continue // 如果权益研究员的而且公司名称为空,就不做记录
|
|
|
+ }
|
|
|
company := new(roadshow.CompanySearchView)
|
|
|
if v.CompanyId > 0 {
|
|
|
if mapRaiSllerId[v.SysUserId] {
|