|
@@ -92,7 +92,7 @@ type EnPolicyReportDataListItemAuthor struct {
|
|
|
}
|
|
|
|
|
|
|
|
|
-func PullEnglishPolicyReportSingle(sourceId int) (ret tables.PullEnglishPolicyDataResp, err error, msg string) {
|
|
|
+func PullEnglishPolicyReportSingle(sourceId int) (ret tables.PullEnglishPolicyDataResp, err error, msg string) {
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
go alarm_msg.SendAlarmMsg("拉取单个英文策略报告失败,Err:"+err.Error()+";msg:"+msg, 3)
|
|
@@ -104,11 +104,11 @@ func PullEnglishPolicyReportSingle(sourceId int) (ret tables.PullEnglishPolicyDa
|
|
|
if err != nil {
|
|
|
if err.Error() == utils.ErrNoRow() {
|
|
|
err = nil
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
msg = "查询已存在的英文策略报告列表接口失败"
|
|
|
return
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
|
|
|
return
|
|
|
}
|
|
@@ -118,7 +118,7 @@ func PullEnglishPolicyReportSingle(sourceId int) (ret tables.PullEnglishPolicyDa
|
|
|
err = e
|
|
|
return
|
|
|
}
|
|
|
- if originDetail.IndustryId != 1 || originDetail.FieldId != 1 || originDetail.TypeId !=9 {
|
|
|
+ if originDetail.IndustryId != 1 || originDetail.FieldId != 1 || originDetail.TypeId != 9 {
|
|
|
|
|
|
return
|
|
|
}
|
|
@@ -194,8 +194,8 @@ func EnglishPolicyReportSync(id int) (err error, errMsg string) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- classifyNameFirst := "Macro"
|
|
|
- classifySecondName := "China A-share Daily Check-in"
|
|
|
+ classifyNameFirst := "Equity"
|
|
|
+ classifySecondName := "A-share Daily"
|
|
|
|
|
|
|
|
|
classifyInfo, err := tables.GetEnglishClassifyByClassifyNameAndParentName(classifyNameFirst, classifySecondName)
|
|
@@ -312,4 +312,4 @@ func TestDebugEnglishPolicyReport(id int) (err error) {
|
|
|
return
|
|
|
}
|
|
|
return
|
|
|
-}
|
|
|
+}
|