潘志宝
2024-11-29 56dba6294342aa571197298669d04618b4f7258f
提交 | 用户 | 时间
a6de49 1 package com.iailab.module.data.point.dao;
H 2
139c6a 3 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
a6de49 4 import com.baomidou.mybatisplus.core.metadata.IPage;
6bf63b 5 import com.iailab.framework.common.pojo.PageResult;
L 6 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
7 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
0fbd01 8 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
a6de49 9 import com.iailab.module.data.point.dto.DaPointDTO;
H 10 import com.iailab.module.data.point.entity.DaPointEntity;
6bf63b 11 import com.iailab.module.data.point.vo.DaPointPageReqVO;
a6de49 12 import org.apache.ibatis.annotations.Mapper;
H 13 import org.apache.ibatis.annotations.Param;
14
139c6a 15 import java.util.Collection;
a6de49 16 import java.util.List;
H 17 import java.util.Map;
18
19 /**
6bf63b 20  * @author lirm
a6de49 21  * @Description
6bf63b 22  * @createTime 2024年09月2日
a6de49 23  */
0fbd01 24 @TenantDS
a6de49 25 @Mapper
6bf63b 26 public interface DaPointDao extends BaseMapperX<DaPointEntity> {
a6de49 27
250190 28     IPage<DaPointDTO> getPageList(IPage<DaPointEntity> page, @Param("params") DaPointPageReqVO reqVO);
a6de49 29
14cb32 30     List<DaPointDTO> getList(DaPointPageReqVO reqVO);
31
a6de49 32     List<DaPointDTO> getConstantPoint(Map<String, Object> params);
H 33
34     List<DaPointDTO> getMeasurePoint(Map<String, Object> params);
35
36     List<DaPointDTO> getMathPoint(Map<String, Object> params);
6bf63b 37
56dba6 38     List<DaPointDTO> getCumulatePoint(Map<String, Object> params);
39
139c6a 40     default IPage<DaPointDTO> selectPageList(DaPointPageReqVO reqVO) {
250190 41         return getPageList(getPage(reqVO), reqVO);
6bf63b 42     }
139c6a 43
14cb32 44     default DaPointEntity selectByPointName(String pointName) {
139c6a 45         return selectOne("point_name", pointName);
14cb32 46     }
a6de49 47 }