From a42c2d24721a08b0066089ebcdf49c569676735d Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期日, 12 十一月 2023 17:29:10 +0800
Subject: [PATCH] 1、添加权限验证注解、事务注解 2、用户管理中增加功能:保存、修改、删除

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaUserMapper.java |  104 +++++++++++++++++++++++++++++++--------------------
 1 files changed, 63 insertions(+), 41 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 3460fc5..48f6d23 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,58 +1,80 @@
 package com.dy.pipIrrGlobal.daoBa;
 
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.dy.pipIrrGlobal.pojoBa.BaUser;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
+import java.util.Map;
 
 @Mapper
-//public interface BaUserMapper extends com.baomidou.mybatisplus.core.mapper.Mapper<BaUser> {
-//public interface BaUserMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<BaUser> {
-public interface BaUserMapper {
+public interface BaUserMapper extends BaseMapper<BaUser> {
 
     /**
      * 鐢ㄦ埛鐧诲綍
-     * @param phone
-     * @param password
-     * @return
+     * @param phone 鎵嬫満鍙�
+     * @param password 瀵嗙爜
+     * @return BaUser
      */
     BaUser login(@Param("phone") String phone, @Param("password") String password) ;
 
 
-//
-//    /**
-//     * 鎻掑叆涓�鏉¤褰�
-//     * @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);
+    /**
+     * 鏌ヨ鎬绘暟
+     * @param params 鏌ヨ鏉′欢
+     * @return 鎬绘暟
+     */
+    Long selectTotal(Map<?, ?> params) ;
+
+    /**
+     * 鍒嗛〉鏌ヨ涓�浜�
+     * @param params 鏌ヨ鏉′欢
+     * @return 瀹炰綋闆嗗悎
+     */
+    List<BaUser> selectSome(Map<?, ?> params) ;
+
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(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);
+
+    /**
+     * 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