shawn лет назад: 4
Родитель
Сommit
9da3b34b9c

+ 1 - 1
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java

@@ -152,7 +152,7 @@ public class SysDeptServiceImpl implements ISysDeptService
152
     public boolean checkDeptExistUser(Long deptId)
152
     public boolean checkDeptExistUser(Long deptId)
153
     {
153
     {
154
         int result = deptMapper.checkDeptExistUser(deptId);
154
         int result = deptMapper.checkDeptExistUser(deptId);
155
-        return result > 0 ? true : false;
155
+        return result > 0;
156
     }
156
     }
157
 
157
 
158
     /**
158
     /**