|
@@ -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])
|