|
|
@ -148,6 +148,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
|
LambdaQueryWrapperX<ProjectDO> queryWrapperX = new LambdaQueryWrapperX<>(); |
|
|
|
LambdaQueryWrapperX<ProjectDO> queryWrapperX = new LambdaQueryWrapperX<>(); |
|
|
|
queryWrapperX.eqIfPresent(ProjectDO::getState, pageDTO.getState()); |
|
|
|
queryWrapperX.eqIfPresent(ProjectDO::getState, pageDTO.getState()); |
|
|
|
queryWrapperX.likeIfPresent(ProjectDO::getName, pageDTO.getProjectName()); |
|
|
|
queryWrapperX.likeIfPresent(ProjectDO::getName, pageDTO.getProjectName()); |
|
|
|
|
|
|
|
queryWrapperX.eq(ProjectDO::getPretendDelete, false); |
|
|
|
if (ObjectUtil.isNotEmpty(pageDTO.getTimeLimit())){ |
|
|
|
if (ObjectUtil.isNotEmpty(pageDTO.getTimeLimit())){ |
|
|
|
LocalDateTime nowTime = LocalDateTime.now(); |
|
|
|
LocalDateTime nowTime = LocalDateTime.now(); |
|
|
|
LocalDateTime startTime = pageDTO.getTimeLimit() == 2 ? nowTime.minusDays(3) : nowTime.minusDays(14); |
|
|
|
LocalDateTime startTime = pageDTO.getTimeLimit() == 2 ? nowTime.minusDays(3) : nowTime.minusDays(14); |
|
|
|