|
@@ -242,10 +242,10 @@ func GetIndustryNewLabelMap(industryIds []int) (labelMap map[int]bool, err error
|
|
|
// 判断产业是否为新
|
|
|
nowTime := time.Now().Local()
|
|
|
threeMonthBefore := nowTime.AddDate(0, -3, 0)
|
|
|
- nullTime, _ := time.Parse(utils.FormatDateTime, "0001-01-01 00:00:00")
|
|
|
+ nullTime, _ := time.ParseInLocation(utils.FormatDateTime, "0001-01-01 00:00:00", time.Local)
|
|
|
for i := range industryTimeList {
|
|
|
// 最早发布时间为空 / 最早发布时间在三个月前之后
|
|
|
- if industryTimeList[i].MinPublishTime == nullTime || (industryTimeList[i].MinPublishTime.After(threeMonthBefore)) {
|
|
|
+ if industryTimeList[i].MinPublishTime.Equal(nullTime) || (industryTimeList[i].MinPublishTime.After(threeMonthBefore)) {
|
|
|
labelMap[industryTimeList[i].IndustrialManagementId] = true
|
|
|
}
|
|
|
}
|