|
@@ -58,7 +58,7 @@ func (this *ReportController) TradeList() {
|
|
|
br.Msg = "获取帖子总数失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if count == 0 {
|
|
|
+ if count == 0 && user.CreatedTime.Before(utils.StrTimeToTime(v.UpdateTime)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(v.UpdateTime)) {
|
|
|
list[k].IsRed = true
|
|
|
}
|
|
|
}
|
|
@@ -73,7 +73,7 @@ func (this *ReportController) TradeList() {
|
|
|
// @Title 产业报告分类列表接口
|
|
|
// @Description 获取产业报告分类列表接口
|
|
|
// @Param ChartPermissionId query int true "分类ID"
|
|
|
-// @Param OrderColumn query int true "排序字段 ,NewTime最近更新 ,Recommend弘则推荐"
|
|
|
+// @Param OrderColumn query int true "排序字段 ,NewTime 最近更新 ,Recommend弘则推荐"
|
|
|
// @Param PageSize query int true "每页数据条数"
|
|
|
// @Param CurrentIndex query int true "当前页页码,从1开始"
|
|
|
// @Success 200 {object} models.IndustrialManagementList
|
|
@@ -210,7 +210,8 @@ func (this *ReportController) IndustryList() {
|
|
|
br.ErrMsg = "获取信息失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(newArtinfo.ArticleId)
|
|
|
return
|
|
|
}
|
|
|
- if recordCount == 0 {
|
|
|
+ //
|
|
|
+ if recordCount == 0 && user.CreatedTime.Before(utils.StrTimeToTime(newArtinfo.PublishDate)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(newArtinfo.PublishDate)) {
|
|
|
list[k].IsRed = true
|
|
|
}
|
|
|
}
|
|
@@ -259,7 +260,13 @@ func (this *ReportController) ArticleCategoryList() {
|
|
|
br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if recordCount == 0 {
|
|
|
+ Newdetail, err := models.GetNewIndustrialUserRecordArticle(industrialManagementId, v.CategoryId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
+ br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if recordCount == 0 && user.CreatedTime.Before(utils.StrTimeToTime(Newdetail.PublishDate)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(Newdetail.PublishDate)) {
|
|
|
list[k].IsRed = true
|
|
|
}
|
|
|
}
|
|
@@ -350,7 +357,7 @@ func (this *ReportController) List() {
|
|
|
}
|
|
|
|
|
|
for k, v := range list {
|
|
|
- if v.Readnum == 0 {
|
|
|
+ if v.Readnum == 0 && user.CreatedTime.Before(utils.StrTimeToTime(v.PublishDate)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(v.PublishDate)) {
|
|
|
list[k].IsRed = true
|
|
|
}
|
|
|
}
|