From 22fee1efabe983c7c9ea9d3ee627e2a4319c0fc5 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 04 十二月 2023 15:30:06 +0800
Subject: [PATCH] *Mapper.java和*Mapper.xml中的insert方法改名为putin,哪果不改运行时会产生警告,警告insert已经加载过了,实际是MyBattisPlus的默认实现BaseMapper.java中已经存有instert方法

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java |   66 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 1 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java
index 604fcd0..5ce36ec 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaClientMapper.java
@@ -2,16 +2,49 @@
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.dy.pipIrrGlobal.pojoBa.BaClient;
+import com.dy.pipIrrGlobal.pojoBa.BaClientType;
 import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+import java.util.Map;
 
 @Mapper
 public interface BaClientMapper extends BaseMapper<BaClient> {
+
+    /**
+     * 閫氳繃ID寰楀埌瀹炰綋
+     * @param id 瀹炰綋ID
+     * @return 瀹炰綋
+     */
+    BaClient selectByPrimaryKey(Long id) ;
+
+    /**
+     * 鏌ヨ鏌愮被鍨嬪啘鎴锋�绘暟
+     * @param typeId 鍐滄埛绫诲瀷ID
+     * @return 鎬绘暟
+     */
+    Long selectCountByType(Long typeId) ;
+
+    /**
+     * 鏌ヨ鎬绘暟
+     * @param params 鏌ヨ鏉′欢
+     * @return 鎬绘暟
+     */
+    Long selectTotal(Map<?, ?> params) ;
+
+    /**
+     * 鍒嗛〉鏌ヨ涓�浜�
+     * @param params 鏌ヨ鏉′欢
+     * @return 瀹炰綋闆嗗悎
+     */
+    List<BaClient> selectSome(Map<?, ?> params) ;
+
     /**
      * insert record to table
      * @param record the record
      * @return insert count
      */
-    int insert(BaClient record);
+    int putin(BaClient record);
 
     /**
      * insert record to table selective
@@ -19,4 +52,35 @@
      * @return insert count
      */
     int insertSelective(BaClient record);
+
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(BaClient record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(BaClient record);
+
+
+    /**
+     * 閫昏緫鍒犻櫎
+     * @param id primaryKey
+     * @return update count
+     */
+    int deleteLogicById(Long id);
+
+    /**
+     * 瀹為檯鍒犻櫎
+     * @param id primaryKey
+     * @return update count
+     */
+    int deleteByPrimaryKey(Long id);
+
 }
\ No newline at end of file

--
Gitblit v1.8.0