|
@@ -56,7 +56,7 @@ func (this *UserController) TemplateList() {
|
|
|
sortParamInt, _ := this.GetInt("SortParam", 0)
|
|
|
sortTypeInt, _ := this.GetInt("SortType", 0)
|
|
|
|
|
|
- var sortStr = ``
|
|
|
+ var sortCondtion string
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
|
|
@@ -74,7 +74,7 @@ func (this *UserController) TemplateList() {
|
|
|
br.ErrMsg = fmt.Sprint("错误的排序字段:", sortTypeInt)
|
|
|
return
|
|
|
}
|
|
|
- sortStr = fmt.Sprintf("%s %s,updated_time desc ", sortParam, sortType)
|
|
|
+ sortCondtion = fmt.Sprintf("%s %s,updated_time desc ", sortParam, sortType)
|
|
|
|
|
|
if keyword != "" {
|
|
|
condition += ` AND mobile LIKE ? `
|
|
@@ -82,7 +82,7 @@ func (this *UserController) TemplateList() {
|
|
|
}
|
|
|
|
|
|
resp := new(response.TemplateUserListResp)
|
|
|
- total, userList, err := models.GetPageTemplateUserList(condition, pars, sortStr, startSize, pageSize)
|
|
|
+ total, userList, err := models.GetPageTemplateUserList(condition, pars, sortCondtion, startSize, pageSize)
|
|
|
if err != nil {
|
|
|
br.Msg = "查询用户失败"
|
|
|
br.Msg = "查询用户失败,系统错误,Err:" + err.Error()
|
|
@@ -147,7 +147,7 @@ func (this *UserController) OfficialList() {
|
|
|
sortParamInt, _ := this.GetInt("SortParam", 0)
|
|
|
sortTypeInt, _ := this.GetInt("SortType", 0)
|
|
|
|
|
|
- var sortStr = ``
|
|
|
+ var sortCondtion string
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
|
|
@@ -165,7 +165,7 @@ func (this *UserController) OfficialList() {
|
|
|
br.ErrMsg = fmt.Sprintf("错误的排序字段:%v", sortTypeInt)
|
|
|
return
|
|
|
}
|
|
|
- sortStr = fmt.Sprintf("%s %s,updated_time desc ", sortParam, sortType)
|
|
|
+ sortCondtion = fmt.Sprintf("%s %s,updated_time desc ", sortParam, sortType)
|
|
|
if FollowingGzh != "" {
|
|
|
switch FollowingGzh {
|
|
|
case "true":
|
|
@@ -223,7 +223,7 @@ func (this *UserController) OfficialList() {
|
|
|
}
|
|
|
|
|
|
resp := new(response.UserListResp)
|
|
|
- total, userList, err := models.GetPageOfficialUserList(condition, pars, sortStr, startSize, pageSize)
|
|
|
+ total, userList, err := models.GetPageOfficialUserList(condition, pars, sortCondtion, startSize, pageSize)
|
|
|
if err != nil {
|
|
|
br.Msg = "查询用户失败"
|
|
|
br.Msg = "查询用户失败,系统错误,Err:" + err.Error()
|