|
@@ -205,10 +205,10 @@ public class RecordsServiceImpl implements RecordsService {
|
|
|
|
|
|
//新建员工账号以及其相关的关系 如果账号已经存在就开启账号的使用状态 以及修改其相关的权限和部门关系
|
|
|
UserBaseDTO user = initUser(staffRecordSDO);
|
|
|
-// CommonResult<String> result = userApi.createUser(user);
|
|
|
-// if (result.getCode() != 0) {
|
|
|
-// throw new RuntimeException(result.getMsg());
|
|
|
-// }
|
|
|
+ CommonResult<String> result = userApi.createUser(user);
|
|
|
+ if (result.getCode() != 0) {
|
|
|
+ throw new RuntimeException(result.getMsg());
|
|
|
+ }
|
|
|
|
|
|
//亲属列表更新
|
|
|
updateFamilyDetail(staffRecordSDO.getId(), RecordsConvert.INSTANCE.convertDetailO1(dto.getFamilyList()));
|