| | |
| | | * @param keyword |
| | | * @return |
| | | */ |
| | | public IPage<BladeFlow> selectOvertimePage(IPage<BladeFlow> page, String assigneeName,String keyword) { |
| | | public IPage<BladeFlow> selectOvertimePage(IPage<BladeFlow> page,LocalDate createTimeBegin,LocalDate createTimeEnd, String assigneeName,String keyword) { |
| | | |
| | | List<BladeFlow> flowList = new LinkedList<>(); |
| | | Date now = new Date(); |
| | | TaskQuery todoQuery = taskService.createTaskQuery().taskDueBefore(now).active().includeProcessVariables(); |
| | | if(Func.isNotEmpty(createTimeBegin)) { |
| | | todoQuery.taskCreatedAfter(DateUtil.toDate(createTimeBegin)); |
| | | } |
| | | if(Func.isNotEmpty(createTimeEnd)) { |
| | | todoQuery.taskCreatedBefore(DateUtil.toDate(createTimeEnd.plusDays(1))); |
| | | } |
| | | |
| | | if(Func.isNotEmpty(keyword)) { |
| | | todoQuery.taskVariableValueLike("assigneeName", "%"+assigneeName+"%"); |