Просмотр исходного кода

:ambulance: 优化租户部门操作逻辑

smallchill 6 лет назад
Родитель
Сommit
6c0cb8697e

+ 1 - 1
src/main/java/org/springblade/modules/system/service/impl/DeptServiceImpl.java

@@ -84,7 +84,7 @@ public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements ID
 		if (dept.getParentId() > 0) {
 			Dept parent = getById(dept.getParentId());
 			if (Func.toLong(dept.getParentId()) == Func.toLong(dept.getId())) {
-				throw new ServiceException("父节点不选择自身!");
+				throw new ServiceException("父节点不选择自身!");
 			}
 			dept.setTenantId(parent.getTenantId());
 			String ancestors = parent.getAncestors() + StringPool.COMMA + dept.getParentId();