From 1ff17fd97a85cd191467b4a2ffe0e4b7b1959af5 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期日, 12 十一月 2023 17:00:25 +0800
Subject: [PATCH] 查询用户同时得到其对应的多个角色,采用积极关联查询方式

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java
index 9e342c8..07963e0 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoBa/BaDistrictMapper.java
@@ -5,6 +5,8 @@
 import com.dy.pipIrrGlobal.pojoBa.BaPrivilege;
 import org.apache.ibatis.annotations.Mapper;
 
+import java.util.List;
+
 @Mapper
 public interface BaDistrictMapper extends BaseMapper<BaPrivilege> {
     /**
@@ -13,6 +15,13 @@
      * @return deleteCount
      */
     int deleteByPrimaryKey(Long id);
+
+    /**
+     * 閫昏緫鍒犻櫎
+     * @param id primaryKey
+     * @return update count
+     */
+    int deleteLogicById(Long id);
 
     /**
      * insert record to table
@@ -36,6 +45,20 @@
     BaDistrict selectByPrimaryKey(Long id);
 
     /**
+     * 鏌ヨ鏌愪竴琛屾斂绾у埆鐨勮鏀垮尯鍒�
+     * @param level 琛屾斂鍖哄垝绾у埆
+     * @return 鏌愪竴琛屾斂绾у埆鐨勮鏀垮尯鍒�
+     */
+    List<BaDistrict> selectByLevel(byte level) ;
+
+    /**
+     * 鏌ヨ鏌愪竴琛屾斂绾у埆鐨勪笅绾ц鏀垮尯
+     * @param supperId 涓婄骇琛屾斂鍖篒D
+     * @return 鏌愪竴琛屾斂绾у埆鐨勪笅绾ц鏀垮尯
+     */
+    List<BaDistrict> selectBySupperId(Long supperId) ;
+
+    /**
      * update record selective
      * @param record the updated record
      * @return update count

--
Gitblit v1.8.0