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