|
@@ -29,11 +29,11 @@ func (this *ResearchController) NewList() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
- if chartPermissionId < 1 {
|
|
|
- br.Msg = "请输入分类ID"
|
|
|
- return
|
|
|
- }
|
|
|
+ //chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
+ //if chartPermissionId < 1 {
|
|
|
+ // br.Msg = "请输入分类ID"
|
|
|
+ // return
|
|
|
+ //}
|
|
|
list, err := models.GetIndustrialManagementNewList()
|
|
|
if err != nil {
|
|
|
br.Msg = "获取信息失败"
|
|
@@ -82,11 +82,11 @@ func (this *ResearchController) CollectionList() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
- if chartPermissionId < 1 {
|
|
|
- br.Msg = "请输入分类ID"
|
|
|
- return
|
|
|
- }
|
|
|
+ //chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
+ //if chartPermissionId < 1 {
|
|
|
+ // br.Msg = "请输入分类ID"
|
|
|
+ // return
|
|
|
+ //}
|
|
|
var condition string
|
|
|
condition = ` AND a.article_type_id > 0 AND publish_status = 1 GROUP BY a.article_id ORDER BY collect_num_order DESC, publish_date DESC LIMIT 15 `
|
|
|
list, err := models.GetArticleCollectionList(condition, user.UserId)
|
|
@@ -128,12 +128,12 @@ func (this *ResearchController) HotList() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
+ //chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
+ //if chartPermissionId < 1 {
|
|
|
+ // br.Msg = "请输入分类ID"
|
|
|
+ // return
|
|
|
+ //}
|
|
|
themeType, _ := this.GetInt("ThemeType")
|
|
|
- if chartPermissionId < 1 {
|
|
|
- br.Msg = "请输入分类ID"
|
|
|
- return
|
|
|
- }
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
var startSize int
|
|
@@ -235,11 +235,11 @@ func (this *ResearchController) KolList() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
- chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
- if chartPermissionId < 1 {
|
|
|
- br.Msg = "请输入分类ID"
|
|
|
- return
|
|
|
- }
|
|
|
+ //chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
+ //if chartPermissionId < 1 {
|
|
|
+ // br.Msg = "请输入分类ID"
|
|
|
+ // return
|
|
|
+ //}
|
|
|
|
|
|
list, err := models.GetDepartmentList(user.UserId)
|
|
|
if err != nil {
|
|
@@ -374,7 +374,6 @@ func (this *ResearchController) ThemeDetail() {
|
|
|
for _, v := range itemsNull {
|
|
|
resp.List = append(resp.List, v)
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|