提交 | 用户 | 时间
|
2a6f08
|
1 |
package com.iailab.module.data.ind.value.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; |
441d30
|
6 |
import com.iailab.framework.tenant.core.db.dynamic.DataDS; |
2a6f08
|
7 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
cf757d
|
8 |
import com.iailab.module.data.ind.item.vo.IndItemValueVO; |
潘 |
9 |
import com.iailab.module.data.ind.value.dto.QuerySourceValueDTO; |
2a6f08
|
10 |
import com.iailab.module.data.ind.value.entity.IndItemValueEntity; |
潘 |
11 |
import com.iailab.module.data.ind.value.vo.IndItemValuePageReqVO; |
|
12 |
import org.apache.ibatis.annotations.Mapper; |
cf757d
|
13 |
|
潘 |
14 |
import java.util.List; |
2a6f08
|
15 |
|
潘 |
16 |
/** |
|
17 |
* @author PanZhibao |
|
18 |
* @Description |
|
19 |
* @createTime 2024年09月11日 |
|
20 |
*/ |
|
21 |
@TenantDS |
|
22 |
@Mapper |
|
23 |
public interface IndItemValueDao extends BaseMapperX<IndItemValueEntity> { |
|
24 |
|
|
25 |
default PageResult<IndItemValueEntity> selectPage(IndItemValuePageReqVO reqVO) { |
|
26 |
return selectPage(reqVO, new LambdaQueryWrapperX<IndItemValueEntity>() |
|
27 |
.eq(IndItemValueEntity::getItemNo, reqVO.getItemNo()) |
|
28 |
.geIfPresent(IndItemValueEntity::getDataTime, reqVO.getStartTime()) |
|
29 |
.leIfPresent(IndItemValueEntity::getDataTime, reqVO.getEndTime()) |
|
30 |
.orderByDesc(IndItemValueEntity::getDataTime)); |
|
31 |
} |
441d30
|
32 |
@DataDS |
cf757d
|
33 |
List<IndItemValueVO> getSourceValue(QuerySourceValueDTO dto); |
2a6f08
|
34 |
} |