|
@@ -794,7 +794,7 @@ func SearchList(operator Operator) (int64, *[]map[string]interface{}, int64) {
|
|
queryStr := ""
|
|
queryStr := ""
|
|
orderStr := ""
|
|
orderStr := ""
|
|
mysqlOrderStr := ""
|
|
mysqlOrderStr := ""
|
|
- if operator.Tag == 1 {
|
|
|
|
|
|
+ if operator.Tag == 0 {
|
|
if operator.Order == 0 {
|
|
if operator.Order == 0 {
|
|
orderStr = `{"publishtime":{"order":"desc"}}`
|
|
orderStr = `{"publishtime":{"order":"desc"}}`
|
|
mysqlOrderStr = ` order by publishtime desc`
|
|
mysqlOrderStr = ` order by publishtime desc`
|
|
@@ -802,7 +802,7 @@ func SearchList(operator Operator) (int64, *[]map[string]interface{}, int64) {
|
|
orderStr = `{"publishtime":{"order":"asc"}}`
|
|
orderStr = `{"publishtime":{"order":"asc"}}`
|
|
mysqlOrderStr = ` order by publishtime asc`
|
|
mysqlOrderStr = ` order by publishtime asc`
|
|
}
|
|
}
|
|
- } else if operator.Tag == 2 {
|
|
|
|
|
|
+ } else if operator.Tag == 1 {
|
|
if operator.Order == 0 {
|
|
if operator.Order == 0 {
|
|
orderStr = `{"publishtime":{"order":"desc"}}`
|
|
orderStr = `{"publishtime":{"order":"desc"}}`
|
|
mysqlOrderStr = ` order by publishtime desc`
|
|
mysqlOrderStr = ` order by publishtime desc`
|
|
@@ -810,7 +810,7 @@ func SearchList(operator Operator) (int64, *[]map[string]interface{}, int64) {
|
|
orderStr = `{"expurasingtime":{"order":"asc"}}`
|
|
orderStr = `{"expurasingtime":{"order":"asc"}}`
|
|
mysqlOrderStr = ` order by expurasingtime asc`
|
|
mysqlOrderStr = ` order by expurasingtime asc`
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
|
|
+ } else if operator.Tag == 2 {
|
|
if operator.Order == 0 {
|
|
if operator.Order == 0 {
|
|
orderStr = `{"publishtime":{"order":"desc"}}`
|
|
orderStr = `{"publishtime":{"order":"desc"}}`
|
|
mysqlOrderStr = ` order by publishtime desc`
|
|
mysqlOrderStr = ` order by publishtime desc`
|