提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.mcs.sche.dao; |
潘 |
2 |
|
0a7d0f
|
3 |
import com.baomidou.mybatisplus.core.metadata.IPage; |
bbc1ee
|
4 |
import com.iailab.framework.common.pojo.PageResult; |
7fd198
|
5 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
bbc1ee
|
6 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
58c749
|
7 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
0a7d0f
|
8 |
import com.iailab.module.model.api.mcs.dto.StAlarmAndSuggestPageReqVO; |
潘 |
9 |
import com.iailab.module.model.api.mcs.dto.StAlarmAndSuggestRespVO; |
7fd198
|
10 |
import com.iailab.module.model.mcs.sche.entity.StScheduleSchemeEntity; |
bbc1ee
|
11 |
import com.iailab.module.model.mcs.sche.vo.StScheduleSchemePageReqVO; |
7fd198
|
12 |
import org.apache.ibatis.annotations.Mapper; |
0a7d0f
|
13 |
import org.apache.ibatis.annotations.Param; |
7fd198
|
14 |
|
潘 |
15 |
import java.util.Map; |
|
16 |
|
|
17 |
/** |
|
18 |
* @author PanZhibao |
|
19 |
* @date 2021年07月20日 9:08 |
|
20 |
*/ |
58c749
|
21 |
@TenantDS |
7fd198
|
22 |
@Mapper |
潘 |
23 |
public interface StScheduleSchemeDao extends BaseMapperX<StScheduleSchemeEntity> { |
|
24 |
|
bbc1ee
|
25 |
default PageResult<StScheduleSchemeEntity> selectPage(StScheduleSchemePageReqVO reqVO) { |
潘 |
26 |
return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleSchemeEntity>() |
|
27 |
.likeIfPresent(StScheduleSchemeEntity::getName, reqVO.getName()) |
|
28 |
.orderByDesc(StScheduleSchemeEntity::getCreateTime)); |
|
29 |
} |
0a7d0f
|
30 |
|
潘 |
31 |
IPage<StAlarmAndSuggestRespVO> getAlarmAndSuggestPage(IPage<StScheduleSchemeEntity> page, @Param("params") StAlarmAndSuggestPageReqVO reqVO); |
|
32 |
|
|
33 |
default IPage<StAlarmAndSuggestRespVO> selectAlarmAndSuggestPageList(StAlarmAndSuggestPageReqVO reqVO) { |
|
34 |
return getAlarmAndSuggestPage(getPage(reqVO), reqVO); |
|
35 |
} |
7fd198
|
36 |
} |