mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 删除无用校验
This commit is contained in:
		@@ -75,8 +75,6 @@ public class SysDeptController extends BaseController {
 | 
				
			|||||||
    public R<Void> add(@Validated @RequestBody SysDeptBo dept) {
 | 
					    public R<Void> add(@Validated @RequestBody SysDeptBo dept) {
 | 
				
			||||||
        if (!deptService.checkDeptNameUnique(dept)) {
 | 
					        if (!deptService.checkDeptNameUnique(dept)) {
 | 
				
			||||||
            return R.fail("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在");
 | 
					            return R.fail("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在");
 | 
				
			||||||
        } else if (StringUtils.isNotBlank(dept.getDeptCategory()) && !deptService.checkDeptCategoryUnique(dept)) {
 | 
					 | 
				
			||||||
            return R.fail("新增部门'" + dept.getDeptName() + "'失败,部门类别编码已存在");
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return toAjax(deptService.insertDept(dept));
 | 
					        return toAjax(deptService.insertDept(dept));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user