|
@@ -214,7 +214,7 @@ func (this *YanxuanSpecialController) AuthorList() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if sortParam == "articleNum" {
|
|
|
|
|
|
+ if sortParam == "ArticleNum" {
|
|
if sortType == "asc" {
|
|
if sortType == "asc" {
|
|
sortStr = " ORDER BY art.article_num ASC "
|
|
sortStr = " ORDER BY art.article_num ASC "
|
|
} else {
|
|
} else {
|
|
@@ -222,7 +222,7 @@ func (this *YanxuanSpecialController) AuthorList() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if sortParam == "Pv" {
|
|
|
|
|
|
+ if sortParam == "pv" {
|
|
if sortType == "asc" {
|
|
if sortType == "asc" {
|
|
sortStr = " ORDER BY art.pv ASC "
|
|
sortStr = " ORDER BY art.pv ASC "
|
|
} else {
|
|
} else {
|
|
@@ -287,7 +287,7 @@ func (this *YanxuanSpecialController) List() {
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
status, _ := this.GetInt("Status", 1)
|
|
status, _ := this.GetInt("Status", 1)
|
|
- specialType, _ := this.GetInt("Type", 1)
|
|
|
|
|
|
+ specialType, _ := this.GetInt("Type")
|
|
keyWord := this.GetString("KeyWord")
|
|
keyWord := this.GetString("KeyWord")
|
|
//排序参数
|
|
//排序参数
|
|
sortParam := this.GetString("SortParam")
|
|
sortParam := this.GetString("SortParam")
|
|
@@ -340,7 +340,7 @@ func (this *YanxuanSpecialController) List() {
|
|
//排序字段以及排序方式处理
|
|
//排序字段以及排序方式处理
|
|
var sortStr string
|
|
var sortStr string
|
|
if sortParam != "" && sortType != "" {
|
|
if sortParam != "" && sortType != "" {
|
|
- if sortParam == "Pv" {
|
|
|
|
|
|
+ if sortParam == "pv" {
|
|
if sortType == "asc" {
|
|
if sortType == "asc" {
|
|
sortStr = " ORDER BY a.pv ASC "
|
|
sortStr = " ORDER BY a.pv ASC "
|
|
} else {
|
|
} else {
|
|
@@ -649,7 +649,7 @@ func (this *YanxuanSpecialController) ApprovalLogList() {
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
br.ErrMsg = "获取失败,Err:" + err.Error()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ condition += ` ORDER BY create_time DESC `
|
|
list, tmpErr := cygx.GetCygxYanxuanSpecialApprovalLogList(condition, pars, startSize, pageSize)
|
|
list, tmpErr := cygx.GetCygxYanxuanSpecialApprovalLogList(condition, pars, startSize, pageSize)
|
|
if tmpErr != nil {
|
|
if tmpErr != nil {
|
|
br.Msg = "获取失败"
|
|
br.Msg = "获取失败"
|