Explorar o código

!182 简化返回值
Merge pull request !182 from shawn/dev

若依 %!s(int64=4) %!d(string=hai) anos
pai
achega
97500fbccb

+ 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
     /**