提交 | 用户 | 时间
|
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 |
|
1c9291
|
11 |
import java.util.Date; |
L |
12 |
import java.util.Map; |
|
13 |
|
97d38f
|
14 |
/** |
潘 |
15 |
* @author PanZhibao |
|
16 |
* @Description |
|
17 |
* @createTime 2024年11月19日 |
|
18 |
*/ |
|
19 |
@TenantDS |
|
20 |
@Mapper |
|
21 |
public interface MmPredictAlarmMessageDao extends BaseMapperX<MmPredictAlarmMessageEntity> { |
b06c21
|
22 |
|
潘 |
23 |
default PageResult<MmPredictAlarmMessageEntity> selectPage(MmPredictAlarmMessagePageReqVO reqVO) { |
|
24 |
return selectPage(reqVO, new LambdaQueryWrapperX<MmPredictAlarmMessageEntity>() |
|
25 |
.eqIfPresent(MmPredictAlarmMessageEntity::getConfigId, reqVO.getConfigId()) |
|
26 |
.likeIfPresent(MmPredictAlarmMessageEntity::getTitle, reqVO.getTitle()) |
|
27 |
.eqIfPresent(MmPredictAlarmMessageEntity::getAlarmObj, reqVO.getAlarmObj()) |
|
28 |
.likeIfPresent(MmPredictAlarmMessageEntity::getContent, reqVO.getContent()) |
|
29 |
.geIfPresent(MmPredictAlarmMessageEntity::getAlarmTime, reqVO.getStartTime()) |
|
30 |
.leIfPresent(MmPredictAlarmMessageEntity::getAlarmTime, reqVO.getEndTime()) |
|
31 |
.orderByDesc(MmPredictAlarmMessageEntity::getCreateTime)); |
|
32 |
} |
1c9291
|
33 |
|
L |
34 |
void cleanAlarmMessage(Map<String, Date> tMap); |
97d38f
|
35 |
} |