houzhongjian
2024-12-03 874287a4c02d0a980d8b97c4a691b4f37ec5e812
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.iailab.module.system.dal.mysql.app;
 
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.framework.tenant.core.db.dynamic.TenantDS;
import com.iailab.module.system.controller.admin.app.vo.AppPageReqVO;
import com.iailab.module.system.dal.dataobject.app.AppDO;
import org.apache.ibatis.annotations.Mapper;
 
/**
 * @author PanZhibao
 * @Description
 * @createTime 2024年08月16日
 */
@Mapper
public interface AppMapper extends BaseMapperX<AppDO> {
 
    default PageResult<AppDO> selectPage(AppPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<AppDO>()
                .likeIfPresent(AppDO::getAppCode, reqVO.getAppCode())
                .likeIfPresent(AppDO::getAppName, reqVO.getAppName())
                .orderByDesc(AppDO::getType)
                .orderByDesc(AppDO::getId));
    }
}