liriming
2024-09-02 6bf63be83c6e5eeed1b5d19747f473478075c3a6
提交 | 用户 | 时间
a6de49 1 package com.iailab.module.data.point.dao;
H 2
3 import com.baomidou.mybatisplus.core.metadata.IPage;
6bf63b 4 import com.iailab.framework.common.pojo.PageResult;
L 5 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
6 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
0fbd01 7 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
a6de49 8 import com.iailab.module.data.point.dto.DaPointDTO;
H 9 import com.iailab.module.data.point.entity.DaPointEntity;
6bf63b 10 import com.iailab.module.data.point.vo.DaPointPageReqVO;
a6de49 11 import org.apache.ibatis.annotations.Mapper;
H 12 import org.apache.ibatis.annotations.Param;
13
14 import java.util.List;
15 import java.util.Map;
16
17 /**
6bf63b 18  * @author lirm
a6de49 19  * @Description
6bf63b 20  * @createTime 2024年09月2日
a6de49 21  */
0fbd01 22 @TenantDS
a6de49 23 @Mapper
6bf63b 24 public interface DaPointDao extends BaseMapperX<DaPointEntity> {
a6de49 25
H 26     IPage<DaPointDTO> getPageList(IPage<DaPointEntity> page, @Param("params") Map<String, Object> params);
27
28     List<DaPointDTO> getConstantPoint(Map<String, Object> params);
29
30     List<DaPointDTO> getMeasurePoint(Map<String, Object> params);
31
32     List<DaPointDTO> getMathPoint(Map<String, Object> params);
6bf63b 33
L 34     default PageResult<DaPointEntity> selectPage(DaPointPageReqVO reqVO) {
35         return selectPage(reqVO, new LambdaQueryWrapperX<DaPointEntity>()
36                 .likeIfPresent(DaPointEntity::getPointNo, reqVO.getPointNo())
37                 .likeIfPresent(DaPointEntity::getPointName, reqVO.getPointName())
38                 .orderByDesc(DaPointEntity::getCreateTime));
39     }
a6de49 40 }