潘志宝
2024-11-26 757bfdc997691450a68514c879fcb08cfbd5451f
提交 | 用户 | 时间
97d38f 1 package com.iailab.module.model.mcs.pre.dao;
2
5b952f 3 import com.iailab.framework.common.pojo.PageResult;
97d38f 4 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
5b952f 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.MmItemAccuracyHisEntity;
5b952f 8 import com.iailab.module.model.mcs.pre.entity.MmItemAccuracyHisEntity;
L 9 import com.iailab.module.model.mcs.pre.entity.MmPredictAlarmConfigEntity;
10 import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyHisPageReqVO;
97d38f 11 import org.apache.ibatis.annotations.Mapper;
12
13 /**
14  * @author PanZhibao
15  * @Description
16  * @createTime 2024年11月19日
17  */
18 @TenantDS
19 @Mapper
20 public interface MmItemAccuracyHisDao extends BaseMapperX<MmItemAccuracyHisEntity> {
5b952f 21
L 22     default PageResult<MmItemAccuracyHisEntity> selectPage(MmItemAccuracyHisPageReqVO reqVO) {
23         return selectPage(reqVO, new LambdaQueryWrapperX<MmItemAccuracyHisEntity>()
24                 .likeIfPresent(MmItemAccuracyHisEntity::getRateId, reqVO.getRateId())
25                 .likeIfPresent(MmItemAccuracyHisEntity::getInDeviation, reqVO.getInDeviation())
26                 .orderByDesc(MmItemAccuracyHisEntity::getCreateTime));
27     }
28 }