package com.iailab.module.model.mpk.dao;
|
|
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.model.mpk.entity.IconEntity;
|
import com.iailab.module.model.mpk.vo.IconPageReqVO;
|
import org.apache.ibatis.annotations.Mapper;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年09月22日
|
*/
|
@TenantDS
|
@Mapper
|
public interface IconDao extends BaseMapperX<IconEntity> {
|
|
default PageResult<IconEntity> selectPage(IconPageReqVO reqVO) {
|
return selectPage(reqVO, new LambdaQueryWrapperX<IconEntity>()
|
.likeIfPresent(IconEntity::getIconName, reqVO.getIconName())
|
.orderByDesc(IconEntity::getSort));
|
}
|
}
|