|
@@ -58,17 +58,17 @@ func (this *TradeCommonController) HisugarIndexList() {
|
|
this.Data["json"] = br
|
|
this.Data["json"] = br
|
|
this.ServeJSON()
|
|
this.ServeJSON()
|
|
}()
|
|
}()
|
|
- pageSize, _ := this.GetInt("PageSize")
|
|
|
|
- currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
|
- var startSize int
|
|
|
|
-
|
|
|
|
- if pageSize <= 0 {
|
|
|
|
- pageSize = utils.PageSize20
|
|
|
|
- }
|
|
|
|
- if currentIndex <= 0 {
|
|
|
|
- currentIndex = 1
|
|
|
|
- }
|
|
|
|
- startSize = utils.StartIndex(currentIndex, pageSize)
|
|
|
|
|
|
+ //pageSize, _ := this.GetInt("PageSize")
|
|
|
|
+ //currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
|
+ //var startSize int
|
|
|
|
+ //
|
|
|
|
+ //if pageSize <= 0 {
|
|
|
|
+ // pageSize = utils.PageSize20
|
|
|
|
+ //}
|
|
|
|
+ //if currentIndex <= 0 {
|
|
|
|
+ // currentIndex = 1
|
|
|
|
+ //}
|
|
|
|
+ //startSize = utils.StartIndex(currentIndex, pageSize)
|
|
|
|
|
|
classifyId, _ := this.GetInt("ClassifyId")
|
|
classifyId, _ := this.GetInt("ClassifyId")
|
|
|
|
|
|
@@ -87,7 +87,7 @@ func (this *TradeCommonController) HisugarIndexList() {
|
|
// pars = append(pars, "%"+keyword+"%")
|
|
// pars = append(pars, "%"+keyword+"%")
|
|
//}
|
|
//}
|
|
|
|
|
|
- indexList, e := data_manage.GetHisugarIndexViewList(condition, pars, startSize, pageSize)
|
|
|
|
|
|
+ indexList, e := data_manage.GetHisugarIndexViewList(condition, pars)
|
|
if e != nil {
|
|
if e != nil {
|
|
br.Msg = "获取失败"
|
|
br.Msg = "获取失败"
|
|
br.ErrMsg = "获取泛糖科技分类数据分类失败, Err: " + e.Error()
|
|
br.ErrMsg = "获取泛糖科技分类数据分类失败, Err: " + e.Error()
|