潘志宝
2024-09-09 58c7491f231c8250e13c7ce705c2710a08b2cf88
提交 | 用户 | 时间
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.MmModelResultstrEntity;
8 import com.iailab.module.model.mcs.pre.vo.MmModelResultstrPageReqVO;
9 import org.apache.ibatis.annotations.Mapper;
10
11 /**
12  * @author PanZhibao
13  * @date 2021年05月07日 16:38
14  */
58c749 15 @TenantDS
7fd198 16 @Mapper
17 public interface MmModelResultstrDao extends BaseMapperX<MmModelResultstrEntity> {
18
19     default PageResult<MmModelResultstrEntity> selectPage(MmModelResultstrPageReqVO reqVO) {
20         return selectPage(reqVO, new LambdaQueryWrapperX<MmModelResultstrEntity>()
21                 .likeIfPresent(MmModelResultstrEntity::getResultstr, reqVO.getResultstr())
22                 .orderByDesc(MmModelResultstrEntity::getResultstr));
23     }
24 }