|
|
|
|
|
|
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
private JsonResult updateDept(String tenantId, EditDeptRequest oldEditDeptRequest, EditDeptRequest newEditDeptRequest) { |
|
|
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 dept = new Dept(); |
|
|
dept.setId(newEditDeptRequest.getId()); |
|
|
dept.setId(newEditDeptRequest.getId()); |
|
|
dept.setTenantId(tenantId); |
|
|
dept.setTenantId(tenantId); |