From 064d703f2907b931085c5f565269289e9fa81012 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 17 十月 2025 15:53:55 +0800
Subject: [PATCH] 最新版本541200007

---
 server/system_service/src/main/java/com/doumee/service/system/SystemPermissionService.java |   76 ++++++++++++++++++++++++-------------
 1 files changed, 49 insertions(+), 27 deletions(-)

diff --git a/server/system_service/src/main/java/com/doumee/service/system/SystemPermissionService.java b/server/system_service/src/main/java/com/doumee/service/system/SystemPermissionService.java
index 1c7fcba..8c5f07a 100644
--- a/server/system_service/src/main/java/com/doumee/service/system/SystemPermissionService.java
+++ b/server/system_service/src/main/java/com/doumee/service/system/SystemPermissionService.java
@@ -1,5 +1,6 @@
 package com.doumee.service.system;
 
+import com.doumee.dao.system.dto.DeleteSystemPermissionDTO;
 import com.doumee.service.business.third.model.PageData;
 import com.doumee.service.business.third.model.PageWrap;
 import com.doumee.dao.system.dto.QuerySystemPermissionDTO;
@@ -17,85 +18,106 @@
 
     /**
      * 鍒涘缓
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param systemPermission 瀹炰綋
+     * @return Integer
      */
     Integer create(SystemPermission systemPermission);
 
     /**
      * 涓婚敭鍒犻櫎
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param id 涓婚敭
      */
     void deleteById(Integer id);
 
     /**
      * 鎵归噺涓婚敭鍒犻櫎
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param ids 涓婚敭鍒楄〃
      */
     void deleteByIdInBatch(List<Integer> ids);
 
     /**
+     * 鍒犻櫎
+     *
+     * @param dto 鍒犻櫎鏉′欢
+     */
+    void delete (DeleteSystemPermissionDTO dto);
+
+    /**
+     * 鎵归噺鍒犻櫎
+     *
+     * @param dtos 鍒犻櫎鏉′欢鍒楄〃
+     */
+    void deleteInBatch(List<DeleteSystemPermissionDTO> dtos);
+
+    /**
      * 涓婚敭鏇存柊
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param systemPermission 瀹炰綋
      */
     void updateById(SystemPermission systemPermission);
 
     /**
      * 鎵归噺涓婚敭鏇存柊
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param systemPermissions 瀹炰綋鍒楄〃
      */
     void updateByIdInBatch(List<SystemPermission> systemPermissions);
 
     /**
      * 涓婚敭鏌ヨ
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param id 涓婚敭
+     * @return SystemPermission
      */
     SystemPermission findById(Integer id);
 
     /**
      * 鏍规嵁鐢ㄦ埛ID鏌ヨ
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param userId 鐢ㄦ埛ID
+     * @return List<SystemPermission>
      */
     List<SystemPermission> findByUserId(Integer userId);
 
     /**
      * 鏍规嵁瑙掕壊ID鏌ヨ
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param roleId 瑙掕壊ID
+     * @return List<SystemPermission>
      */
     List<SystemPermission> findByRoleId(Integer roleId);
 
     /**
      * 鏉′欢鏌ヨ鍗曟潯璁板綍
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param systemPermission 鏌ヨ鏉′欢
+     * @return SystemPermission
      */
     SystemPermission findOne(SystemPermission systemPermission);
 
     /**
      * 鏉′欢鏌ヨ
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param systemPermission 鏌ヨ鏉′欢
+     * @return List<SystemPermission>
      */
     List<SystemPermission> findList(SystemPermission systemPermission);
-  
+
     /**
-     * 鍒嗛〉鏌ヨ
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     * 鏌ヨ绠$悊鍒楄〃
+     *
+     * @return List<SystemPermissionListVO>
      */
-    PageData<SystemPermissionListVO> findPage(PageWrap<QuerySystemPermissionDTO> pageWrap);
+    List<SystemPermissionListVO> findTree();
 
     /**
      * 鏉′欢缁熻
-     * @author Eva.Caesar Liu
-     * @date 2023/03/21 14:49
+     *
+     * @param systemPermission 缁熻鏉′欢
+     * @return long
      */
     long count(SystemPermission systemPermission);
 }

--
Gitblit v1.9.3