Bläddra i källkod

Merge branch 'dev_v1.1.63_wh' of BaseService/jyMicroservices into feature/v1.1.63

王浩 7 månader sedan
förälder
incheckning
7ce1a2b684
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      jyBXCore/rpc/service/operator.go

+ 3 - 3
jyBXCore/rpc/service/operator.go

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