|
|
@@ -187,6 +187,27 @@ public class UserAccountServiceImpl extends SuperService implements UserAccountS
|
|
|
return ResultContent.buildSuccess();
|
|
|
}
|
|
|
|
|
|
+ public ResultContent<OrganizationUserModel> getOrgUserDetail(OrgUserDetailParam param) {
|
|
|
+ String userId = param.getUserId();
|
|
|
+ String oid = param.getOid();
|
|
|
+ if (StringUtils.isEmpty(oid)) {
|
|
|
+ oid = getCurrentOid();
|
|
|
+ }
|
|
|
+ Assert.hasText(oid, "oid不能为空");
|
|
|
+ Assert.hasText(userId, "userId不能为空");
|
|
|
+
|
|
|
+ Organization organization = organizationDao.findTopByOid(oid);
|
|
|
+ if (ObjectUtils.isEmpty(organization)) {
|
|
|
+ return ResultContent.buildFail(String.format(ResultMessage.DATA_NOT_EXIST, oid));
|
|
|
+ }
|
|
|
+ UserAccount temp = userCountDao.findTopByUserId(userId);
|
|
|
+ if (ObjectUtils.isEmpty(temp)) {
|
|
|
+ return ResultContent.buildFail(String.format(ResultMessage.DATA_NOT_EXIST, userId));
|
|
|
+ }
|
|
|
+ OrganizationUser organizationUser = organizationUserDao.findTopByOrganizationAndUser(organization, temp);
|
|
|
+ OrganizationUserModel model = toOrgUserModel(organizationUser);
|
|
|
+ return ResultContent.buildSuccess(model);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 删除机构用户
|