潘志宝
2024-11-11 aa1aa68141e3ee33f98cdd785ddc5c244fedc592
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.report.dal.mysql.goview;
H 2
3 import com.iailab.framework.common.pojo.PageParam;
4 import com.iailab.framework.common.pojo.PageResult;
5 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
6 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
7 import com.iailab.module.report.dal.dataobject.goview.GoViewProjectDO;
8 import org.apache.ibatis.annotations.Mapper;
9
10 @Mapper
11 public interface GoViewProjectMapper extends BaseMapperX<GoViewProjectDO> {
12
13     default PageResult<GoViewProjectDO> selectPage(PageParam reqVO, Long userId) {
14         return selectPage(reqVO, new LambdaQueryWrapperX<GoViewProjectDO>()
15                 .eq(GoViewProjectDO::getCreator, userId)
16                 .orderByDesc(GoViewProjectDO::getId));
17     }
18
19 }