Commit b0071dbd by qwmqiuwenmin

Merge branch 'developer' of http://115.159.76.241/haoban3.0/haoban-manage3.0.git into developer

parents b4647506 d0bac6c1
......@@ -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