@@ -163,7 +163,7 @@ public class UpdateDeptService { | |||
* @return | |||
*/ | |||
private JsonResult updateDept(String tenantId, EditDeptRequest oldEditDeptRequest, EditDeptRequest newEditDeptRequest) { | |||
if (oldEditDeptRequest.getName().equals(newEditDeptRequest.getName())) { | |||
if (!oldEditDeptRequest.getName().equals(newEditDeptRequest.getName())) { | |||
Dept dept = new Dept(); | |||
dept.setId(newEditDeptRequest.getId()); | |||
dept.setTenantId(tenantId); |