Jay
2024-11-12 3d9106399d9a2b9c8ba7d2dea621f54fd71d2ca7
提交 | 用户 | 时间
7fd198 1 package com.iailab.module.model.mcs.pre.dao;
2
3 import com.iailab.framework.common.pojo.PageResult;
4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
5 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
58c749 6 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
7fd198 7 import com.iailab.module.model.mcs.pre.entity.MmResultTableEntity;
8 import com.iailab.module.model.mcs.pre.entity.MmResultTableEntity;
9 import com.iailab.module.model.mcs.pre.vo.MmResultTablePageReqVO;
10 import org.apache.ibatis.annotations.Mapper;
11
12 /**
13  * @author PanZhibao
14  * @date 2021年04月23日 16:20
15  */
58c749 16 @TenantDS
7fd198 17 @Mapper
18 public interface MmResultTableDao extends BaseMapperX<MmResultTableEntity> {
19
20     default PageResult<MmResultTableEntity> selectPage(MmResultTablePageReqVO reqVO) {
21         return selectPage(reqVO, new LambdaQueryWrapperX<MmResultTableEntity>()
22                 .likeIfPresent(MmResultTableEntity::getTablename, reqVO.getTablename())
23                 .orderByDesc(MmResultTableEntity::getTablename));
24     }
25 }