liriming
2024-11-26 5b952f77058a9da5af5e143a6c2c7ba195aa736d
提交 | 用户 | 时间
cf2287 1 package com.iailab.module.model.mpk.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;
6 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
7 import com.iailab.module.model.mpk.entity.PackEntity;
8 import com.iailab.module.model.mpk.vo.PackPageReqVO;
9 import org.apache.ibatis.annotations.Mapper;
10
11 /**
12  * @author PanZhibao
13  * @Description
14  * @createTime 2024年11月05日
15  */
16 @TenantDS
17 @Mapper
18 public interface PackDao extends BaseMapperX<PackEntity> {
19
20     default PageResult<PackEntity> selectPage(PackPageReqVO reqVO) {
21         return selectPage(reqVO, new LambdaQueryWrapperX<PackEntity>()
22                 .likeIfPresent(PackEntity::getPackName, reqVO.getPackName())
23                 .orderByDesc(PackEntity::getSort).orderByAsc(PackEntity::getPackName));
24     }
25 }