Changeset 529 for trunk/grails-app/services/TaskSearchService.groovy
- Timestamp:
- May 10, 2010, 8:30:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskSearchService.groovy
r524 r529 251 251 * @param endDate The end date to get tasks for, defaults to the start of tomorrow and is exclusive (less than). 252 252 */ 253 def getBudgetTasks(params, budgetStatus=null, startDate=null, endDate=null) {253 def getBudgetTasks(params, taskBudgetStatus=null, startDate=null, endDate=null) { 254 254 def paginateParams = [:] 255 255 paginateParams.max = Math.min(params?.max?.toInteger() ?: 10, paramsMax) … … 261 261 262 262 def namedParams = [:] 263 namedParams. budgetStatus = budgetStatus ?: TaskBudgetStatus.read(2) // Planned.263 namedParams.taskBudgetStatus = taskBudgetStatus ?: TaskBudgetStatus.read(2) // Planned. 264 264 namedParams.startDate = startDate ?: dateUtilService.today 265 namedParams.endDate = endDate ?: dateUtilService. oneWeekAgo265 namedParams.endDate = endDate ?: dateUtilService.tomorrow 266 266 267 267 def baseQuery = "from Task as task \ 268 268 where (task.trash = false \ 269 and task. budgetStatus = :budgetStatus \269 and task.taskBudgetStatus = :taskBudgetStatus \ 270 270 and task.targetStartDate < :endDate \ 271 271 and task.targetCompletionDate >= :startDate \
Note: See TracChangeset
for help on using the changeset viewer.