Changeset 165 for trunk/grails-app/services
- Timestamp:
- Oct 23, 2009, 1:00:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskSearchService.groovy
r144 r165 76 76 } 77 77 } 78 79 def getBudgetPlanned(params) { 80 params.max = Math.min(params?.max?.toInteger() ?: 10, 100) 81 params.offset = params?.offset?.toInteger() ?: 0 82 params.sort = params?.sort ?: "id" 83 params.order = params?.order ?: "desc" 84 85 def taskInstanceList = Task.createCriteria().list( 86 max: params.max, 87 offset: params.offset, 88 sort: params.sort, 89 order: params.order) { 90 ne("taskType", TaskType.findByName("Unscheduled Breakin")) 91 ge("targetStartDate", dateUtilService.getToday()-7) 92 lt("targetStartDate", dateUtilService.getTomorrow()) 93 eq("isActive", true) 94 } 95 } 96 97 def getBudgetUnplanned(params) { 98 params.max = Math.min(params?.max?.toInteger() ?: 10, 100) 99 params.offset = params?.offset?.toInteger() ?: 0 100 params.sort = params?.sort ?: "id" 101 params.order = params?.order ?: "desc" 102 103 def taskInstanceList = Task.createCriteria().list( 104 max: params.max, 105 offset: params.offset, 106 sort: params.sort, 107 order: params.order) { 108 eq("taskType", TaskType.findByName("Unscheduled Breakin")) 109 ge("targetStartDate", dateUtilService.getToday()-7) 110 lt("targetStartDate", dateUtilService.getTomorrow()) 111 eq("isActive", true) 112 } 113 } 78 114 }
Note: See TracChangeset
for help on using the changeset viewer.