修改创建钉钉部门参数

This commit is contained in:
jinqiming 2021-05-08 09:02:40 +08:00
parent 57ca8ae41f
commit eebc8c524f
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class DepartmentEventService implements ISyncDingTalkInfo {
DepartmentCreateRequest departmentDTO = DepartmentCreateRequest.builder()
.name(sysDept.getDeptName())
.order(sysDept.getOrderNum())
.parentid(sysDept.getParentName())
.parentid(String.valueOf(sysDept.getParentId()))
.build();
departmentService.createDepartment(departmentDTO);
}else if(code.equals(DingTalkListenerType.DEPARTMENT_UPDATE.getCode())){