Commit 9738d7c4 by fudahua

同步优化初步3-同步成员

parent 2bcab31f
......@@ -182,8 +182,11 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
editList.forEach(syncSingleDealDTO -> {
// TODO: 2020/4/9 需要优化
TabHaobanDepartment department = departmentService.selectById(syncSingleDealDTO.getDepartmentId());
department.setParentDepartmentId(syncSingleDealDTO.getParentDepartmentId());
departmentApiService.edit(EntityUtil.changeEntityByJSON(DepartmentDTO.class, department));
if (!department.getParentDepartmentId().equals(syncSingleDealDTO.getParentDepartmentId())) {
department.setParentDepartmentId(syncSingleDealDTO.getParentDepartmentId());
departmentApiService.edit(EntityUtil.changeEntityByJSON(DepartmentDTO.class, department));
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment