|
|
|
@ -19,6 +19,9 @@ public interface TaskMapper extends BaseMapperX<TaskDO> {
|
|
|
|
|
|
|
|
|
|
default PageResult<TaskDO> selectPage(TaskPageReqVO reqVO) { |
|
|
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<TaskDO>() |
|
|
|
|
.eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId()) |
|
|
|
|
.eqIfPresent(TaskDO::getCropId, reqVO.getCropId()) |
|
|
|
|
.eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum()) |
|
|
|
|
.likeIfPresent(TaskDO::getName, reqVO.getName()) |
|
|
|
|
.eqIfPresent(TaskDO::getContent, reqVO.getContent()) |
|
|
|
|
.eqIfPresent(TaskDO::getResources, reqVO.getResources()) |
|
|
|
@ -32,6 +35,9 @@ public interface TaskMapper extends BaseMapperX<TaskDO> {
|
|
|
|
|
|
|
|
|
|
default List<TaskDO> selectList(TaskExportReqVO reqVO) { |
|
|
|
|
return selectList(new LambdaQueryWrapperX<TaskDO>() |
|
|
|
|
.eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId()) |
|
|
|
|
.eqIfPresent(TaskDO::getCropId, reqVO.getCropId()) |
|
|
|
|
.eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum()) |
|
|
|
|
.likeIfPresent(TaskDO::getName, reqVO.getName()) |
|
|
|
|
.eqIfPresent(TaskDO::getContent, reqVO.getContent()) |
|
|
|
|
.eqIfPresent(TaskDO::getResources, reqVO.getResources()) |
|
|
|
|