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