package com.iailab.module.data.channel.http.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.data.channel.http.entity.HttpApiEntity; import com.iailab.module.data.channel.http.vo.HttpApiPageReqVO; import org.apache.ibatis.annotations.Mapper; @TenantDS @Mapper public interface HttpApiDao extends BaseMapperX { default PageResult selectPage(HttpApiPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .likeIfPresent(HttpApiEntity::getCode, reqVO.getCode()) .likeIfPresent(HttpApiEntity::getName, reqVO.getName()) .orderByDesc(HttpApiEntity::getCreateTime)); } }