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/BaUserMapper.java |   86 +++++++++++++++++++++++++------------------
 1 files changed, 50 insertions(+), 36 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaUserMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaUserMapper.java
index af709fd..cef278f 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaUserMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaUserMapper.java
@@ -1,7 +1,6 @@
 package com.dy.pipIrrGlobal.daoBa;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.dy.pipIrrGlobal.pojoBa.BaBlock;
 import com.dy.pipIrrGlobal.pojoBa.BaUser;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
@@ -36,39 +35,54 @@
     List<BaUser> selectSome(Map<?, ?> params) ;
 
 
-//
-//    /**
-//     * 鎻掑叆涓�鏉¤褰�
-//     * @param userPo
-//     * @return
-//     */
-//    long insertSelective(BaUser userPo);
-//
-//    /**
-//     * 鎻掑叆涓�鏉¤褰曪紝濡傛灉鍞竴閿啿绐佸垯鏇存柊
-//     * @param userPo
-//     * @return
-//     */
-//    long insertOnDuplicateUpdate(BaUser userPo);
-//
-//    /**
-//     * 鏇存柊涓�鏉¤褰�
-//     * @param userPo
-//     * @return
-//     */
-//    int updateSelective(BaUser userPo);
-//
-//    /**
-//     * 鎵归噺鎻掑叆
-//     * @param userPoList
-//     * @return
-//     */
-//    int batchInsert(List<BaUser> userPoList);
-//
-//    /**
-//     * 鎵归噺鏇存柊
-//     * @param userPoList
-//     * @return
-//     */
-//    int batchUpdate(List<BaUser> userPoList);
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int putin(BaUser record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(BaUser record);
+
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(BaUser record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(BaUser record);
+
+    /**
+     * update record
+     * @param id 瀹炰綋ID
+     * @param password 鏂板瘑鐮�
+     * @return update count
+     */
+    int changePassword(@Param("id") Long id, @Param("password") String password) ;
+
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * 閫昏緫鍒犻櫎
+     * @param id primaryKey
+     * @return update count
+     */
+    int deleteLogicById(Long id);
 }

--
Gitblit v1.8.0