牧场跟跟部门绑定
This commit is contained in:
@@ -76,6 +76,9 @@ public class SysDeptController extends BaseController
|
||||
@PostMapping
|
||||
public AjaxResult add(@Validated @RequestBody SysDept dept)
|
||||
{
|
||||
if (!deptService.checkRanchName(dept)){
|
||||
return error("新增部门'" + dept.getDeptName() + "'失败,牧场名称已存在");
|
||||
}
|
||||
if (!deptService.checkDeptNameUnique(dept))
|
||||
{
|
||||
return error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在");
|
||||
|
||||
Reference in New Issue
Block a user