|
@@ -392,7 +392,7 @@ func (this *ReportController) ArticleCategoryList() {
|
|
|
//查询用户今天是否看过时间线
|
|
|
haveMorningMeeting := false
|
|
|
var morningMeetingTime string
|
|
|
- count, err := models.GetTimeLineRecordCount(user.UserId, industrialManagementId, time.Now().Format(utils.FormatDate))
|
|
|
+ count, err := models.GetTimeLineRecordCount(user.UserId, industrialManagementId)
|
|
|
if err != nil {
|
|
|
br.Msg = "查询浏览记录数量失败"
|
|
|
br.ErrMsg = "查询浏览记录数量失败,Err:" + err.Error()
|
|
@@ -666,7 +666,7 @@ func (this *ReportController) List() {
|
|
|
//}
|
|
|
|
|
|
//查询用户今天是否看过时间线
|
|
|
- count, err := models.GetTimeLineRecordCount(user.UserId, industrialManagementId, time.Now().Format(utils.FormatDate))
|
|
|
+ count, err := models.GetTimeLineRecordCount(user.UserId, industrialManagementId)
|
|
|
if err != nil {
|
|
|
br.Msg = "查询浏览记录数量失败"
|
|
|
br.ErrMsg = "查询浏览记录数量失败,Err:" + err.Error()
|
|
@@ -687,7 +687,7 @@ func (this *ReportController) List() {
|
|
|
list[k].IsRed = true
|
|
|
}
|
|
|
timeLineRed := false
|
|
|
- if count < 2 && v.SubCategoryName == "时间线" && recordItem.CreateTime.Before(utils.StrTimeToTime(v.PublishTime)){
|
|
|
+ if count < 2 && v.SubCategoryName == "时间线" {
|
|
|
timeLineRed = true
|
|
|
} else if count > 1 && recordItem.CreateTime.Before(utils.StrTimeToTime(v.PublishTime)){
|
|
|
timeLineRed = true
|