修改新增用户-暂定用于人资数据同步接口添加返回值用户id
parent
bc56292e89
commit
e8dd6891c9
|
|
@ -100,11 +100,10 @@ public class ZcloudUserFacadeImpl implements ZcloudUserFacade {
|
|||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse addHumanUser(ZcloudUserAddCmd cmd) {
|
||||
public SingleResponse<Long> addHumanUser(ZcloudUserAddCmd cmd) {
|
||||
UserAddCmd userAddCmd = new UserAddCmd();
|
||||
BeanUtil.copyProperties(cmd, userAddCmd);
|
||||
userServiceI.addHumanUser(userAddCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
return userServiceI.addHumanUser(userAddCmd);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -637,7 +637,7 @@ public class UserAddExe {
|
|||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean executeHumanUser(UserAddCmd cmd) {
|
||||
public Long executeHumanUser(UserAddCmd cmd) {
|
||||
UserE userE = new UserE();
|
||||
BeanUtils.copyProperties(cmd, userE);
|
||||
userE.setTenantId(cmd.getCorpinfoId());
|
||||
|
|
@ -670,7 +670,7 @@ public class UserAddExe {
|
|||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
return userE.getId();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -267,9 +267,9 @@ public class UserServiceImpl implements UserServiceI {
|
|||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse addHumanUser(UserAddCmd cmd) {
|
||||
userAddExe.executeHumanUser(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
public SingleResponse<Long> addHumanUser(UserAddCmd cmd) {
|
||||
Long userId = userAddExe.executeHumanUser(cmd);
|
||||
return SingleResponse.of(userId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -103,6 +103,6 @@ public interface UserServiceI {
|
|||
|
||||
List<UserImgDO> listBase64ByUrl(Map<String, Object> map);
|
||||
|
||||
SingleResponse addHumanUser(UserAddCmd cmd);
|
||||
SingleResponse<Long> addHumanUser(UserAddCmd cmd);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue