This commit is contained in:
苏尹岚
2021-03-15 17:49:04 +08:00
parent 4f26f319ce
commit 8a17e0584b

View File

@@ -1214,7 +1214,7 @@ func GetStoreManageState(db *DaoDB, storeIDs []int, vendorID, sortType, offset,
tempSortType = sortType tempSortType = sortType
} }
if GetStoreManageStateSortTypeMap[tempSortType] != "" { if GetStoreManageStateSortTypeMap[tempSortType] != "" {
sql += " ORDER BY " + GetStoreManageStateSortTypeMap[sortType] sql += " ORDER BY " + GetStoreManageStateSortTypeMap[tempSortType]
if sortType < 0 { if sortType < 0 {
sql += " DESC" sql += " DESC"
} }