From 4be7d863a161b64f8592a789d699e807545e7dc6 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 15 十一月 2024 16:46:12 +0800
Subject: [PATCH] 计划数据

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dao/DaPointDao.java |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dao/DaPointDao.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dao/DaPointDao.java
index d977988..e122d5a 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/dao/DaPointDao.java
+++ b/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;
 
@@ -23,7 +25,9 @@
 @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);
 
@@ -31,10 +35,11 @@
 
     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);
     }
 }

--
Gitblit v1.9.3