From a093b470d5f9ce57c05ad610312d4af69688a18b Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 07 十月 2023 15:01:32 +0800
Subject: [PATCH] 添加地块实体类、Mapper映射类

---
 src/main/java/com/smartearth/poiexcel/mapper/EntMapper.java |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/smartearth/poiexcel/mapper/EntMapper.java b/src/main/java/com/smartearth/poiexcel/mapper/EntMapper.java
index 1c162ef..5bf1f00 100644
--- a/src/main/java/com/smartearth/poiexcel/mapper/EntMapper.java
+++ b/src/main/java/com/smartearth/poiexcel/mapper/EntMapper.java
@@ -2,7 +2,10 @@
 
 import com.smartearth.poiexcel.entity.EntEntity;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
+
+import java.util.List;
 
 /**
  * 浼佷笟鎺ュ彛鏄犲皠绫�
@@ -12,4 +15,43 @@
 @Mapper
 @Repository
 public interface EntMapper extends BasicMapper<EntEntity> {
+    /**
+     * 鏍规嵁鍚嶇О妯$硦鏌ヨ
+     *
+     * @param name
+     * @return
+     */
+    public List<EntEntity> selectByName(@Param("name") String name);
+
+    /**
+     * 鏌ヨ琛屾暟
+     *
+     * @return
+     */
+    public Integer selectCount();
+
+    /**
+     * 鍒嗛〉鏌ヨ
+     *
+     * @param limit
+     * @param offset
+     * @return
+     */
+    public List<EntEntity> selectByPage(@Param("limit") Integer limit, @Param("offset") Integer offset);
+
+    /**
+     * 鏇存柊涓�鏉�
+     *
+     * @param entity
+     * @return
+     */
+    public Integer update(EntEntity entity);
+
+    /**
+     * 鏇存柊澶氭潯
+     *
+     * @param list
+     * @return
+     */
+    public Integer updates(List<EntEntity> list);
 }

--
Gitblit v1.9.3