提交 | 用户 | 时间
|
97d38f
|
1 |
package com.iailab.module.model.mcs.pre.dao; |
潘 |
2 |
|
b06c21
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
97d38f
|
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
b06c21
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
97d38f
|
6 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
潘 |
7 |
import com.iailab.module.model.mcs.pre.entity.MmPredictAlarmMessageEntity; |
b06c21
|
8 |
import com.iailab.module.model.mcs.pre.vo.MmPredictAlarmMessagePageReqVO; |
97d38f
|
9 |
import org.apache.ibatis.annotations.Mapper; |
潘 |
10 |
|
|
11 |
/** |
|
12 |
* @author PanZhibao |
|
13 |
* @Description |
|
14 |
* @createTime 2024年11月19日 |
|
15 |
*/ |
|
16 |
@TenantDS |
|
17 |
@Mapper |
|
18 |
public interface MmPredictAlarmMessageDao extends BaseMapperX<MmPredictAlarmMessageEntity> { |
b06c21
|
19 |
|
潘 |
20 |
default PageResult<MmPredictAlarmMessageEntity> selectPage(MmPredictAlarmMessagePageReqVO reqVO) { |
|
21 |
return selectPage(reqVO, new LambdaQueryWrapperX<MmPredictAlarmMessageEntity>() |
|
22 |
.eqIfPresent(MmPredictAlarmMessageEntity::getConfigId, reqVO.getConfigId()) |
|
23 |
.likeIfPresent(MmPredictAlarmMessageEntity::getTitle, reqVO.getTitle()) |
|
24 |
.eqIfPresent(MmPredictAlarmMessageEntity::getAlarmObj, reqVO.getAlarmObj()) |
|
25 |
.likeIfPresent(MmPredictAlarmMessageEntity::getContent, reqVO.getContent()) |
|
26 |
.geIfPresent(MmPredictAlarmMessageEntity::getAlarmTime, reqVO.getStartTime()) |
|
27 |
.leIfPresent(MmPredictAlarmMessageEntity::getAlarmTime, reqVO.getEndTime()) |
|
28 |
.orderByDesc(MmPredictAlarmMessageEntity::getCreateTime)); |
|
29 |
} |
97d38f
|
30 |
} |