!1 修改root部门时sql会报错, 原因是edit页面没把ancestors传回来

Merge pull request !1 from 贪吃的猛犸象/N/A
This commit is contained in:
贪吃的猛犸象 2021-07-29 12:29:44 +00:00 committed by Gitee
commit ea693a6297
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-dept-edit" th:object="${dept}">
<input name="deptId" type="hidden" th:field="*{deptId}" />
<input name="ancestors" type="hidden" th:field="*{ancestors}" />
<input id="treeId" name="parentId" type="hidden" th:field="*{parentId}" />
<div class="form-group">
<label class="col-sm-3 control-label">上级部门:</label>