package com.iailab.module.system.dal.mysql.notice;
|
|
import com.iailab.framework.common.pojo.PageResult;
|
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
|
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
|
import com.iailab.module.system.controller.admin.notice.vo.NoticePageReqVO;
|
import com.iailab.module.system.dal.dataobject.notice.NoticeDO;
|
import org.apache.ibatis.annotations.Mapper;
|
|
@Mapper
|
public interface NoticeMapper extends BaseMapperX<NoticeDO> {
|
|
default PageResult<NoticeDO> selectPage(NoticePageReqVO reqVO) {
|
return selectPage(reqVO, new LambdaQueryWrapperX<NoticeDO>()
|
.likeIfPresent(NoticeDO::getTitle, reqVO.getTitle())
|
.eqIfPresent(NoticeDO::getStatus, reqVO.getStatus())
|
.orderByDesc(NoticeDO::getId));
|
}
|
|
}
|