|
@@ -195,7 +195,7 @@ func (repository *TaskRepository) Find(queryOptions map[string]interface{}) (int |
|
@@ -195,7 +195,7 @@ func (repository *TaskRepository) Find(queryOptions map[string]interface{}) (int |
195
|
} else if sortByReleaseTime, ok := queryOptions["sortByReleaseTime"]; ok && (sortByReleaseTime == "ASC" || sortByReleaseTime == "DESC") {
|
195
|
} else if sortByReleaseTime, ok := queryOptions["sortByReleaseTime"]; ok && (sortByReleaseTime == "ASC" || sortByReleaseTime == "DESC") {
|
196
|
query = query.Order(fmt.Sprintf("task.release_time %s", sortByReleaseTime.(string)))
|
196
|
query = query.Order(fmt.Sprintf("task.release_time %s", sortByReleaseTime.(string)))
|
197
|
} else if sortByReceiveTime, ok := queryOptions["sortByReceiveTime"]; ok && (sortByReceiveTime == "ASC" || sortByReceiveTime == "DESC") {
|
197
|
} else if sortByReceiveTime, ok := queryOptions["sortByReceiveTime"]; ok && (sortByReceiveTime == "ASC" || sortByReceiveTime == "DESC") {
|
198
|
- query = query.Order(fmt.Sprintf("task.release_time %s", sortByReleaseTime.(string)))
|
198
|
+ query = query.Order(fmt.Sprintf("task.receive_time %s", sortByReceiveTime.(string)))
|
199
|
} else if sortByCompleteTime, ok := queryOptions["sortByCompleteTime"]; ok && (sortByCompleteTime == "ASC" || sortByCompleteTime == "DESC") {
|
199
|
} else if sortByCompleteTime, ok := queryOptions["sortByCompleteTime"]; ok && (sortByCompleteTime == "ASC" || sortByCompleteTime == "DESC") {
|
200
|
query = query.Order(fmt.Sprintf("task.complete_time %s", sortByCompleteTime.(string)))
|
200
|
query = query.Order(fmt.Sprintf("task.complete_time %s", sortByCompleteTime.(string)))
|
201
|
} else if sortByAcceptanceTime, ok := queryOptions["sortByAcceptanceTime"]; ok && (sortByAcceptanceTime == "ASC" || sortByAcceptanceTime == "DESC") {
|
201
|
} else if sortByAcceptanceTime, ok := queryOptions["sortByAcceptanceTime"]; ok && (sortByAcceptanceTime == "ASC" || sortByAcceptanceTime == "DESC") {
|