提交 | 用户 | 时间
|
c7f709
|
1 |
package com.iailab.module.data.channel.http.dao; |
L |
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.data.channel.http.entity.HttpApiEntity; |
|
8 |
import com.iailab.module.data.channel.http.vo.HttpApiPageReqVO; |
|
9 |
import org.apache.ibatis.annotations.Mapper; |
|
10 |
|
|
11 |
@TenantDS |
|
12 |
@Mapper |
|
13 |
public interface HttpApiDao extends BaseMapperX<HttpApiEntity> { |
|
14 |
default PageResult<HttpApiEntity> selectPage(HttpApiPageReqVO reqVO) { |
|
15 |
return selectPage(reqVO, new LambdaQueryWrapperX<HttpApiEntity>() |
|
16 |
.likeIfPresent(HttpApiEntity::getCode, reqVO.getCode()) |
|
17 |
.likeIfPresent(HttpApiEntity::getName, reqVO.getName()) |
|
18 |
.orderByDesc(HttpApiEntity::getCreateTime)); |
|
19 |
} |
|
20 |
} |