| | |
| | | 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; |
| | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @Mapper |
| | | public interface DaPointDao extends BaseMapperX<DaPointEntity> { |
| | | |
| | | IPage<DaPointDTO> getPageList(IPage<DaPointEntity> page, @Param("params") Map<String, Object> params); |
| | | IPage<DaPointDTO> getPageList(IPage<DaPointEntity> page, @Param("params") DaPointPageReqVO reqVO); |
| | | |
| | | List<DaPointDTO> getList(DaPointPageReqVO reqVO); |
| | | |
| | | List<DaPointDTO> getConstantPoint(Map<String, Object> params); |
| | | |
| | |
| | | |
| | | List<DaPointDTO> getMathPoint(Map<String, Object> params); |
| | | |
| | | default PageResult<DaPointEntity> selectPage(DaPointPageReqVO reqVO) { |
| | | return selectPage(reqVO, new LambdaQueryWrapperX<DaPointEntity>() |
| | | .likeIfPresent(DaPointEntity::getPointNo, reqVO.getPointNo()) |
| | | .likeIfPresent(DaPointEntity::getPointName, reqVO.getPointName()) |
| | | .orderByDesc(DaPointEntity::getCreateTime)); |
| | | default IPage<DaPointDTO> selectPageList(DaPointPageReqVO reqVO) { |
| | | return getPageList(getPage(reqVO), reqVO); |
| | | } |
| | | |
| | | default DaPointEntity selectByPointName(String pointName) { |
| | | return selectOne("point_name", pointName); |
| | | } |
| | | } |