hsun 1 ano atrás
pai
commit
67eeb8648d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      models/jiayue/dict.go

+ 1 - 1
models/jiayue/dict.go

@@ -42,7 +42,7 @@ func GetDictPageIndex(condition string, pars []interface{}, pageIndex, pageSize,
 
 	// 排序
 	order := ``
-	sortFMap := map[int]string{1: "DateFirst", 2: "DateLast", 3: "TimeLastUpdate"}
+	sortFMap := map[int]string{1: "DATE_FIRST", 2: "DATE_LAST", 3: "TIME_LAST_UPDATE"}
 	sortRMap := map[int]string{1: "ASC", 2: "DESC"}
 	if sortFMap[sortField] != "" && sortRMap[sortRule] != "" {
 		order = fmt.Sprintf("ORDER BY %s %s", sortFMap[sortField], sortRMap[sortRule])