|
@@ -787,7 +787,8 @@ func MultiEnglishPolicyReportSync() (err error, errMsg string) {
|
|
|
//查询发布时间是当天的所有未同步的报告,并更新到英文研报
|
|
|
condition := ""
|
|
|
var pars []interface{}
|
|
|
- startDate := time.Now().Format(utils.FormatDate)
|
|
|
+ //startDate := time.Now().Format(utils.FormatDate)
|
|
|
+ startDate := time.Now().AddDate(0, -1, 0).Format(utils.FormatDate)
|
|
|
condition += ` AND publish_time >= ? AND state = 1 AND (content !="" AND content is not null)`
|
|
|
pars = append(pars, startDate)
|
|
|
policyReports, err := models.GetEnglishPolicyReportByCondition(condition, pars)
|
|
@@ -799,8 +800,8 @@ func MultiEnglishPolicyReportSync() (err error, errMsg string) {
|
|
|
return
|
|
|
}
|
|
|
//新增英文研报
|
|
|
- classifyNameFirst := "Macro"
|
|
|
- classifySecondName := "China A-share Daily Check-in"
|
|
|
+ classifyNameFirst := "Equity"
|
|
|
+ classifySecondName := "A-share Daily"
|
|
|
|
|
|
// 根据分类名称查询分类ID
|
|
|
classifyInfo, err := models.GetEnglishClassifyByClassifyNameAndParentName(classifyNameFirst, classifySecondName)
|