|
@@ -78,7 +78,7 @@ public class SysDeptController extends BaseController
|
|
|
{
|
|
|
if (!deptService.checkDeptNameUnique(dept))
|
|
|
{
|
|
|
- return error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在");
|
|
|
+ return error("新增组织'" + dept.getDeptName() + "'失败,组织名称已存在");
|
|
|
}
|
|
|
dept.setCreateBy(getUsername());
|
|
|
return toAjax(deptService.insertDept(dept));
|
|
@@ -96,15 +96,15 @@ public class SysDeptController extends BaseController
|
|
|
deptService.checkDeptDataScope(deptId);
|
|
|
if (!deptService.checkDeptNameUnique(dept))
|
|
|
{
|
|
|
- return error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在");
|
|
|
+ return error("修改组织'" + dept.getDeptName() + "'失败,组织名称已存在");
|
|
|
}
|
|
|
else if (dept.getParentId().equals(deptId))
|
|
|
{
|
|
|
- return error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己");
|
|
|
+ return error("修改组织'" + dept.getDeptName() + "'失败,上级组织不能是自己");
|
|
|
}
|
|
|
else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()) && deptService.selectNormalChildrenDeptById(deptId) > 0)
|
|
|
{
|
|
|
- return error("该部门包含未停用的子部门!");
|
|
|
+ return error("该组织包含未停用的子组织!");
|
|
|
}
|
|
|
dept.setUpdateBy(getUsername());
|
|
|
return toAjax(deptService.updateDept(dept));
|