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