- 법인 탈퇴 시 민감정보 삭제 로직 추가
eapim-portal CI (from elink-portal-common) / build (push) Has been cancelled
eapim-portal CI (from elink-portal-common) / build (push) Has been cancelled
- CSS 수정: 폰트 크기 제거 및 스타일 변경 적용 - 예상완료일 요일 계산 로직 추가
This commit is contained in:
@@ -77,5 +77,21 @@ public class Approval implements Serializable, com.eactive.eai.data.Data {
|
||||
private LocalDateTime approvalDate;
|
||||
|
||||
@Column(name = "expect_end_date")
|
||||
private String expectEndDate; //예상완료일
|
||||
private String expectEndDate; //예상완료일 (yyyyMMdd)
|
||||
|
||||
/** 예상완료일(yyyyMMdd)의 한글 요일. 값이 없거나 형식이 맞지 않으면 빈 문자열. (예: "토") */
|
||||
@Transient
|
||||
public String getExpectEndDateDayOfWeek() {
|
||||
if (expectEndDate == null || expectEndDate.length() < 8) {
|
||||
return "";
|
||||
}
|
||||
try {
|
||||
return java.time.LocalDate
|
||||
.parse(expectEndDate.substring(0, 8), java.time.format.DateTimeFormatter.ofPattern("yyyyMMdd"))
|
||||
.getDayOfWeek()
|
||||
.getDisplayName(java.time.format.TextStyle.SHORT, java.util.Locale.KOREAN);
|
||||
} catch (Exception e) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,4 +104,22 @@ public class PortalOrg extends Auditable implements Serializable, com.eactive.ea
|
||||
this.orgPhoneNumber = PhoneNumberUtil.normalize(this.orgPhoneNumber);
|
||||
this.scPhoneNumber = PhoneNumberUtil.normalize(this.scPhoneNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* 법인 반려/삭제(탈퇴) 시 사업자등록번호·법인등록번호 등 민감/개인정보 필드를 제거한다.
|
||||
* orgName·orgStatus·approvalStatus 등 상태값은 호출 측에서 별도 설정한다.
|
||||
*/
|
||||
public void clearSensitiveDataOnRemoval() {
|
||||
this.corpRegNo = null;
|
||||
this.compRegNo = null;
|
||||
this.orgCode = null;
|
||||
this.compRegFile = null;
|
||||
this.ceoName = null;
|
||||
this.orgAddr = null;
|
||||
this.orgPhoneNumber = null;
|
||||
this.scPhoneNumber = null;
|
||||
this.orgSectors = null;
|
||||
this.orgIndustryType = null;
|
||||
this.serviceName = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user