提交 | 用户 | 时间
|
217043
|
1 |
package com.iailab.module.data.arc.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.data.arc.entity.ArcDataEntity; |
|
8 |
import com.iailab.module.data.arc.vo.ArcDataPageReqVO; |
|
9 |
import org.apache.ibatis.annotations.Mapper; |
|
10 |
|
|
11 |
@TenantDS |
|
12 |
@Mapper |
|
13 |
public interface ArcDataDao extends BaseMapperX<ArcDataEntity> { |
|
14 |
|
|
15 |
default PageResult<ArcDataEntity> selectPage(ArcDataPageReqVO reqVO) { |
|
16 |
return selectPage(reqVO, new LambdaQueryWrapperX<ArcDataEntity>() |
|
17 |
.eq(ArcDataEntity::getArcId, reqVO.getArcId()) |
|
18 |
.ge(reqVO.getStartTime()!=null, ArcDataEntity::getCreateTime, reqVO.getStartTime()) |
|
19 |
.le(reqVO.getEndTime()!=null, ArcDataEntity::getCreateTime, reqVO.getEndTime()) |
|
20 |
.orderByDesc(ArcDataEntity::getCreateTime)); |
|
21 |
} |
|
22 |
} |