|
@@ -249,7 +249,16 @@ func (this *MobileResearchController) KolList() {
|
|
|
currentIndex = 1
|
|
|
}
|
|
|
startSize = utils.StartIndex(currentIndex, pageSize)
|
|
|
-
|
|
|
+ resp := new(models.DepartmentListResp)
|
|
|
+ if user.CompanyId == utils.GAO_YI_ZI_CHAN_COMPANY_ID {
|
|
|
+ resp.List = make([]*models.DepartmentResp, 0)
|
|
|
+ resp.Paging = paging.GetPaging(currentIndex, pageSize, 0)
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "获取成功"
|
|
|
+ br.Data = resp
|
|
|
+ return
|
|
|
+ }
|
|
|
total, err := models.GetDepartmentlistCount("")
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
@@ -306,7 +315,7 @@ func (this *MobileResearchController) KolList() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- resp := new(models.DepartmentListResp)
|
|
|
+
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
resp.Paging = page
|
|
|
resp.List = list
|
|
@@ -348,6 +357,16 @@ func (this *MobileResearchController) HotList() {
|
|
|
startSize = utils.StartIndex(currentIndex, pageSize)
|
|
|
var condition string
|
|
|
var conditionOrder string
|
|
|
+ resp := new(models.IndustrialManagementHotListResp)
|
|
|
+ if user.CompanyId == utils.GAO_YI_ZI_CHAN_COMPANY_ID {
|
|
|
+ resp.List = make([]*models.IndustrialManagementHotResp, 0)
|
|
|
+ resp.Paging = paging.GetPaging(currentIndex, pageSize, 0)
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "获取成功"
|
|
|
+ br.Data = resp
|
|
|
+ return
|
|
|
+ }
|
|
|
articleTypeIds, err := services.GetYanXuanArticleTypeIds()
|
|
|
if err != nil {
|
|
|
br.Msg = "获取信息失败"
|
|
@@ -413,7 +432,7 @@ func (this *MobileResearchController) HotList() {
|
|
|
}
|
|
|
}
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
- resp := new(models.IndustrialManagementHotListResp)
|
|
|
+
|
|
|
resp.Paging = page
|
|
|
resp.List = list
|
|
|
br.Ret = 200
|
|
@@ -819,6 +838,16 @@ func (this *MobileResearchController) Billboard() {
|
|
|
pageSize, _ := this.GetInt("PageSize", 15)
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
+ resp := new(models.ArticleResearchListResp)
|
|
|
+ if user.CompanyId == utils.GAO_YI_ZI_CHAN_COMPANY_ID {
|
|
|
+ resp.List = make([]*models.ArticleResearchResp, 0)
|
|
|
+ resp.Paging = paging.GetPaging(1, pageSize, 0)
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "获取成功"
|
|
|
+ br.Data = resp
|
|
|
+ return
|
|
|
+ }
|
|
|
articleTypeIds, err := services.GetYanXuanArticleTypeIds()
|
|
|
if err != nil {
|
|
|
br.Msg = "获取信息失败"
|
|
@@ -859,7 +888,6 @@ func (this *MobileResearchController) Billboard() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- resp := new(models.ArticleResearchListResp)
|
|
|
for _, v := range list {
|
|
|
item := models.ArticleResearchResp{
|
|
|
ArticleId: v.ArticleId,
|