|
|
@@ -162,7 +162,10 @@ public class UserAccountServiceImpl extends SuperService implements UserAccountS
|
|
|
temp.setIsUpdatedPsw(Boolean.FALSE);
|
|
|
userCountDao.save(temp);
|
|
|
} else {
|
|
|
-
|
|
|
+ // 编辑用户
|
|
|
+ BeanUtils.copyProperties(param, temp, "id", "loginName","userId", "userType", "loginType");
|
|
|
+ temp.setSpellCode(CommonUtil.getPinyin(param.getName()));
|
|
|
+ userCountDao.save(temp);
|
|
|
}
|
|
|
} else {
|
|
|
OrganizationUser organizationUser = organizationUserDao.findTopById(param.getId());
|
|
|
@@ -508,7 +511,7 @@ public class UserAccountServiceImpl extends SuperService implements UserAccountS
|
|
|
UserAccount userAccount = userCountDao.findTopByUserId(getCurrentUserId());
|
|
|
if (ObjectUtils.isNotEmpty(userAccount)) {
|
|
|
UserCountModel model1 = toModel(userAccount);
|
|
|
- BeanUtils.copyProperties(model1, model);
|
|
|
+ BeanUtils.copyProperties(model1, model, "oid");
|
|
|
}
|
|
|
return ResultContent.buildSuccess(model);
|
|
|
}
|