dengzedong
2024-12-24 aa0382e44311f9f7e62a688c8fcaa9c69a512e0f
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dao/DaPointDao.java
@@ -1,5 +1,6 @@
package com.iailab.module.data.point.dao;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.iailab.framework.common.pojo.PageResult;
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
@@ -11,6 +12,7 @@
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -25,13 +27,21 @@
    IPage<DaPointDTO> getPageList(IPage<DaPointEntity> page, @Param("params") DaPointPageReqVO reqVO);
    List<DaPointDTO> getList(DaPointPageReqVO reqVO);
    List<DaPointDTO> getConstantPoint(Map<String, Object> params);
    List<DaPointDTO> getMeasurePoint(Map<String, Object> params);
    List<DaPointDTO> getMathPoint(Map<String, Object> params);
    default IPage<DaPointDTO> selectPage(DaPointPageReqVO reqVO) {
    List<DaPointDTO> getCumulatePoint(Map<String, Object> params);
    default IPage<DaPointDTO> selectPageList(DaPointPageReqVO reqVO) {
        return getPageList(getPage(reqVO), reqVO);
    }
    default DaPointEntity selectByPointName(String pointName) {
        return selectOne("point_name", pointName);
    }
}