|
@@ -270,9 +270,6 @@ func InitETAReportList(list []eta.ETAReport) (err error) {
|
|
|
logger.Info("同步研报数量%d", len(list))
|
|
|
var reports []reportDao.Report
|
|
|
for _, etaRp := range list {
|
|
|
- //authorNames := strings.Split(etaRp.Author, ",")
|
|
|
- //authorNamesWithOutEmpty := stringUtils.RemoveEmptyStrings(authorNames)
|
|
|
- //for _, authorName := range authorNamesWithOutEmpty {
|
|
|
var coverSrc int
|
|
|
var permissions []etaDao.ChartPermission
|
|
|
permissions, err = etaDao.GetSecondPermissionsByClassifyID(etaRp.ClassifyID)
|
|
@@ -368,9 +365,6 @@ func SyncETAReportList(list []eta.ETAReport) (err error) {
|
|
|
// coverSrc = ids[randomIndex]
|
|
|
//}
|
|
|
}
|
|
|
- //authorNames := strings.Split(etaRp.Author, ",")
|
|
|
- //authorNamesWithOutEmpty := stringUtils.RemoveEmptyStrings(authorNames)
|
|
|
- //for _, authorName := range authorNamesWithOutEmpty {
|
|
|
status := etaStatus(etaRp.State)
|
|
|
destRp := convertEtaReport(etaRp, status)
|
|
|
destRp.CoverSrc = coverSrc
|