|
|
|
@ -20,6 +20,7 @@ public interface AreaMapper extends BaseMapperX<AreaDO> {
|
|
|
|
|
default PageResult<AreaDO> selectPage(AreaPageReqVO reqVO) { |
|
|
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<AreaDO>() |
|
|
|
|
.likeIfPresent(AreaDO::getName, reqVO.getName()) |
|
|
|
|
.eqIfPresent(AreaDO::getParentId, reqVO.getParentId()) |
|
|
|
|
.betweenIfPresent(AreaDO::getCreateTime, reqVO.getBeginCreateTime(), reqVO.getEndCreateTime()) |
|
|
|
|
.orderByDesc(AreaDO::getId)); |
|
|
|
|
} |
|
|
|
@ -27,6 +28,7 @@ public interface AreaMapper extends BaseMapperX<AreaDO> {
|
|
|
|
|
default List<AreaDO> selectList(AreaExportReqVO reqVO) { |
|
|
|
|
return selectList(new LambdaQueryWrapperX<AreaDO>() |
|
|
|
|
.likeIfPresent(AreaDO::getName, reqVO.getName()) |
|
|
|
|
.eqIfPresent(AreaDO::getParentId, reqVO.getParentId()) |
|
|
|
|
.betweenIfPresent(AreaDO::getCreateTime, reqVO.getBeginCreateTime(), reqVO.getEndCreateTime()) |
|
|
|
|
.orderByDesc(AreaDO::getId)); |
|
|
|
|
} |
|
|
|
|