LT32820A před 2 měsíci
rodič
revize
988cea1249

+ 0 - 1
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/AppmanageController.java

@@ -167,5 +167,4 @@ public class AppmanageController {
     public Result<Boolean> isAppAdminOrDevOrOpe(String appid){
         return Result.ok(appInfoService.isAppAdminOrDevOrOpe(appid));
     }
-
 }

+ 5 - 2
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/AppmanageServiceImpl.java

@@ -229,8 +229,11 @@ public class AppmanageServiceImpl implements AppmanageService {
             // 删除该应用下所创建的角色信息
             String[] Approleids = sysRoleService.listRoleIdsByAppId(id);
             if (Approleids!=null){
-                boolean tag = sysRoleService.deleteBatchRole(Approleids);
-                if (!tag) return false;
+                try {
+                    sysRoleService.deleteBatchRole(Approleids);
+                }catch (Exception e){
+                    System.out.println("删除应用下角色失败:"+e);
+                }
             }
         }
         // 记录日志