PortalUserManService: 삭제된 ORG_ID 처리 로직 추가 (개인사용자 및 법인 없음 선택 시)
This commit is contained in:
@@ -156,6 +156,11 @@ public class PortalUserManService extends BaseService {
|
|||||||
if (StringUtils.isNotBlank(portalUserUI.getOrgId())) {
|
if (StringUtils.isNotBlank(portalUserUI.getOrgId())) {
|
||||||
PortalOrg portalOrg = portalOrgService.getById(portalUserUI.getOrgId());
|
PortalOrg portalOrg = portalOrgService.getById(portalUserUI.getOrgId());
|
||||||
portalUser.setPortalOrg(portalOrg);
|
portalUser.setPortalOrg(portalOrg);
|
||||||
|
} else {
|
||||||
|
// 개인사용자이면서 법인을 "없음"으로 선택한 경우 ORG_ID 삭제
|
||||||
|
if (portalUserUI.getRoleCode() == PortalUserEnums.RoleCode.ROLE_USER) {
|
||||||
|
portalUser.setPortalOrg(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
portalUserService.save(portalUser);
|
portalUserService.save(portalUser);
|
||||||
|
|||||||
Reference in New Issue
Block a user