| | |
| | | package com.iailab.module.model.mcs.pre.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
| | | import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | | import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
| | | import com.iailab.module.model.mcs.pre.entity.MmPredictAlarmConfigEntity; |
| | | import com.iailab.module.model.mcs.pre.vo.MmPredictAlarmConfigPageReqVO; |
| | | import com.iailab.module.model.mcs.pre.vo.MmPredictAlarmConfigRespVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @author PanZhibao |
| | |
| | | @Mapper |
| | | public interface MmPredictAlarmConfigDao extends BaseMapperX<MmPredictAlarmConfigEntity> { |
| | | |
| | | default PageResult<MmPredictAlarmConfigEntity> selectPage(MmPredictAlarmConfigPageReqVO reqVO) { |
| | | return selectPage(reqVO, new LambdaQueryWrapperX<MmPredictAlarmConfigEntity>() |
| | | .likeIfPresent(MmPredictAlarmConfigEntity::getTitle, reqVO.getTitle()) |
| | | .likeIfPresent(MmPredictAlarmConfigEntity::getAlarmObj, reqVO.getAlarmObj()) |
| | | .orderByDesc(MmPredictAlarmConfigEntity::getCreateTime)); |
| | | IPage<MmPredictAlarmConfigRespVO> getPageList(IPage<MmPredictAlarmConfigEntity> page, @Param("params") MmPredictAlarmConfigPageReqVO reqVO); |
| | | |
| | | default IPage<MmPredictAlarmConfigRespVO> selectPage(MmPredictAlarmConfigPageReqVO reqVO) { |
| | | return getPageList(getPage(reqVO), reqVO); |
| | | } |
| | | } |