| | |
| | | query.setProjectEndTime(DateUtils.getDayEnd(query.getProjectEndTime())); |
| | | } |
| | | String projectCategory = query.getProjectCategory(); |
| | | //实施阶段有两个值放在sql处理 |
| | | if (ProjectCategoryEnum.RESERVE.getType().equals(projectCategory)) { |
| | | query.setProjectStatus(ProjectCategoryEnum.RESERVE.getStatus()); |
| | | query.setReserveOrPrevious(ProjectCategoryEnum.RESERVE.getCode()); |
| | |
| | | <if test="query.reserveOrPrevious != null and query.reserveOrPrevious == 'previous'"> |
| | | and TPP.process_instance_id is not null |
| | | </if> |
| | | <if test="query.projectCategory == 3"> |
| | | and (TPI.project_status = 'working' or TPI.project_status = 'stop') |
| | | </if> |
| | | </where> |
| | | order by TPI.gmt_create |
| | | </select> |