|
@@ -349,6 +349,7 @@ func (this *AudioController) AudioList() {
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
sortType := this.GetString("SortType")
|
|
|
+ KeyWord := this.GetString("KeyWord")
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
|
|
@@ -358,7 +359,9 @@ func (this *AudioController) AudioList() {
|
|
|
if currentIndex <= 0 {
|
|
|
currentIndex = 1
|
|
|
}
|
|
|
-
|
|
|
+ if KeyWord != "" {
|
|
|
+ condition += " AND author_name like '%" + KeyWord + "%'"
|
|
|
+ }
|
|
|
sortCondition := " ORDER BY published_time "
|
|
|
if sortType == "" {
|
|
|
sortType = "DESC"
|