260416_03_DOC: 코드 양식 정규화
This commit is contained in:
@@ -10,10 +10,11 @@ import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
|
||||
@SpringBootApplication
|
||||
@ConfigurationPropertiesScan
|
||||
public class NcrcPairingApplication {
|
||||
@Generated
|
||||
private static final Logger log = LoggerFactory.getLogger(NcrcPairingApplication.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(NcrcPairingApplication.class, args);
|
||||
}
|
||||
@Generated
|
||||
private static final Logger log = LoggerFactory.getLogger(NcrcPairingApplication.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(NcrcPairingApplication.class, args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,36 +11,36 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class DatagoHolidayCache extends AbstractListCache<HolidayDto> {
|
||||
private final DatagoExtentionApiClient datagoExtentionApiClient;
|
||||
|
||||
public synchronized List<HolidayDto> getHolidays(Set<String> years) {
|
||||
Set<String> cachedYears = getList().stream()
|
||||
.map(this::extractYear)
|
||||
.collect(Collectors.toSet());
|
||||
private final DatagoExtentionApiClient datagoExtentionApiClient;
|
||||
|
||||
years.stream()
|
||||
.filter(year -> !cachedYears.contains(year))
|
||||
.sorted()
|
||||
.forEach(year -> addAll(datagoExtentionApiClient.getHoliDayList(year)));
|
||||
public synchronized List<HolidayDto> getHolidays(Set<String> years) {
|
||||
Set<String> cachedYears = getList().stream()
|
||||
.map(this::extractYear)
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
return getList().stream()
|
||||
.filter(holiday -> years.contains(extractYear(holiday)))
|
||||
.toList();
|
||||
}
|
||||
years.stream()
|
||||
.filter(year -> !cachedYears.contains(year))
|
||||
.sorted()
|
||||
.forEach(year -> addAll(datagoExtentionApiClient.getHoliDayList(year)));
|
||||
|
||||
protected List<HolidayDto> loadFromDb() {
|
||||
return List.of();
|
||||
}
|
||||
return getList().stream()
|
||||
.filter(holiday -> years.contains(extractYear(holiday)))
|
||||
.toList();
|
||||
}
|
||||
|
||||
private String extractYear(HolidayDto holidayDto) {
|
||||
String date = holidayDto.getHolidayDate();
|
||||
return date != null && date.length() >= 4 ? date.substring(0, 4) : "";
|
||||
}
|
||||
protected List<HolidayDto> loadFromDb() {
|
||||
return List.of();
|
||||
}
|
||||
|
||||
private String extractYear(HolidayDto holidayDto) {
|
||||
String date = holidayDto.getHolidayDate();
|
||||
return date != null && date.length() >= 4 ? date.substring(0, 4) : "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Generated
|
||||
public DatagoHolidayCache(final DatagoExtentionApiClient datagoExtentionApiClient) {
|
||||
this.datagoExtentionApiClient = datagoExtentionApiClient;
|
||||
}
|
||||
@Generated
|
||||
public DatagoHolidayCache(final DatagoExtentionApiClient datagoExtentionApiClient) {
|
||||
this.datagoExtentionApiClient = datagoExtentionApiClient;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
package com.kri.p6.ncrc.pairing.common.consts;
|
||||
|
||||
public final class PairingConstant {
|
||||
public static final String SHEET_MEMBER = "위원정보";
|
||||
public static final String SHEET_MUNICIPALITY = "지자체 정보";
|
||||
public static final String SHEET_CENTER = "센터정보";
|
||||
public static final String SHEET_MEMBER_REGION_CODE = "위원 지역 코드표";
|
||||
public static final String SHEET_CENTER_ADJACENT_REGION = "센터 인접지역표";
|
||||
public static final String SHEET_PREFERENCE_MATCH = "희망지역 매칭표";
|
||||
public static final String RESULT_SHEET_ASSIGNMENT = "배정결과";
|
||||
public static final String RESULT_SHEET_UNASSIGNED_CENTER = "미배정센터";
|
||||
public static final String RESULT_SHEET_UNUSED_MEMBER = "미사용위원";
|
||||
public static final String RESULT_SHEET_SUMMARY = "처리요약";
|
||||
public static final String RESULT_SHEET_AB_PAIR = "AB페어목록";
|
||||
public static final String RESULT_SHEET_CANDIDATE_SUMMARY = "후보요약";
|
||||
public static final String RESULT_SHEET_VALIDATION_ERROR = "검증오류";
|
||||
public static final String RESULT_SHEET_RULE_CHECK = "규칙위반검사";
|
||||
|
||||
private PairingConstant() {
|
||||
}
|
||||
public static final String SHEET_MEMBER = "위원정보";
|
||||
public static final String SHEET_MUNICIPALITY = "지자체 정보";
|
||||
public static final String SHEET_CENTER = "센터정보";
|
||||
public static final String SHEET_MEMBER_REGION_CODE = "위원 지역 코드표";
|
||||
public static final String SHEET_CENTER_ADJACENT_REGION = "센터 인접지역표";
|
||||
public static final String SHEET_PREFERENCE_MATCH = "희망지역 매칭표";
|
||||
public static final String RESULT_SHEET_ASSIGNMENT = "배정결과";
|
||||
public static final String RESULT_SHEET_UNASSIGNED_CENTER = "미배정센터";
|
||||
public static final String RESULT_SHEET_UNUSED_MEMBER = "미사용위원";
|
||||
public static final String RESULT_SHEET_SUMMARY = "처리요약";
|
||||
public static final String RESULT_SHEET_AB_PAIR = "AB페어목록";
|
||||
public static final String RESULT_SHEET_CANDIDATE_SUMMARY = "후보요약";
|
||||
public static final String RESULT_SHEET_VALIDATION_ERROR = "검증오류";
|
||||
public static final String RESULT_SHEET_RULE_CHECK = "규칙위반검사";
|
||||
|
||||
private PairingConstant() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.kri.p6.ncrc.pairing.common.enums;
|
||||
|
||||
public enum ExperienceType {
|
||||
EXPERIENCED,
|
||||
NEW;
|
||||
EXPERIENCED,
|
||||
NEW;
|
||||
|
||||
// $FF: synthetic method
|
||||
private static ExperienceType[] $values() {
|
||||
return new ExperienceType[]{EXPERIENCED, NEW};
|
||||
}
|
||||
// $FF: synthetic method
|
||||
private static ExperienceType[] $values() {
|
||||
return new ExperienceType[]{EXPERIENCED, NEW};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.kri.p6.ncrc.pairing.common.enums;
|
||||
|
||||
public enum Gender {
|
||||
FEMALE,
|
||||
MALE;
|
||||
FEMALE,
|
||||
MALE;
|
||||
|
||||
// $FF: synthetic method
|
||||
private static Gender[] $values() {
|
||||
return new Gender[]{FEMALE, MALE};
|
||||
}
|
||||
// $FF: synthetic method
|
||||
private static Gender[] $values() {
|
||||
return new Gender[]{FEMALE, MALE};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.kri.p6.ncrc.pairing.common.enums;
|
||||
|
||||
public enum MemberRole {
|
||||
FIELD,
|
||||
EXTERNAL;
|
||||
FIELD,
|
||||
EXTERNAL;
|
||||
|
||||
// $FF: synthetic method
|
||||
private static MemberRole[] $values() {
|
||||
return new MemberRole[]{FIELD, EXTERNAL};
|
||||
}
|
||||
// $FF: synthetic method
|
||||
private static MemberRole[] $values() {
|
||||
return new MemberRole[]{FIELD, EXTERNAL};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ import com.kri.common.feature.http.ExternalApiClient;
|
||||
import com.kri.common.feature.http.ExternalApiResponse;
|
||||
import com.kri.common.feature.web.BusinessException;
|
||||
import com.kri.p6.ncrc.pairing.common.external.datago.DatagoHolidayApiResponseDto.Body;
|
||||
import com.kri.p6.ncrc.pairing.common.external.datago.DatagoHolidayApiResponseDto.DatagoHolidayItemDto;
|
||||
import com.kri.p6.ncrc.pairing.common.external.datago.DatagoHolidayApiResponseDto.Items;
|
||||
import com.kri.p6.ncrc.pairing.common.external.datago.DatagoHolidayApiResponseDto.Response;
|
||||
import com.kri.p6.ncrc.pairing.common.external.datago.DatagoHolidayApiResponseDto.DatagoHolidayItemDto;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -18,34 +18,39 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class DatagoExtentionApiClient {
|
||||
private final ExternalApiClient externalApiClient = new ExternalApiClient();
|
||||
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||
@Value("${kri.auth.servicekey}")
|
||||
private String serviceKey;
|
||||
|
||||
public List<HolidayDto> getHoliDayList(String year) {
|
||||
String baseUrl = "http://apis.data.go.kr/B090041/openapi/service/SpcdeInfoService/getRestDeInfo";
|
||||
String url = String.format("%s?ServiceKey=%s&pageNo=1&_type=json&numOfRows=1000&solYear=%s", baseUrl, serviceKey, year);
|
||||
Map<String, String> headers = new HashMap();
|
||||
private final ExternalApiClient externalApiClient = new ExternalApiClient();
|
||||
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||
@Value("${kri.auth.servicekey}")
|
||||
private String serviceKey;
|
||||
|
||||
try {
|
||||
ExternalApiResponse response = externalApiClient.get(url, headers);
|
||||
public List<HolidayDto> getHoliDayList(String year) {
|
||||
String baseUrl = "http://apis.data.go.kr/B090041/openapi/service/SpcdeInfoService/getRestDeInfo";
|
||||
String url = String.format("%s?ServiceKey=%s&pageNo=1&_type=json&numOfRows=1000&solYear=%s",
|
||||
baseUrl, serviceKey, year);
|
||||
Map<String, String> headers = new HashMap();
|
||||
|
||||
if (response != null && response.getBody() != null && !response.getBody().isBlank()) {
|
||||
DatagoHolidayApiResponseDto apiResponse = objectMapper.readValue(response.getBody(), DatagoHolidayApiResponseDto.class);
|
||||
List<DatagoHolidayItemDto> items = Optional.ofNullable(apiResponse)
|
||||
.map(DatagoHolidayApiResponseDto::getResponse)
|
||||
.map(Response::getBody)
|
||||
.map(Body::getItems)
|
||||
.map(Items::getItem)
|
||||
.orElse(Collections.emptyList());
|
||||
try {
|
||||
ExternalApiResponse response = externalApiClient.get(url, headers);
|
||||
|
||||
return items.stream().map(item -> HolidayDto.of(item.getLocdate(), item.getDateName())).toList();
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw BusinessException.internalError("DATAGO_HOLIDAY_API_FAILED", "국공휴일 정보를 조회하는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
if (response != null && response.getBody() != null && !response.getBody().isBlank()) {
|
||||
DatagoHolidayApiResponseDto apiResponse = objectMapper.readValue(response.getBody(),
|
||||
DatagoHolidayApiResponseDto.class);
|
||||
List<DatagoHolidayItemDto> items = Optional.ofNullable(apiResponse)
|
||||
.map(DatagoHolidayApiResponseDto::getResponse)
|
||||
.map(Response::getBody)
|
||||
.map(Body::getItems)
|
||||
.map(Items::getItem)
|
||||
.orElse(Collections.emptyList());
|
||||
|
||||
return items.stream().map(item -> HolidayDto.of(item.getLocdate(), item.getDateName()))
|
||||
.toList();
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw BusinessException.internalError("DATAGO_HOLIDAY_API_FAILED",
|
||||
"국공휴일 정보를 조회하는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,210 +1,216 @@
|
||||
package com.kri.p6.ncrc.pairing.common.external.datago;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat.Feature;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat.Feature;
|
||||
import java.util.List;
|
||||
import lombok.Generated;
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
ignoreUnknown = true
|
||||
ignoreUnknown = true
|
||||
)
|
||||
public class DatagoHolidayApiResponseDto {
|
||||
private Response response;
|
||||
|
||||
@Generated
|
||||
public Response getResponse() {
|
||||
return this.response;
|
||||
}
|
||||
private Response response;
|
||||
|
||||
@Generated
|
||||
public void setResponse(final Response response) {
|
||||
this.response = response;
|
||||
}
|
||||
@Generated
|
||||
public Response getResponse() {
|
||||
return this.response;
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
@Generated
|
||||
public void setResponse(final Response response) {
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
ignoreUnknown = true
|
||||
)
|
||||
public static class Response {
|
||||
private Header header;
|
||||
private Body body;
|
||||
)
|
||||
public static class Response {
|
||||
|
||||
@Generated
|
||||
public Header getHeader() {
|
||||
return this.header;
|
||||
}
|
||||
private Header header;
|
||||
private Body body;
|
||||
|
||||
@Generated
|
||||
public Body getBody() {
|
||||
return this.body;
|
||||
}
|
||||
@Generated
|
||||
public Header getHeader() {
|
||||
return this.header;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setHeader(final Header header) {
|
||||
this.header = header;
|
||||
}
|
||||
@Generated
|
||||
public Body getBody() {
|
||||
return this.body;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setBody(final Body body) {
|
||||
this.body = body;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public void setHeader(final Header header) {
|
||||
this.header = header;
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
@Generated
|
||||
public void setBody(final Body body) {
|
||||
this.body = body;
|
||||
}
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
ignoreUnknown = true
|
||||
)
|
||||
public static class Header {
|
||||
private String resultCode;
|
||||
private String resultMsg;
|
||||
)
|
||||
public static class Header {
|
||||
|
||||
@Generated
|
||||
public String getResultCode() {
|
||||
return this.resultCode;
|
||||
}
|
||||
private String resultCode;
|
||||
private String resultMsg;
|
||||
|
||||
@Generated
|
||||
public String getResultMsg() {
|
||||
return this.resultMsg;
|
||||
}
|
||||
@Generated
|
||||
public String getResultCode() {
|
||||
return this.resultCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResultCode(final String resultCode) {
|
||||
this.resultCode = resultCode;
|
||||
}
|
||||
@Generated
|
||||
public String getResultMsg() {
|
||||
return this.resultMsg;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResultMsg(final String resultMsg) {
|
||||
this.resultMsg = resultMsg;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public void setResultCode(final String resultCode) {
|
||||
this.resultCode = resultCode;
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
@Generated
|
||||
public void setResultMsg(final String resultMsg) {
|
||||
this.resultMsg = resultMsg;
|
||||
}
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
ignoreUnknown = true
|
||||
)
|
||||
public static class Body {
|
||||
private Integer numOfRows;
|
||||
private Integer pageNo;
|
||||
private Integer totalCount;
|
||||
private Items items;
|
||||
)
|
||||
public static class Body {
|
||||
|
||||
@Generated
|
||||
public Integer getNumOfRows() {
|
||||
return this.numOfRows;
|
||||
}
|
||||
private Integer numOfRows;
|
||||
private Integer pageNo;
|
||||
private Integer totalCount;
|
||||
private Items items;
|
||||
|
||||
@Generated
|
||||
public Integer getPageNo() {
|
||||
return this.pageNo;
|
||||
}
|
||||
@Generated
|
||||
public Integer getNumOfRows() {
|
||||
return this.numOfRows;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Integer getTotalCount() {
|
||||
return this.totalCount;
|
||||
}
|
||||
@Generated
|
||||
public Integer getPageNo() {
|
||||
return this.pageNo;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Items getItems() {
|
||||
return this.items;
|
||||
}
|
||||
@Generated
|
||||
public Integer getTotalCount() {
|
||||
return this.totalCount;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setNumOfRows(final Integer numOfRows) {
|
||||
this.numOfRows = numOfRows;
|
||||
}
|
||||
@Generated
|
||||
public Items getItems() {
|
||||
return this.items;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setPageNo(final Integer pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
@Generated
|
||||
public void setNumOfRows(final Integer numOfRows) {
|
||||
this.numOfRows = numOfRows;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setTotalCount(final Integer totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
@Generated
|
||||
public void setPageNo(final Integer pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setItems(final Items items) {
|
||||
this.items = items;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public void setTotalCount(final Integer totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
@Generated
|
||||
public void setItems(final Items items) {
|
||||
this.items = items;
|
||||
}
|
||||
}
|
||||
|
||||
@JsonIgnoreProperties(
|
||||
ignoreUnknown = true
|
||||
)
|
||||
public static class Items {
|
||||
@JsonProperty("item")
|
||||
@JsonFormat(
|
||||
with = {Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY}
|
||||
)
|
||||
private List<DatagoHolidayItemDto> item;
|
||||
)
|
||||
public static class Items {
|
||||
|
||||
@Generated
|
||||
public List<DatagoHolidayItemDto> getItem() {
|
||||
return this.item;
|
||||
}
|
||||
@JsonProperty("item")
|
||||
@JsonFormat(
|
||||
with = {Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY}
|
||||
)
|
||||
private List<DatagoHolidayItemDto> item;
|
||||
|
||||
@Generated
|
||||
public void setItem(final List<DatagoHolidayItemDto> item) {
|
||||
this.item = item;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public List<DatagoHolidayItemDto> getItem() {
|
||||
return this.item;
|
||||
}
|
||||
|
||||
public static class DatagoHolidayItemDto {
|
||||
private String dateKind;
|
||||
private String dateName;
|
||||
private String isHoliday;
|
||||
private String locdate;
|
||||
private Integer seq;
|
||||
@Generated
|
||||
public void setItem(final List<DatagoHolidayItemDto> item) {
|
||||
this.item = item;
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDateKind() {
|
||||
return this.dateKind;
|
||||
}
|
||||
public static class DatagoHolidayItemDto {
|
||||
|
||||
@Generated
|
||||
public String getDateName() {
|
||||
return this.dateName;
|
||||
}
|
||||
private String dateKind;
|
||||
private String dateName;
|
||||
private String isHoliday;
|
||||
private String locdate;
|
||||
private Integer seq;
|
||||
|
||||
@Generated
|
||||
public String getIsHoliday() {
|
||||
return this.isHoliday;
|
||||
}
|
||||
@Generated
|
||||
public String getDateKind() {
|
||||
return this.dateKind;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getLocdate() {
|
||||
return this.locdate;
|
||||
}
|
||||
@Generated
|
||||
public String getDateName() {
|
||||
return this.dateName;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Integer getSeq() {
|
||||
return this.seq;
|
||||
}
|
||||
@Generated
|
||||
public String getIsHoliday() {
|
||||
return this.isHoliday;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDateKind(final String dateKind) {
|
||||
this.dateKind = dateKind;
|
||||
}
|
||||
@Generated
|
||||
public String getLocdate() {
|
||||
return this.locdate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDateName(final String dateName) {
|
||||
this.dateName = dateName;
|
||||
}
|
||||
@Generated
|
||||
public Integer getSeq() {
|
||||
return this.seq;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setIsHoliday(final String isHoliday) {
|
||||
this.isHoliday = isHoliday;
|
||||
}
|
||||
@Generated
|
||||
public void setDateKind(final String dateKind) {
|
||||
this.dateKind = dateKind;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setLocdate(final String locdate) {
|
||||
this.locdate = locdate;
|
||||
}
|
||||
@Generated
|
||||
public void setDateName(final String dateName) {
|
||||
this.dateName = dateName;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setSeq(final Integer seq) {
|
||||
this.seq = seq;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public void setIsHoliday(final String isHoliday) {
|
||||
this.isHoliday = isHoliday;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setLocdate(final String locdate) {
|
||||
this.locdate = locdate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setSeq(final Integer seq) {
|
||||
this.seq = seq;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
package com.kri.p6.ncrc.pairing.common.external.datago;
|
||||
|
||||
public class DatagoHolidayItemDto {
|
||||
}
|
||||
@@ -3,69 +3,72 @@ package com.kri.p6.ncrc.pairing.common.external.datago;
|
||||
import lombok.Generated;
|
||||
|
||||
public class HolidayDto {
|
||||
private String holidayDate;
|
||||
private String holidayName;
|
||||
|
||||
public static HolidayDto of(String holidayDate, String holidayName) {
|
||||
return builder().holidayDate(holidayDate).holidayName(holidayName).build();
|
||||
}
|
||||
private String holidayDate;
|
||||
private String holidayName;
|
||||
|
||||
@Generated
|
||||
public static HolidayDtoBuilder builder() {
|
||||
return new HolidayDtoBuilder();
|
||||
}
|
||||
public static HolidayDto of(String holidayDate, String holidayName) {
|
||||
return builder().holidayDate(holidayDate).holidayName(holidayName).build();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getHolidayDate() {
|
||||
return this.holidayDate;
|
||||
}
|
||||
@Generated
|
||||
public static HolidayDtoBuilder builder() {
|
||||
return new HolidayDtoBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getHolidayName() {
|
||||
return this.holidayName;
|
||||
}
|
||||
@Generated
|
||||
public String getHolidayDate() {
|
||||
return this.holidayDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDto() {
|
||||
}
|
||||
@Generated
|
||||
public String getHolidayName() {
|
||||
return this.holidayName;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDto(final String holidayDate, final String holidayName) {
|
||||
@Generated
|
||||
public HolidayDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDto(final String holidayDate, final String holidayName) {
|
||||
this.holidayDate = holidayDate;
|
||||
this.holidayName = holidayName;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class HolidayDtoBuilder {
|
||||
|
||||
@Generated
|
||||
private String holidayDate;
|
||||
@Generated
|
||||
private String holidayName;
|
||||
|
||||
@Generated
|
||||
HolidayDtoBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDtoBuilder holidayDate(final String holidayDate) {
|
||||
this.holidayDate = holidayDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDtoBuilder holidayName(final String holidayName) {
|
||||
this.holidayName = holidayName;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class HolidayDtoBuilder {
|
||||
@Generated
|
||||
private String holidayDate;
|
||||
@Generated
|
||||
private String holidayName;
|
||||
@Generated
|
||||
public HolidayDto build() {
|
||||
return new HolidayDto(this.holidayDate, this.holidayName);
|
||||
}
|
||||
|
||||
@Generated
|
||||
HolidayDtoBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDtoBuilder holidayDate(final String holidayDate) {
|
||||
this.holidayDate = holidayDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDtoBuilder holidayName(final String holidayName) {
|
||||
this.holidayName = holidayName;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public HolidayDto build() {
|
||||
return new HolidayDto(this.holidayDate, this.holidayName);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "HolidayDto.HolidayDtoBuilder(holidayDate=" + this.holidayDate + ", holidayName=" + this.holidayName + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "HolidayDto.HolidayDtoBuilder(holidayDate=" + this.holidayDate + ", holidayName="
|
||||
+ this.holidayName + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,14 +2,18 @@ package com.kri.p6.ncrc.pairing.common.util;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import lombok.Generated;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
|
||||
public final class ExcelResponseBuilder {
|
||||
public static ResponseEntity<byte[]> buildExcelResponse(String fileName, byte[] bytes) {
|
||||
String var10000 = URLEncoder.encode(fileName, StandardCharsets.UTF_8);
|
||||
String contentDisposition = "attachment; filename*=UTF-8''" + var10000.replace("+", "%20");
|
||||
return ((ResponseEntity.BodyBuilder)ResponseEntity.ok().header("Content-Disposition", new String[]{contentDisposition})).contentType(MediaType.parseMediaType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")).body(bytes);
|
||||
}
|
||||
|
||||
public static ResponseEntity<byte[]> buildExcelResponse(String fileName, byte[] bytes) {
|
||||
String var10000 = URLEncoder.encode(fileName, StandardCharsets.UTF_8);
|
||||
String contentDisposition = "attachment; filename*=UTF-8''" + var10000.replace("+", "%20");
|
||||
|
||||
return (ResponseEntity.ok()
|
||||
.header("Content-Disposition", contentDisposition)).contentType(
|
||||
MediaType.parseMediaType(
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")).body(bytes);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,9 @@ import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
public class OrToolsConfig {
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
Loader.loadNativeLibraries();
|
||||
}
|
||||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
Loader.loadNativeLibraries();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,256 +4,263 @@ import lombok.Generated;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@ConfigurationProperties(
|
||||
prefix = "pairing"
|
||||
prefix = "pairing"
|
||||
)
|
||||
public class PairingProperties {
|
||||
private Excel excel = new Excel();
|
||||
private Code code = new Code();
|
||||
private Rule rule = new Rule();
|
||||
private Preference preference = new Preference();
|
||||
private Objective objective = new Objective();
|
||||
private Solver solver = new Solver();
|
||||
|
||||
@Generated
|
||||
public Excel getExcel() {
|
||||
return this.excel;
|
||||
}
|
||||
private Excel excel = new Excel();
|
||||
private Code code = new Code();
|
||||
private Rule rule = new Rule();
|
||||
private Preference preference = new Preference();
|
||||
private Objective objective = new Objective();
|
||||
private Solver solver = new Solver();
|
||||
|
||||
@Generated
|
||||
public Code getCode() {
|
||||
return this.code;
|
||||
}
|
||||
@Generated
|
||||
public Excel getExcel() {
|
||||
return this.excel;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Rule getRule() {
|
||||
return this.rule;
|
||||
}
|
||||
@Generated
|
||||
public Code getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Preference getPreference() {
|
||||
return this.preference;
|
||||
}
|
||||
@Generated
|
||||
public Rule getRule() {
|
||||
return this.rule;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Objective getObjective() {
|
||||
return this.objective;
|
||||
}
|
||||
@Generated
|
||||
public Preference getPreference() {
|
||||
return this.preference;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Solver getSolver() {
|
||||
return this.solver;
|
||||
}
|
||||
@Generated
|
||||
public Objective getObjective() {
|
||||
return this.objective;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setExcel(final Excel excel) {
|
||||
this.excel = excel;
|
||||
}
|
||||
@Generated
|
||||
public Solver getSolver() {
|
||||
return this.solver;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setCode(final Code code) {
|
||||
this.code = code;
|
||||
}
|
||||
@Generated
|
||||
public void setExcel(final Excel excel) {
|
||||
this.excel = excel;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setRule(final Rule rule) {
|
||||
this.rule = rule;
|
||||
}
|
||||
@Generated
|
||||
public void setCode(final Code code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setPreference(final Preference preference) {
|
||||
this.preference = preference;
|
||||
}
|
||||
@Generated
|
||||
public void setRule(final Rule rule) {
|
||||
this.rule = rule;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setObjective(final Objective objective) {
|
||||
this.objective = objective;
|
||||
}
|
||||
@Generated
|
||||
public void setPreference(final Preference preference) {
|
||||
this.preference = preference;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setSolver(final Solver solver) {
|
||||
this.solver = solver;
|
||||
}
|
||||
@Generated
|
||||
public void setObjective(final Objective objective) {
|
||||
this.objective = objective;
|
||||
}
|
||||
|
||||
public static class Excel {
|
||||
private int headerRowIndex = 1;
|
||||
@Generated
|
||||
public void setSolver(final Solver solver) {
|
||||
this.solver = solver;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getHeaderRowIndex() {
|
||||
return this.headerRowIndex;
|
||||
}
|
||||
public static class Excel {
|
||||
|
||||
@Generated
|
||||
public void setHeaderRowIndex(final int headerRowIndex) {
|
||||
this.headerRowIndex = headerRowIndex;
|
||||
}
|
||||
}
|
||||
private int headerRowIndex = 1;
|
||||
|
||||
public static class Code {
|
||||
private int regionCodeLength = 2;
|
||||
private int residenceCodeLength = 5;
|
||||
private int residenceMatchPrefixLength = 3;
|
||||
private String anyRegionCode = "00";
|
||||
@Generated
|
||||
public int getHeaderRowIndex() {
|
||||
return this.headerRowIndex;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getRegionCodeLength() {
|
||||
return this.regionCodeLength;
|
||||
}
|
||||
@Generated
|
||||
public void setHeaderRowIndex(final int headerRowIndex) {
|
||||
this.headerRowIndex = headerRowIndex;
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getResidenceCodeLength() {
|
||||
return this.residenceCodeLength;
|
||||
}
|
||||
public static class Code {
|
||||
|
||||
@Generated
|
||||
public int getResidenceMatchPrefixLength() {
|
||||
return this.residenceMatchPrefixLength;
|
||||
}
|
||||
private int regionCodeLength = 2;
|
||||
private int residenceCodeLength = 5;
|
||||
private int residenceMatchPrefixLength = 3;
|
||||
private String anyRegionCode = "00";
|
||||
|
||||
@Generated
|
||||
public String getAnyRegionCode() {
|
||||
return this.anyRegionCode;
|
||||
}
|
||||
@Generated
|
||||
public int getRegionCodeLength() {
|
||||
return this.regionCodeLength;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setRegionCodeLength(final int regionCodeLength) {
|
||||
this.regionCodeLength = regionCodeLength;
|
||||
}
|
||||
@Generated
|
||||
public int getResidenceCodeLength() {
|
||||
return this.residenceCodeLength;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResidenceCodeLength(final int residenceCodeLength) {
|
||||
this.residenceCodeLength = residenceCodeLength;
|
||||
}
|
||||
@Generated
|
||||
public int getResidenceMatchPrefixLength() {
|
||||
return this.residenceMatchPrefixLength;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResidenceMatchPrefixLength(final int residenceMatchPrefixLength) {
|
||||
this.residenceMatchPrefixLength = residenceMatchPrefixLength;
|
||||
}
|
||||
@Generated
|
||||
public String getAnyRegionCode() {
|
||||
return this.anyRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAnyRegionCode(final String anyRegionCode) {
|
||||
this.anyRegionCode = anyRegionCode;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public void setRegionCodeLength(final int regionCodeLength) {
|
||||
this.regionCodeLength = regionCodeLength;
|
||||
}
|
||||
|
||||
public static class Rule {
|
||||
private int maxCentersPerPairPerDay = 3;
|
||||
private int maxCounterpartsPerMember = 2;
|
||||
@Generated
|
||||
public void setResidenceCodeLength(final int residenceCodeLength) {
|
||||
this.residenceCodeLength = residenceCodeLength;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getMaxCentersPerPairPerDay() {
|
||||
return this.maxCentersPerPairPerDay;
|
||||
}
|
||||
@Generated
|
||||
public void setResidenceMatchPrefixLength(final int residenceMatchPrefixLength) {
|
||||
this.residenceMatchPrefixLength = residenceMatchPrefixLength;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getMaxCounterpartsPerMember() {
|
||||
return this.maxCounterpartsPerMember;
|
||||
}
|
||||
@Generated
|
||||
public void setAnyRegionCode(final String anyRegionCode) {
|
||||
this.anyRegionCode = anyRegionCode;
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setMaxCentersPerPairPerDay(final int maxCentersPerPairPerDay) {
|
||||
this.maxCentersPerPairPerDay = maxCentersPerPairPerDay;
|
||||
}
|
||||
public static class Rule {
|
||||
|
||||
@Generated
|
||||
public void setMaxCounterpartsPerMember(final int maxCounterpartsPerMember) {
|
||||
this.maxCounterpartsPerMember = maxCounterpartsPerMember;
|
||||
}
|
||||
}
|
||||
private int maxCentersPerPairPerDay = 3;
|
||||
private int maxCounterpartsPerMember = 2;
|
||||
|
||||
public static class Preference {
|
||||
private int anywhereRank = 0;
|
||||
private int ignoredRank = 99;
|
||||
@Generated
|
||||
public int getMaxCentersPerPairPerDay() {
|
||||
return this.maxCentersPerPairPerDay;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getAnywhereRank() {
|
||||
return this.anywhereRank;
|
||||
}
|
||||
@Generated
|
||||
public int getMaxCounterpartsPerMember() {
|
||||
return this.maxCounterpartsPerMember;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getIgnoredRank() {
|
||||
return this.ignoredRank;
|
||||
}
|
||||
@Generated
|
||||
public void setMaxCentersPerPairPerDay(final int maxCentersPerPairPerDay) {
|
||||
this.maxCentersPerPairPerDay = maxCentersPerPairPerDay;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAnywhereRank(final int anywhereRank) {
|
||||
this.anywhereRank = anywhereRank;
|
||||
}
|
||||
@Generated
|
||||
public void setMaxCounterpartsPerMember(final int maxCounterpartsPerMember) {
|
||||
this.maxCounterpartsPerMember = maxCounterpartsPerMember;
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setIgnoredRank(final int ignoredRank) {
|
||||
this.ignoredRank = ignoredRank;
|
||||
}
|
||||
}
|
||||
public static class Preference {
|
||||
|
||||
public static class Objective {
|
||||
private long assignmentWeight = 1000000L;
|
||||
private long preferenceBaseWeight = 10000L;
|
||||
private long preferenceRankPenalty = 100L;
|
||||
private long residenceMatchWeight = 1000L;
|
||||
private int anywhereRank = 0;
|
||||
private int ignoredRank = 99;
|
||||
|
||||
@Generated
|
||||
public long getAssignmentWeight() {
|
||||
return this.assignmentWeight;
|
||||
}
|
||||
@Generated
|
||||
public int getAnywhereRank() {
|
||||
return this.anywhereRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public long getPreferenceBaseWeight() {
|
||||
return this.preferenceBaseWeight;
|
||||
}
|
||||
@Generated
|
||||
public int getIgnoredRank() {
|
||||
return this.ignoredRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public long getPreferenceRankPenalty() {
|
||||
return this.preferenceRankPenalty;
|
||||
}
|
||||
@Generated
|
||||
public void setAnywhereRank(final int anywhereRank) {
|
||||
this.anywhereRank = anywhereRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public long getResidenceMatchWeight() {
|
||||
return this.residenceMatchWeight;
|
||||
}
|
||||
@Generated
|
||||
public void setIgnoredRank(final int ignoredRank) {
|
||||
this.ignoredRank = ignoredRank;
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAssignmentWeight(final long assignmentWeight) {
|
||||
this.assignmentWeight = assignmentWeight;
|
||||
}
|
||||
public static class Objective {
|
||||
|
||||
@Generated
|
||||
public void setPreferenceBaseWeight(final long preferenceBaseWeight) {
|
||||
this.preferenceBaseWeight = preferenceBaseWeight;
|
||||
}
|
||||
private long assignmentWeight = 1000000L;
|
||||
private long preferenceBaseWeight = 10000L;
|
||||
private long preferenceRankPenalty = 100L;
|
||||
private long residenceMatchWeight = 1000L;
|
||||
|
||||
@Generated
|
||||
public void setPreferenceRankPenalty(final long preferenceRankPenalty) {
|
||||
this.preferenceRankPenalty = preferenceRankPenalty;
|
||||
}
|
||||
@Generated
|
||||
public long getAssignmentWeight() {
|
||||
return this.assignmentWeight;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResidenceMatchWeight(final long residenceMatchWeight) {
|
||||
this.residenceMatchWeight = residenceMatchWeight;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public long getPreferenceBaseWeight() {
|
||||
return this.preferenceBaseWeight;
|
||||
}
|
||||
|
||||
public static class Solver {
|
||||
private double maxTimeSeconds = (double)30.0F;
|
||||
private int numSearchWorkers = Math.max(1, Runtime.getRuntime().availableProcessors() - 1);
|
||||
@Generated
|
||||
public long getPreferenceRankPenalty() {
|
||||
return this.preferenceRankPenalty;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public double getMaxTimeSeconds() {
|
||||
return this.maxTimeSeconds;
|
||||
}
|
||||
@Generated
|
||||
public long getResidenceMatchWeight() {
|
||||
return this.residenceMatchWeight;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getNumSearchWorkers() {
|
||||
return this.numSearchWorkers;
|
||||
}
|
||||
@Generated
|
||||
public void setAssignmentWeight(final long assignmentWeight) {
|
||||
this.assignmentWeight = assignmentWeight;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setMaxTimeSeconds(final double maxTimeSeconds) {
|
||||
this.maxTimeSeconds = maxTimeSeconds;
|
||||
}
|
||||
@Generated
|
||||
public void setPreferenceBaseWeight(final long preferenceBaseWeight) {
|
||||
this.preferenceBaseWeight = preferenceBaseWeight;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setNumSearchWorkers(final int numSearchWorkers) {
|
||||
this.numSearchWorkers = numSearchWorkers;
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public void setPreferenceRankPenalty(final long preferenceRankPenalty) {
|
||||
this.preferenceRankPenalty = preferenceRankPenalty;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResidenceMatchWeight(final long residenceMatchWeight) {
|
||||
this.residenceMatchWeight = residenceMatchWeight;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Solver {
|
||||
|
||||
private double maxTimeSeconds = (double) 30.0F;
|
||||
private int numSearchWorkers = Math.max(1, Runtime.getRuntime().availableProcessors() - 1);
|
||||
|
||||
@Generated
|
||||
public double getMaxTimeSeconds() {
|
||||
return this.maxTimeSeconds;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getNumSearchWorkers() {
|
||||
return this.numSearchWorkers;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setMaxTimeSeconds(final double maxTimeSeconds) {
|
||||
this.maxTimeSeconds = maxTimeSeconds;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setNumSearchWorkers(final int numSearchWorkers) {
|
||||
this.numSearchWorkers = numSearchWorkers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,12 +6,10 @@ import com.kri.p6.ncrc.pairing.common.external.datago.HolidayDto;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@@ -26,7 +24,7 @@ public class CacheAdminController {
|
||||
@Operation(summary = "국공휴일 캐시 조회")
|
||||
@GetMapping("/holiday/{year}")
|
||||
public List<HolidayDto> getHolidays(
|
||||
@PathVariable("year") String year
|
||||
@PathVariable String year
|
||||
) {
|
||||
if (year.length() != 4) {
|
||||
throw BusinessException.badRequest("INVALID_YEAR_FORMAT", "년도 형식이 올바르지 않습니다.");
|
||||
|
||||
@@ -19,36 +19,39 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
@RestController
|
||||
@RequestMapping({"/api/v1/pairing"})
|
||||
@Tag(
|
||||
name = "Pairing",
|
||||
description = "위원/센터 매칭 API"
|
||||
name = "Pairing",
|
||||
description = "위원/센터 매칭 API"
|
||||
)
|
||||
public class PairingController {
|
||||
private final PairingService pairingService;
|
||||
private final PairingExcelService pairingExcelService;
|
||||
|
||||
@PostMapping({"/run"})
|
||||
@Operation(
|
||||
private final PairingService pairingService;
|
||||
private final PairingExcelService pairingExcelService;
|
||||
|
||||
@PostMapping({"/run"})
|
||||
@Operation(
|
||||
summary = "업로드된 파일로 위원과 센터를 매칭"
|
||||
)
|
||||
public ResponseEntity<byte[]> pairingMemberByCenter(@Parameter(description = "업로드 파일",required = true) @RequestPart("file") MultipartFile file) {
|
||||
String fileName = file.getOriginalFilename() == null ? "pairing" : file.getOriginalFilename();
|
||||
)
|
||||
public ResponseEntity<byte[]> pairingMemberByCenter(
|
||||
@Parameter(description = "업로드 파일", required = true) @RequestPart("file") MultipartFile file) {
|
||||
String fileName = file.getOriginalFilename() == null ? "pairing" : file.getOriginalFilename();
|
||||
|
||||
try {
|
||||
byte[] bytes = this.pairingService.pairingMemberByCenter(file);
|
||||
return ExcelResponseBuilder.buildExcelResponse(fileName + " 결과.xlsx", bytes);
|
||||
} catch (BusinessException e) {
|
||||
if (e.getStatus() != HttpStatus.BAD_REQUEST) {
|
||||
throw e;
|
||||
} else {
|
||||
byte[] bytes = this.pairingExcelService.writeValidationError(e.getCode(), e.getMessage());
|
||||
return ExcelResponseBuilder.buildExcelResponse(fileName + " 오류.xlsx", bytes);
|
||||
}
|
||||
try {
|
||||
byte[] bytes = this.pairingService.pairingMemberByCenter(file);
|
||||
return ExcelResponseBuilder.buildExcelResponse(fileName + " 결과.xlsx", bytes);
|
||||
} catch (BusinessException e) {
|
||||
if (e.getStatus() != HttpStatus.BAD_REQUEST) {
|
||||
throw e;
|
||||
} else {
|
||||
byte[] bytes = this.pairingExcelService.writeValidationError(e.getCode(), e.getMessage());
|
||||
return ExcelResponseBuilder.buildExcelResponse(fileName + " 오류.xlsx", bytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingController(final PairingService pairingService, final PairingExcelService pairingExcelService) {
|
||||
this.pairingService = pairingService;
|
||||
this.pairingExcelService = pairingExcelService;
|
||||
}
|
||||
@Generated
|
||||
public PairingController(final PairingService pairingService,
|
||||
final PairingExcelService pairingExcelService) {
|
||||
this.pairingService = pairingService;
|
||||
this.pairingExcelService = pairingExcelService;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,94 +4,97 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class CenterAdjacentRegionExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "권역",
|
||||
order = 0,
|
||||
width = 12
|
||||
)
|
||||
private String dispatchRegion;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String dispatchRegion;
|
||||
@ExcelColumn(
|
||||
header = "인접지역 분류",
|
||||
order = 1,
|
||||
width = 15
|
||||
)
|
||||
private String adjacentRegionClassification;
|
||||
)
|
||||
private String adjacentRegionClassification;
|
||||
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
}
|
||||
@Generated
|
||||
public void setDispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
}
|
||||
@Generated
|
||||
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CenterAdjacentRegionExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CenterAdjacentRegionExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
CenterAdjacentRegionExcelDto other = (CenterAdjacentRegionExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
CenterAdjacentRegionExcelDto other = (CenterAdjacentRegionExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$dispatchRegion = this.getDispatchRegion();
|
||||
Object other$dispatchRegion = other.getDispatchRegion();
|
||||
if (this$dispatchRegion == null) {
|
||||
if (other$dispatchRegion != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$dispatchRegion = this.getDispatchRegion();
|
||||
Object other$dispatchRegion = other.getDispatchRegion();
|
||||
if (this$dispatchRegion == null) {
|
||||
if (other$dispatchRegion != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$dispatchRegion.equals(other$dispatchRegion)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$dispatchRegion.equals(other$dispatchRegion)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
||||
if (this$adjacentRegionClassification == null) {
|
||||
if (other$adjacentRegionClassification != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
||||
return false;
|
||||
}
|
||||
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
||||
if (this$adjacentRegionClassification == null) {
|
||||
if (other$adjacentRegionClassification != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CenterAdjacentRegionExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CenterAdjacentRegionExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $dispatchRegion = this.getDispatchRegion();
|
||||
result = result * 59 + ($dispatchRegion == null ? 43 : $dispatchRegion.hashCode());
|
||||
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
result = result * 59 + ($adjacentRegionClassification == null ? 43 : $adjacentRegionClassification.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $dispatchRegion = this.getDispatchRegion();
|
||||
result = result * 59 + ($dispatchRegion == null ? 43 : $dispatchRegion.hashCode());
|
||||
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
result = result * 59 + ($adjacentRegionClassification == null ? 43
|
||||
: $adjacentRegionClassification.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getDispatchRegion();
|
||||
return "CenterAdjacentRegionExcelDto(dispatchRegion=" + var10000 + ", adjacentRegionClassification=" + this.getAdjacentRegionClassification() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getDispatchRegion();
|
||||
return "CenterAdjacentRegionExcelDto(dispatchRegion=" + var10000
|
||||
+ ", adjacentRegionClassification=" + this.getAdjacentRegionClassification() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,234 +4,240 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class CenterExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "id",
|
||||
order = 0,
|
||||
width = 15
|
||||
)
|
||||
private String id;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String id;
|
||||
@ExcelColumn(
|
||||
header = "지자체 id",
|
||||
order = 1,
|
||||
width = 15
|
||||
)
|
||||
private String municipalityId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String municipalityId;
|
||||
@ExcelColumn(
|
||||
header = "여성 위원만",
|
||||
order = 2,
|
||||
width = 12
|
||||
)
|
||||
private String womenOnly;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String womenOnly;
|
||||
@ExcelColumn(
|
||||
header = "인접지역 분류",
|
||||
order = 3,
|
||||
width = 15
|
||||
)
|
||||
private String adjacentRegionClassification;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String adjacentRegionClassification;
|
||||
@ExcelColumn(
|
||||
header = "진행 시작일",
|
||||
order = 4,
|
||||
width = 15
|
||||
)
|
||||
private String availableStartDate;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String availableStartDate;
|
||||
@ExcelColumn(
|
||||
header = "진행 종료일",
|
||||
order = 5,
|
||||
width = 15
|
||||
)
|
||||
private String availableEndDate;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String availableEndDate;
|
||||
@ExcelColumn(
|
||||
header = "진행 불가 일자",
|
||||
order = 6,
|
||||
width = 35
|
||||
)
|
||||
private String unavailableDates;
|
||||
)
|
||||
private String unavailableDates;
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getWomenOnly() {
|
||||
return this.womenOnly;
|
||||
}
|
||||
@Generated
|
||||
public String getWomenOnly() {
|
||||
return this.womenOnly;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
@Generated
|
||||
public String getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
@Generated
|
||||
public String getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
@Generated
|
||||
public String getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
@Generated
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setMunicipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
}
|
||||
@Generated
|
||||
public void setMunicipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setWomenOnly(final String womenOnly) {
|
||||
this.womenOnly = womenOnly;
|
||||
}
|
||||
@Generated
|
||||
public void setWomenOnly(final String womenOnly) {
|
||||
this.womenOnly = womenOnly;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
}
|
||||
@Generated
|
||||
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAvailableStartDate(final String availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
}
|
||||
@Generated
|
||||
public void setAvailableStartDate(final String availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAvailableEndDate(final String availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
}
|
||||
@Generated
|
||||
public void setAvailableEndDate(final String availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setUnavailableDates(final String unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
@Generated
|
||||
public void setUnavailableDates(final String unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CenterExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CenterExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
CenterExcelDto other = (CenterExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
CenterExcelDto other = (CenterExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$municipalityId = this.getMunicipalityId();
|
||||
Object other$municipalityId = other.getMunicipalityId();
|
||||
if (this$municipalityId == null) {
|
||||
if (other$municipalityId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
||||
return false;
|
||||
}
|
||||
Object this$municipalityId = this.getMunicipalityId();
|
||||
Object other$municipalityId = other.getMunicipalityId();
|
||||
if (this$municipalityId == null) {
|
||||
if (other$municipalityId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$womenOnly = this.getWomenOnly();
|
||||
Object other$womenOnly = other.getWomenOnly();
|
||||
if (this$womenOnly == null) {
|
||||
if (other$womenOnly != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$womenOnly.equals(other$womenOnly)) {
|
||||
return false;
|
||||
}
|
||||
Object this$womenOnly = this.getWomenOnly();
|
||||
Object other$womenOnly = other.getWomenOnly();
|
||||
if (this$womenOnly == null) {
|
||||
if (other$womenOnly != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$womenOnly.equals(other$womenOnly)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
||||
if (this$adjacentRegionClassification == null) {
|
||||
if (other$adjacentRegionClassification != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
||||
return false;
|
||||
}
|
||||
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
||||
if (this$adjacentRegionClassification == null) {
|
||||
if (other$adjacentRegionClassification != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$availableStartDate = this.getAvailableStartDate();
|
||||
Object other$availableStartDate = other.getAvailableStartDate();
|
||||
if (this$availableStartDate == null) {
|
||||
if (other$availableStartDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||
return false;
|
||||
}
|
||||
Object this$availableStartDate = this.getAvailableStartDate();
|
||||
Object other$availableStartDate = other.getAvailableStartDate();
|
||||
if (this$availableStartDate == null) {
|
||||
if (other$availableStartDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$availableEndDate = this.getAvailableEndDate();
|
||||
Object other$availableEndDate = other.getAvailableEndDate();
|
||||
if (this$availableEndDate == null) {
|
||||
if (other$availableEndDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||
return false;
|
||||
}
|
||||
Object this$availableEndDate = this.getAvailableEndDate();
|
||||
Object other$availableEndDate = other.getAvailableEndDate();
|
||||
if (this$availableEndDate == null) {
|
||||
if (other$availableEndDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$unavailableDates = this.getUnavailableDates();
|
||||
Object other$unavailableDates = other.getUnavailableDates();
|
||||
if (this$unavailableDates == null) {
|
||||
if (other$unavailableDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||
return false;
|
||||
}
|
||||
Object this$unavailableDates = this.getUnavailableDates();
|
||||
Object other$unavailableDates = other.getUnavailableDates();
|
||||
if (this$unavailableDates == null) {
|
||||
if (other$unavailableDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CenterExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CenterExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $municipalityId = this.getMunicipalityId();
|
||||
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
||||
Object $womenOnly = this.getWomenOnly();
|
||||
result = result * 59 + ($womenOnly == null ? 43 : $womenOnly.hashCode());
|
||||
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
result = result * 59 + ($adjacentRegionClassification == null ? 43 : $adjacentRegionClassification.hashCode());
|
||||
Object $availableStartDate = this.getAvailableStartDate();
|
||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||
Object $availableEndDate = this.getAvailableEndDate();
|
||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||
Object $unavailableDates = this.getUnavailableDates();
|
||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $municipalityId = this.getMunicipalityId();
|
||||
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
||||
Object $womenOnly = this.getWomenOnly();
|
||||
result = result * 59 + ($womenOnly == null ? 43 : $womenOnly.hashCode());
|
||||
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||
result = result * 59 + ($adjacentRegionClassification == null ? 43
|
||||
: $adjacentRegionClassification.hashCode());
|
||||
Object $availableStartDate = this.getAvailableStartDate();
|
||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||
Object $availableEndDate = this.getAvailableEndDate();
|
||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||
Object $unavailableDates = this.getUnavailableDates();
|
||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getId();
|
||||
return "CenterExcelDto(id=" + var10000 + ", municipalityId=" + this.getMunicipalityId() + ", womenOnly=" + this.getWomenOnly() + ", adjacentRegionClassification=" + this.getAdjacentRegionClassification() + ", availableStartDate=" + this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate() + ", unavailableDates=" + this.getUnavailableDates() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getId();
|
||||
return "CenterExcelDto(id=" + var10000 + ", municipalityId=" + this.getMunicipalityId()
|
||||
+ ", womenOnly=" + this.getWomenOnly() + ", adjacentRegionClassification="
|
||||
+ this.getAdjacentRegionClassification() + ", availableStartDate="
|
||||
+ this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate()
|
||||
+ ", unavailableDates=" + this.getUnavailableDates() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,430 +4,439 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class MemberExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "id",
|
||||
order = 0,
|
||||
width = 15
|
||||
)
|
||||
private String id;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String id;
|
||||
@ExcelColumn(
|
||||
header = "성별",
|
||||
order = 1,
|
||||
width = 10
|
||||
)
|
||||
private String gender;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String gender;
|
||||
@ExcelColumn(
|
||||
header = "경력여부",
|
||||
order = 2,
|
||||
width = 12
|
||||
)
|
||||
private String experience;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String experience;
|
||||
@ExcelColumn(
|
||||
header = "현장/외부 구분",
|
||||
order = 3,
|
||||
width = 18
|
||||
)
|
||||
private String role;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String role;
|
||||
@ExcelColumn(
|
||||
header = "진행 시작일",
|
||||
order = 4,
|
||||
width = 15
|
||||
)
|
||||
private String availableStartDate;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String availableStartDate;
|
||||
@ExcelColumn(
|
||||
header = "진행 종료일",
|
||||
order = 5,
|
||||
width = 15
|
||||
)
|
||||
private String availableEndDate;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String availableEndDate;
|
||||
@ExcelColumn(
|
||||
header = "진행 불가 일자",
|
||||
order = 6,
|
||||
width = 35
|
||||
)
|
||||
private String unavailableDates;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String unavailableDates;
|
||||
@ExcelColumn(
|
||||
header = "활동지역",
|
||||
order = 7,
|
||||
width = 12
|
||||
)
|
||||
private String activityRegion;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String activityRegion;
|
||||
@ExcelColumn(
|
||||
header = "23년 진행 센터",
|
||||
order = 8,
|
||||
width = 25
|
||||
)
|
||||
private String historyCenters;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String historyCenters;
|
||||
@ExcelColumn(
|
||||
header = "거주지",
|
||||
order = 9,
|
||||
width = 12
|
||||
)
|
||||
private String residenceCode;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String residenceCode;
|
||||
@ExcelColumn(
|
||||
header = "선호 지역1",
|
||||
order = 10,
|
||||
width = 12
|
||||
)
|
||||
private String preferenceRegion1;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String preferenceRegion1;
|
||||
@ExcelColumn(
|
||||
header = "선호 지역2",
|
||||
order = 11,
|
||||
width = 12
|
||||
)
|
||||
private String preferenceRegion2;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String preferenceRegion2;
|
||||
@ExcelColumn(
|
||||
header = "선호 지역3",
|
||||
order = 12,
|
||||
width = 12
|
||||
)
|
||||
private String preferenceRegion3;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String preferenceRegion3;
|
||||
@ExcelColumn(
|
||||
header = "선호 지역4",
|
||||
order = 13,
|
||||
width = 12
|
||||
)
|
||||
private String preferenceRegion4;
|
||||
)
|
||||
private String preferenceRegion4;
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
@Generated
|
||||
public String getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExperience() {
|
||||
return this.experience;
|
||||
}
|
||||
@Generated
|
||||
public String getExperience() {
|
||||
return this.experience;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getRole() {
|
||||
return this.role;
|
||||
}
|
||||
@Generated
|
||||
public String getRole() {
|
||||
return this.role;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
@Generated
|
||||
public String getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
@Generated
|
||||
public String getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
@Generated
|
||||
public String getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getActivityRegion() {
|
||||
return this.activityRegion;
|
||||
}
|
||||
@Generated
|
||||
public String getActivityRegion() {
|
||||
return this.activityRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getHistoryCenters() {
|
||||
return this.historyCenters;
|
||||
}
|
||||
@Generated
|
||||
public String getHistoryCenters() {
|
||||
return this.historyCenters;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getResidenceCode() {
|
||||
return this.residenceCode;
|
||||
}
|
||||
@Generated
|
||||
public String getResidenceCode() {
|
||||
return this.residenceCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getPreferenceRegion1() {
|
||||
return this.preferenceRegion1;
|
||||
}
|
||||
@Generated
|
||||
public String getPreferenceRegion1() {
|
||||
return this.preferenceRegion1;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getPreferenceRegion2() {
|
||||
return this.preferenceRegion2;
|
||||
}
|
||||
@Generated
|
||||
public String getPreferenceRegion2() {
|
||||
return this.preferenceRegion2;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getPreferenceRegion3() {
|
||||
return this.preferenceRegion3;
|
||||
}
|
||||
@Generated
|
||||
public String getPreferenceRegion3() {
|
||||
return this.preferenceRegion3;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getPreferenceRegion4() {
|
||||
return this.preferenceRegion4;
|
||||
}
|
||||
@Generated
|
||||
public String getPreferenceRegion4() {
|
||||
return this.preferenceRegion4;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
@Generated
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setGender(final String gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
@Generated
|
||||
public void setGender(final String gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setExperience(final String experience) {
|
||||
this.experience = experience;
|
||||
}
|
||||
@Generated
|
||||
public void setExperience(final String experience) {
|
||||
this.experience = experience;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setRole(final String role) {
|
||||
this.role = role;
|
||||
}
|
||||
@Generated
|
||||
public void setRole(final String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAvailableStartDate(final String availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
}
|
||||
@Generated
|
||||
public void setAvailableStartDate(final String availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAvailableEndDate(final String availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
}
|
||||
@Generated
|
||||
public void setAvailableEndDate(final String availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setUnavailableDates(final String unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
@Generated
|
||||
public void setUnavailableDates(final String unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setActivityRegion(final String activityRegion) {
|
||||
this.activityRegion = activityRegion;
|
||||
}
|
||||
@Generated
|
||||
public void setActivityRegion(final String activityRegion) {
|
||||
this.activityRegion = activityRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setHistoryCenters(final String historyCenters) {
|
||||
this.historyCenters = historyCenters;
|
||||
}
|
||||
@Generated
|
||||
public void setHistoryCenters(final String historyCenters) {
|
||||
this.historyCenters = historyCenters;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResidenceCode(final String residenceCode) {
|
||||
this.residenceCode = residenceCode;
|
||||
}
|
||||
@Generated
|
||||
public void setResidenceCode(final String residenceCode) {
|
||||
this.residenceCode = residenceCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setPreferenceRegion1(final String preferenceRegion1) {
|
||||
this.preferenceRegion1 = preferenceRegion1;
|
||||
}
|
||||
@Generated
|
||||
public void setPreferenceRegion1(final String preferenceRegion1) {
|
||||
this.preferenceRegion1 = preferenceRegion1;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setPreferenceRegion2(final String preferenceRegion2) {
|
||||
this.preferenceRegion2 = preferenceRegion2;
|
||||
}
|
||||
@Generated
|
||||
public void setPreferenceRegion2(final String preferenceRegion2) {
|
||||
this.preferenceRegion2 = preferenceRegion2;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setPreferenceRegion3(final String preferenceRegion3) {
|
||||
this.preferenceRegion3 = preferenceRegion3;
|
||||
}
|
||||
@Generated
|
||||
public void setPreferenceRegion3(final String preferenceRegion3) {
|
||||
this.preferenceRegion3 = preferenceRegion3;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setPreferenceRegion4(final String preferenceRegion4) {
|
||||
this.preferenceRegion4 = preferenceRegion4;
|
||||
}
|
||||
@Generated
|
||||
public void setPreferenceRegion4(final String preferenceRegion4) {
|
||||
this.preferenceRegion4 = preferenceRegion4;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof MemberExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof MemberExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
MemberExcelDto other = (MemberExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
MemberExcelDto other = (MemberExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$gender = this.getGender();
|
||||
Object other$gender = other.getGender();
|
||||
if (this$gender == null) {
|
||||
if (other$gender != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$gender.equals(other$gender)) {
|
||||
return false;
|
||||
}
|
||||
Object this$gender = this.getGender();
|
||||
Object other$gender = other.getGender();
|
||||
if (this$gender == null) {
|
||||
if (other$gender != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$gender.equals(other$gender)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$experience = this.getExperience();
|
||||
Object other$experience = other.getExperience();
|
||||
if (this$experience == null) {
|
||||
if (other$experience != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$experience.equals(other$experience)) {
|
||||
return false;
|
||||
}
|
||||
Object this$experience = this.getExperience();
|
||||
Object other$experience = other.getExperience();
|
||||
if (this$experience == null) {
|
||||
if (other$experience != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$experience.equals(other$experience)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$role = this.getRole();
|
||||
Object other$role = other.getRole();
|
||||
if (this$role == null) {
|
||||
if (other$role != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$role.equals(other$role)) {
|
||||
return false;
|
||||
}
|
||||
Object this$role = this.getRole();
|
||||
Object other$role = other.getRole();
|
||||
if (this$role == null) {
|
||||
if (other$role != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$role.equals(other$role)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$availableStartDate = this.getAvailableStartDate();
|
||||
Object other$availableStartDate = other.getAvailableStartDate();
|
||||
if (this$availableStartDate == null) {
|
||||
if (other$availableStartDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||
return false;
|
||||
}
|
||||
Object this$availableStartDate = this.getAvailableStartDate();
|
||||
Object other$availableStartDate = other.getAvailableStartDate();
|
||||
if (this$availableStartDate == null) {
|
||||
if (other$availableStartDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$availableEndDate = this.getAvailableEndDate();
|
||||
Object other$availableEndDate = other.getAvailableEndDate();
|
||||
if (this$availableEndDate == null) {
|
||||
if (other$availableEndDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||
return false;
|
||||
}
|
||||
Object this$availableEndDate = this.getAvailableEndDate();
|
||||
Object other$availableEndDate = other.getAvailableEndDate();
|
||||
if (this$availableEndDate == null) {
|
||||
if (other$availableEndDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$unavailableDates = this.getUnavailableDates();
|
||||
Object other$unavailableDates = other.getUnavailableDates();
|
||||
if (this$unavailableDates == null) {
|
||||
if (other$unavailableDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||
return false;
|
||||
}
|
||||
Object this$unavailableDates = this.getUnavailableDates();
|
||||
Object other$unavailableDates = other.getUnavailableDates();
|
||||
if (this$unavailableDates == null) {
|
||||
if (other$unavailableDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$activityRegion = this.getActivityRegion();
|
||||
Object other$activityRegion = other.getActivityRegion();
|
||||
if (this$activityRegion == null) {
|
||||
if (other$activityRegion != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$activityRegion.equals(other$activityRegion)) {
|
||||
return false;
|
||||
}
|
||||
Object this$activityRegion = this.getActivityRegion();
|
||||
Object other$activityRegion = other.getActivityRegion();
|
||||
if (this$activityRegion == null) {
|
||||
if (other$activityRegion != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$activityRegion.equals(other$activityRegion)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$historyCenters = this.getHistoryCenters();
|
||||
Object other$historyCenters = other.getHistoryCenters();
|
||||
if (this$historyCenters == null) {
|
||||
if (other$historyCenters != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$historyCenters.equals(other$historyCenters)) {
|
||||
return false;
|
||||
}
|
||||
Object this$historyCenters = this.getHistoryCenters();
|
||||
Object other$historyCenters = other.getHistoryCenters();
|
||||
if (this$historyCenters == null) {
|
||||
if (other$historyCenters != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$historyCenters.equals(other$historyCenters)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$residenceCode = this.getResidenceCode();
|
||||
Object other$residenceCode = other.getResidenceCode();
|
||||
if (this$residenceCode == null) {
|
||||
if (other$residenceCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$residenceCode.equals(other$residenceCode)) {
|
||||
return false;
|
||||
}
|
||||
Object this$residenceCode = this.getResidenceCode();
|
||||
Object other$residenceCode = other.getResidenceCode();
|
||||
if (this$residenceCode == null) {
|
||||
if (other$residenceCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$residenceCode.equals(other$residenceCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$preferenceRegion1 = this.getPreferenceRegion1();
|
||||
Object other$preferenceRegion1 = other.getPreferenceRegion1();
|
||||
if (this$preferenceRegion1 == null) {
|
||||
if (other$preferenceRegion1 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion1.equals(other$preferenceRegion1)) {
|
||||
return false;
|
||||
}
|
||||
Object this$preferenceRegion1 = this.getPreferenceRegion1();
|
||||
Object other$preferenceRegion1 = other.getPreferenceRegion1();
|
||||
if (this$preferenceRegion1 == null) {
|
||||
if (other$preferenceRegion1 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion1.equals(other$preferenceRegion1)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$preferenceRegion2 = this.getPreferenceRegion2();
|
||||
Object other$preferenceRegion2 = other.getPreferenceRegion2();
|
||||
if (this$preferenceRegion2 == null) {
|
||||
if (other$preferenceRegion2 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion2.equals(other$preferenceRegion2)) {
|
||||
return false;
|
||||
}
|
||||
Object this$preferenceRegion2 = this.getPreferenceRegion2();
|
||||
Object other$preferenceRegion2 = other.getPreferenceRegion2();
|
||||
if (this$preferenceRegion2 == null) {
|
||||
if (other$preferenceRegion2 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion2.equals(other$preferenceRegion2)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$preferenceRegion3 = this.getPreferenceRegion3();
|
||||
Object other$preferenceRegion3 = other.getPreferenceRegion3();
|
||||
if (this$preferenceRegion3 == null) {
|
||||
if (other$preferenceRegion3 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion3.equals(other$preferenceRegion3)) {
|
||||
return false;
|
||||
}
|
||||
Object this$preferenceRegion3 = this.getPreferenceRegion3();
|
||||
Object other$preferenceRegion3 = other.getPreferenceRegion3();
|
||||
if (this$preferenceRegion3 == null) {
|
||||
if (other$preferenceRegion3 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion3.equals(other$preferenceRegion3)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$preferenceRegion4 = this.getPreferenceRegion4();
|
||||
Object other$preferenceRegion4 = other.getPreferenceRegion4();
|
||||
if (this$preferenceRegion4 == null) {
|
||||
if (other$preferenceRegion4 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion4.equals(other$preferenceRegion4)) {
|
||||
return false;
|
||||
}
|
||||
Object this$preferenceRegion4 = this.getPreferenceRegion4();
|
||||
Object other$preferenceRegion4 = other.getPreferenceRegion4();
|
||||
if (this$preferenceRegion4 == null) {
|
||||
if (other$preferenceRegion4 != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$preferenceRegion4.equals(other$preferenceRegion4)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof MemberExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof MemberExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $gender = this.getGender();
|
||||
result = result * 59 + ($gender == null ? 43 : $gender.hashCode());
|
||||
Object $experience = this.getExperience();
|
||||
result = result * 59 + ($experience == null ? 43 : $experience.hashCode());
|
||||
Object $role = this.getRole();
|
||||
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
||||
Object $availableStartDate = this.getAvailableStartDate();
|
||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||
Object $availableEndDate = this.getAvailableEndDate();
|
||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||
Object $unavailableDates = this.getUnavailableDates();
|
||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||
Object $activityRegion = this.getActivityRegion();
|
||||
result = result * 59 + ($activityRegion == null ? 43 : $activityRegion.hashCode());
|
||||
Object $historyCenters = this.getHistoryCenters();
|
||||
result = result * 59 + ($historyCenters == null ? 43 : $historyCenters.hashCode());
|
||||
Object $residenceCode = this.getResidenceCode();
|
||||
result = result * 59 + ($residenceCode == null ? 43 : $residenceCode.hashCode());
|
||||
Object $preferenceRegion1 = this.getPreferenceRegion1();
|
||||
result = result * 59 + ($preferenceRegion1 == null ? 43 : $preferenceRegion1.hashCode());
|
||||
Object $preferenceRegion2 = this.getPreferenceRegion2();
|
||||
result = result * 59 + ($preferenceRegion2 == null ? 43 : $preferenceRegion2.hashCode());
|
||||
Object $preferenceRegion3 = this.getPreferenceRegion3();
|
||||
result = result * 59 + ($preferenceRegion3 == null ? 43 : $preferenceRegion3.hashCode());
|
||||
Object $preferenceRegion4 = this.getPreferenceRegion4();
|
||||
result = result * 59 + ($preferenceRegion4 == null ? 43 : $preferenceRegion4.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $gender = this.getGender();
|
||||
result = result * 59 + ($gender == null ? 43 : $gender.hashCode());
|
||||
Object $experience = this.getExperience();
|
||||
result = result * 59 + ($experience == null ? 43 : $experience.hashCode());
|
||||
Object $role = this.getRole();
|
||||
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
||||
Object $availableStartDate = this.getAvailableStartDate();
|
||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||
Object $availableEndDate = this.getAvailableEndDate();
|
||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||
Object $unavailableDates = this.getUnavailableDates();
|
||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||
Object $activityRegion = this.getActivityRegion();
|
||||
result = result * 59 + ($activityRegion == null ? 43 : $activityRegion.hashCode());
|
||||
Object $historyCenters = this.getHistoryCenters();
|
||||
result = result * 59 + ($historyCenters == null ? 43 : $historyCenters.hashCode());
|
||||
Object $residenceCode = this.getResidenceCode();
|
||||
result = result * 59 + ($residenceCode == null ? 43 : $residenceCode.hashCode());
|
||||
Object $preferenceRegion1 = this.getPreferenceRegion1();
|
||||
result = result * 59 + ($preferenceRegion1 == null ? 43 : $preferenceRegion1.hashCode());
|
||||
Object $preferenceRegion2 = this.getPreferenceRegion2();
|
||||
result = result * 59 + ($preferenceRegion2 == null ? 43 : $preferenceRegion2.hashCode());
|
||||
Object $preferenceRegion3 = this.getPreferenceRegion3();
|
||||
result = result * 59 + ($preferenceRegion3 == null ? 43 : $preferenceRegion3.hashCode());
|
||||
Object $preferenceRegion4 = this.getPreferenceRegion4();
|
||||
result = result * 59 + ($preferenceRegion4 == null ? 43 : $preferenceRegion4.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getId();
|
||||
return "MemberExcelDto(id=" + var10000 + ", gender=" + this.getGender() + ", experience=" + this.getExperience() + ", role=" + this.getRole() + ", availableStartDate=" + this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate() + ", unavailableDates=" + this.getUnavailableDates() + ", activityRegion=" + this.getActivityRegion() + ", historyCenters=" + this.getHistoryCenters() + ", residenceCode=" + this.getResidenceCode() + ", preferenceRegion1=" + this.getPreferenceRegion1() + ", preferenceRegion2=" + this.getPreferenceRegion2() + ", preferenceRegion3=" + this.getPreferenceRegion3() + ", preferenceRegion4=" + this.getPreferenceRegion4() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getId();
|
||||
return "MemberExcelDto(id=" + var10000 + ", gender=" + this.getGender() + ", experience="
|
||||
+ this.getExperience() + ", role=" + this.getRole() + ", availableStartDate="
|
||||
+ this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate()
|
||||
+ ", unavailableDates=" + this.getUnavailableDates() + ", activityRegion="
|
||||
+ this.getActivityRegion() + ", historyCenters=" + this.getHistoryCenters()
|
||||
+ ", residenceCode=" + this.getResidenceCode() + ", preferenceRegion1="
|
||||
+ this.getPreferenceRegion1() + ", preferenceRegion2=" + this.getPreferenceRegion2()
|
||||
+ ", preferenceRegion3=" + this.getPreferenceRegion3() + ", preferenceRegion4="
|
||||
+ this.getPreferenceRegion4() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,206 +4,210 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class MemberRegionCodeExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "시도",
|
||||
order = 0,
|
||||
width = 15
|
||||
)
|
||||
private String sido;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String sido;
|
||||
@ExcelColumn(
|
||||
header = "시군구",
|
||||
order = 1,
|
||||
width = 15
|
||||
)
|
||||
private String sigungu;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String sigungu;
|
||||
@ExcelColumn(
|
||||
header = "권역코드",
|
||||
order = 2,
|
||||
width = 12
|
||||
)
|
||||
private String regionCode;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String regionCode;
|
||||
@ExcelColumn(
|
||||
header = "세부권역코드(중간 1자리)",
|
||||
order = 3,
|
||||
width = 25
|
||||
)
|
||||
private String detailRegionCode;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String detailRegionCode;
|
||||
@ExcelColumn(
|
||||
header = "세부지역코드(마지막2자리)",
|
||||
order = 4,
|
||||
width = 25
|
||||
)
|
||||
private String detailAreaCode;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String detailAreaCode;
|
||||
@ExcelColumn(
|
||||
header = "지역 코드",
|
||||
order = 5,
|
||||
width = 12
|
||||
)
|
||||
private String fullRegionCode;
|
||||
)
|
||||
private String fullRegionCode;
|
||||
|
||||
@Generated
|
||||
public String getSido() {
|
||||
return this.sido;
|
||||
}
|
||||
@Generated
|
||||
public String getSido() {
|
||||
return this.sido;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getSigungu() {
|
||||
return this.sigungu;
|
||||
}
|
||||
@Generated
|
||||
public String getSigungu() {
|
||||
return this.sigungu;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getRegionCode() {
|
||||
return this.regionCode;
|
||||
}
|
||||
@Generated
|
||||
public String getRegionCode() {
|
||||
return this.regionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDetailRegionCode() {
|
||||
return this.detailRegionCode;
|
||||
}
|
||||
@Generated
|
||||
public String getDetailRegionCode() {
|
||||
return this.detailRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDetailAreaCode() {
|
||||
return this.detailAreaCode;
|
||||
}
|
||||
@Generated
|
||||
public String getDetailAreaCode() {
|
||||
return this.detailAreaCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFullRegionCode() {
|
||||
return this.fullRegionCode;
|
||||
}
|
||||
@Generated
|
||||
public String getFullRegionCode() {
|
||||
return this.fullRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setSido(final String sido) {
|
||||
this.sido = sido;
|
||||
}
|
||||
@Generated
|
||||
public void setSido(final String sido) {
|
||||
this.sido = sido;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setSigungu(final String sigungu) {
|
||||
this.sigungu = sigungu;
|
||||
}
|
||||
@Generated
|
||||
public void setSigungu(final String sigungu) {
|
||||
this.sigungu = sigungu;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setRegionCode(final String regionCode) {
|
||||
this.regionCode = regionCode;
|
||||
}
|
||||
@Generated
|
||||
public void setRegionCode(final String regionCode) {
|
||||
this.regionCode = regionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDetailRegionCode(final String detailRegionCode) {
|
||||
this.detailRegionCode = detailRegionCode;
|
||||
}
|
||||
@Generated
|
||||
public void setDetailRegionCode(final String detailRegionCode) {
|
||||
this.detailRegionCode = detailRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDetailAreaCode(final String detailAreaCode) {
|
||||
this.detailAreaCode = detailAreaCode;
|
||||
}
|
||||
@Generated
|
||||
public void setDetailAreaCode(final String detailAreaCode) {
|
||||
this.detailAreaCode = detailAreaCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setFullRegionCode(final String fullRegionCode) {
|
||||
this.fullRegionCode = fullRegionCode;
|
||||
}
|
||||
@Generated
|
||||
public void setFullRegionCode(final String fullRegionCode) {
|
||||
this.fullRegionCode = fullRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof MemberRegionCodeExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof MemberRegionCodeExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
MemberRegionCodeExcelDto other = (MemberRegionCodeExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
MemberRegionCodeExcelDto other = (MemberRegionCodeExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$sido = this.getSido();
|
||||
Object other$sido = other.getSido();
|
||||
if (this$sido == null) {
|
||||
if (other$sido != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$sido = this.getSido();
|
||||
Object other$sido = other.getSido();
|
||||
if (this$sido == null) {
|
||||
if (other$sido != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sido.equals(other$sido)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$sido.equals(other$sido)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$sigungu = this.getSigungu();
|
||||
Object other$sigungu = other.getSigungu();
|
||||
if (this$sigungu == null) {
|
||||
if (other$sigungu != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sigungu.equals(other$sigungu)) {
|
||||
return false;
|
||||
}
|
||||
Object this$sigungu = this.getSigungu();
|
||||
Object other$sigungu = other.getSigungu();
|
||||
if (this$sigungu == null) {
|
||||
if (other$sigungu != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sigungu.equals(other$sigungu)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$regionCode = this.getRegionCode();
|
||||
Object other$regionCode = other.getRegionCode();
|
||||
if (this$regionCode == null) {
|
||||
if (other$regionCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$regionCode.equals(other$regionCode)) {
|
||||
return false;
|
||||
}
|
||||
Object this$regionCode = this.getRegionCode();
|
||||
Object other$regionCode = other.getRegionCode();
|
||||
if (this$regionCode == null) {
|
||||
if (other$regionCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$regionCode.equals(other$regionCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$detailRegionCode = this.getDetailRegionCode();
|
||||
Object other$detailRegionCode = other.getDetailRegionCode();
|
||||
if (this$detailRegionCode == null) {
|
||||
if (other$detailRegionCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$detailRegionCode.equals(other$detailRegionCode)) {
|
||||
return false;
|
||||
}
|
||||
Object this$detailRegionCode = this.getDetailRegionCode();
|
||||
Object other$detailRegionCode = other.getDetailRegionCode();
|
||||
if (this$detailRegionCode == null) {
|
||||
if (other$detailRegionCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$detailRegionCode.equals(other$detailRegionCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$detailAreaCode = this.getDetailAreaCode();
|
||||
Object other$detailAreaCode = other.getDetailAreaCode();
|
||||
if (this$detailAreaCode == null) {
|
||||
if (other$detailAreaCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$detailAreaCode.equals(other$detailAreaCode)) {
|
||||
return false;
|
||||
}
|
||||
Object this$detailAreaCode = this.getDetailAreaCode();
|
||||
Object other$detailAreaCode = other.getDetailAreaCode();
|
||||
if (this$detailAreaCode == null) {
|
||||
if (other$detailAreaCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$detailAreaCode.equals(other$detailAreaCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$fullRegionCode = this.getFullRegionCode();
|
||||
Object other$fullRegionCode = other.getFullRegionCode();
|
||||
if (this$fullRegionCode == null) {
|
||||
if (other$fullRegionCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$fullRegionCode.equals(other$fullRegionCode)) {
|
||||
return false;
|
||||
}
|
||||
Object this$fullRegionCode = this.getFullRegionCode();
|
||||
Object other$fullRegionCode = other.getFullRegionCode();
|
||||
if (this$fullRegionCode == null) {
|
||||
if (other$fullRegionCode != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$fullRegionCode.equals(other$fullRegionCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof MemberRegionCodeExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof MemberRegionCodeExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $sido = this.getSido();
|
||||
result = result * 59 + ($sido == null ? 43 : $sido.hashCode());
|
||||
Object $sigungu = this.getSigungu();
|
||||
result = result * 59 + ($sigungu == null ? 43 : $sigungu.hashCode());
|
||||
Object $regionCode = this.getRegionCode();
|
||||
result = result * 59 + ($regionCode == null ? 43 : $regionCode.hashCode());
|
||||
Object $detailRegionCode = this.getDetailRegionCode();
|
||||
result = result * 59 + ($detailRegionCode == null ? 43 : $detailRegionCode.hashCode());
|
||||
Object $detailAreaCode = this.getDetailAreaCode();
|
||||
result = result * 59 + ($detailAreaCode == null ? 43 : $detailAreaCode.hashCode());
|
||||
Object $fullRegionCode = this.getFullRegionCode();
|
||||
result = result * 59 + ($fullRegionCode == null ? 43 : $fullRegionCode.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $sido = this.getSido();
|
||||
result = result * 59 + ($sido == null ? 43 : $sido.hashCode());
|
||||
Object $sigungu = this.getSigungu();
|
||||
result = result * 59 + ($sigungu == null ? 43 : $sigungu.hashCode());
|
||||
Object $regionCode = this.getRegionCode();
|
||||
result = result * 59 + ($regionCode == null ? 43 : $regionCode.hashCode());
|
||||
Object $detailRegionCode = this.getDetailRegionCode();
|
||||
result = result * 59 + ($detailRegionCode == null ? 43 : $detailRegionCode.hashCode());
|
||||
Object $detailAreaCode = this.getDetailAreaCode();
|
||||
result = result * 59 + ($detailAreaCode == null ? 43 : $detailAreaCode.hashCode());
|
||||
Object $fullRegionCode = this.getFullRegionCode();
|
||||
result = result * 59 + ($fullRegionCode == null ? 43 : $fullRegionCode.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getSido();
|
||||
return "MemberRegionCodeExcelDto(sido=" + var10000 + ", sigungu=" + this.getSigungu() + ", regionCode=" + this.getRegionCode() + ", detailRegionCode=" + this.getDetailRegionCode() + ", detailAreaCode=" + this.getDetailAreaCode() + ", fullRegionCode=" + this.getFullRegionCode() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getSido();
|
||||
return "MemberRegionCodeExcelDto(sido=" + var10000 + ", sigungu=" + this.getSigungu()
|
||||
+ ", regionCode=" + this.getRegionCode() + ", detailRegionCode="
|
||||
+ this.getDetailRegionCode() + ", detailAreaCode=" + this.getDetailAreaCode()
|
||||
+ ", fullRegionCode=" + this.getFullRegionCode() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,150 +4,153 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class MunicipalityExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "지자체 id",
|
||||
order = 0,
|
||||
width = 15
|
||||
)
|
||||
private String id;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String id;
|
||||
@ExcelColumn(
|
||||
header = "진행 시작일",
|
||||
order = 1,
|
||||
width = 15
|
||||
)
|
||||
private String availableStartDate;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String availableStartDate;
|
||||
@ExcelColumn(
|
||||
header = "진행 종료일",
|
||||
order = 2,
|
||||
width = 15
|
||||
)
|
||||
private String availableEndDate;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String availableEndDate;
|
||||
@ExcelColumn(
|
||||
header = "진행 불가 일자",
|
||||
order = 3,
|
||||
width = 35
|
||||
)
|
||||
private String unavailableDates;
|
||||
)
|
||||
private String unavailableDates;
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
@Generated
|
||||
public String getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
@Generated
|
||||
public String getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
@Generated
|
||||
public String getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
@Generated
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAvailableStartDate(final String availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
}
|
||||
@Generated
|
||||
public void setAvailableStartDate(final String availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAvailableEndDate(final String availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
}
|
||||
@Generated
|
||||
public void setAvailableEndDate(final String availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setUnavailableDates(final String unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
@Generated
|
||||
public void setUnavailableDates(final String unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof MunicipalityExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof MunicipalityExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
MunicipalityExcelDto other = (MunicipalityExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
MunicipalityExcelDto other = (MunicipalityExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$id = this.getId();
|
||||
Object other$id = other.getId();
|
||||
if (this$id == null) {
|
||||
if (other$id != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$availableStartDate = this.getAvailableStartDate();
|
||||
Object other$availableStartDate = other.getAvailableStartDate();
|
||||
if (this$availableStartDate == null) {
|
||||
if (other$availableStartDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||
return false;
|
||||
}
|
||||
Object this$availableStartDate = this.getAvailableStartDate();
|
||||
Object other$availableStartDate = other.getAvailableStartDate();
|
||||
if (this$availableStartDate == null) {
|
||||
if (other$availableStartDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$availableEndDate = this.getAvailableEndDate();
|
||||
Object other$availableEndDate = other.getAvailableEndDate();
|
||||
if (this$availableEndDate == null) {
|
||||
if (other$availableEndDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||
return false;
|
||||
}
|
||||
Object this$availableEndDate = this.getAvailableEndDate();
|
||||
Object other$availableEndDate = other.getAvailableEndDate();
|
||||
if (this$availableEndDate == null) {
|
||||
if (other$availableEndDate != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$unavailableDates = this.getUnavailableDates();
|
||||
Object other$unavailableDates = other.getUnavailableDates();
|
||||
if (this$unavailableDates == null) {
|
||||
if (other$unavailableDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||
return false;
|
||||
}
|
||||
Object this$unavailableDates = this.getUnavailableDates();
|
||||
Object other$unavailableDates = other.getUnavailableDates();
|
||||
if (this$unavailableDates == null) {
|
||||
if (other$unavailableDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof MunicipalityExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof MunicipalityExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $availableStartDate = this.getAvailableStartDate();
|
||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||
Object $availableEndDate = this.getAvailableEndDate();
|
||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||
Object $unavailableDates = this.getUnavailableDates();
|
||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
Object $availableStartDate = this.getAvailableStartDate();
|
||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||
Object $availableEndDate = this.getAvailableEndDate();
|
||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||
Object $unavailableDates = this.getUnavailableDates();
|
||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getId();
|
||||
return "MunicipalityExcelDto(id=" + var10000 + ", availableStartDate=" + this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate() + ", unavailableDates=" + this.getUnavailableDates() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getId();
|
||||
return "MunicipalityExcelDto(id=" + var10000 + ", availableStartDate="
|
||||
+ this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate()
|
||||
+ ", unavailableDates=" + this.getUnavailableDates() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,122 +4,138 @@ import java.util.List;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PairingWorkbookData {
|
||||
private final List<MemberExcelDto> members;
|
||||
private final List<MunicipalityExcelDto> municipalities;
|
||||
private final List<CenterExcelDto> centers;
|
||||
private final List<MemberRegionCodeExcelDto> memberRegionCodes;
|
||||
private final List<CenterAdjacentRegionExcelDto> centerAdjacentRegions;
|
||||
private final List<PreferenceMatchExcelDto> preferenceMatchRules;
|
||||
|
||||
@Generated
|
||||
PairingWorkbookData(final List<MemberExcelDto> members, final List<MunicipalityExcelDto> municipalities, final List<CenterExcelDto> centers, final List<MemberRegionCodeExcelDto> memberRegionCodes, final List<CenterAdjacentRegionExcelDto> centerAdjacentRegions, final List<PreferenceMatchExcelDto> preferenceMatchRules) {
|
||||
private final List<MemberExcelDto> members;
|
||||
private final List<MunicipalityExcelDto> municipalities;
|
||||
private final List<CenterExcelDto> centers;
|
||||
private final List<MemberRegionCodeExcelDto> memberRegionCodes;
|
||||
private final List<CenterAdjacentRegionExcelDto> centerAdjacentRegions;
|
||||
private final List<PreferenceMatchExcelDto> preferenceMatchRules;
|
||||
|
||||
@Generated
|
||||
PairingWorkbookData(final List<MemberExcelDto> members,
|
||||
final List<MunicipalityExcelDto> municipalities, final List<CenterExcelDto> centers,
|
||||
final List<MemberRegionCodeExcelDto> memberRegionCodes,
|
||||
final List<CenterAdjacentRegionExcelDto> centerAdjacentRegions,
|
||||
final List<PreferenceMatchExcelDto> preferenceMatchRules) {
|
||||
this.members = members;
|
||||
this.municipalities = municipalities;
|
||||
this.centers = centers;
|
||||
this.memberRegionCodes = memberRegionCodes;
|
||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||
this.preferenceMatchRules = preferenceMatchRules;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingWorkbookDataBuilder builder() {
|
||||
return new PairingWorkbookDataBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MemberExcelDto> getMembers() {
|
||||
return this.members;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MunicipalityExcelDto> getMunicipalities() {
|
||||
return this.municipalities;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CenterExcelDto> getCenters() {
|
||||
return this.centers;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MemberRegionCodeExcelDto> getMemberRegionCodes() {
|
||||
return this.memberRegionCodes;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CenterAdjacentRegionExcelDto> getCenterAdjacentRegions() {
|
||||
return this.centerAdjacentRegions;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PreferenceMatchExcelDto> getPreferenceMatchRules() {
|
||||
return this.preferenceMatchRules;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingWorkbookDataBuilder {
|
||||
|
||||
@Generated
|
||||
private List<MemberExcelDto> members;
|
||||
@Generated
|
||||
private List<MunicipalityExcelDto> municipalities;
|
||||
@Generated
|
||||
private List<CenterExcelDto> centers;
|
||||
@Generated
|
||||
private List<MemberRegionCodeExcelDto> memberRegionCodes;
|
||||
@Generated
|
||||
private List<CenterAdjacentRegionExcelDto> centerAdjacentRegions;
|
||||
@Generated
|
||||
private List<PreferenceMatchExcelDto> preferenceMatchRules;
|
||||
|
||||
@Generated
|
||||
PairingWorkbookDataBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder members(final List<MemberExcelDto> members) {
|
||||
this.members = members;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder municipalities(
|
||||
final List<MunicipalityExcelDto> municipalities) {
|
||||
this.municipalities = municipalities;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder centers(final List<CenterExcelDto> centers) {
|
||||
this.centers = centers;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder memberRegionCodes(
|
||||
final List<MemberRegionCodeExcelDto> memberRegionCodes) {
|
||||
this.memberRegionCodes = memberRegionCodes;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder centerAdjacentRegions(
|
||||
final List<CenterAdjacentRegionExcelDto> centerAdjacentRegions) {
|
||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder preferenceMatchRules(
|
||||
final List<PreferenceMatchExcelDto> preferenceMatchRules) {
|
||||
this.preferenceMatchRules = preferenceMatchRules;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingWorkbookDataBuilder builder() {
|
||||
return new PairingWorkbookDataBuilder();
|
||||
}
|
||||
@Generated
|
||||
public PairingWorkbookData build() {
|
||||
return new PairingWorkbookData(this.members, this.municipalities, this.centers,
|
||||
this.memberRegionCodes, this.centerAdjacentRegions, this.preferenceMatchRules);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MemberExcelDto> getMembers() {
|
||||
return this.members;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MunicipalityExcelDto> getMunicipalities() {
|
||||
return this.municipalities;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CenterExcelDto> getCenters() {
|
||||
return this.centers;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MemberRegionCodeExcelDto> getMemberRegionCodes() {
|
||||
return this.memberRegionCodes;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CenterAdjacentRegionExcelDto> getCenterAdjacentRegions() {
|
||||
return this.centerAdjacentRegions;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PreferenceMatchExcelDto> getPreferenceMatchRules() {
|
||||
return this.preferenceMatchRules;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingWorkbookDataBuilder {
|
||||
@Generated
|
||||
private List<MemberExcelDto> members;
|
||||
@Generated
|
||||
private List<MunicipalityExcelDto> municipalities;
|
||||
@Generated
|
||||
private List<CenterExcelDto> centers;
|
||||
@Generated
|
||||
private List<MemberRegionCodeExcelDto> memberRegionCodes;
|
||||
@Generated
|
||||
private List<CenterAdjacentRegionExcelDto> centerAdjacentRegions;
|
||||
@Generated
|
||||
private List<PreferenceMatchExcelDto> preferenceMatchRules;
|
||||
|
||||
@Generated
|
||||
PairingWorkbookDataBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder members(final List<MemberExcelDto> members) {
|
||||
this.members = members;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder municipalities(final List<MunicipalityExcelDto> municipalities) {
|
||||
this.municipalities = municipalities;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder centers(final List<CenterExcelDto> centers) {
|
||||
this.centers = centers;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder memberRegionCodes(final List<MemberRegionCodeExcelDto> memberRegionCodes) {
|
||||
this.memberRegionCodes = memberRegionCodes;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder centerAdjacentRegions(final List<CenterAdjacentRegionExcelDto> centerAdjacentRegions) {
|
||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookDataBuilder preferenceMatchRules(final List<PreferenceMatchExcelDto> preferenceMatchRules) {
|
||||
this.preferenceMatchRules = preferenceMatchRules;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingWorkbookData build() {
|
||||
return new PairingWorkbookData(this.members, this.municipalities, this.centers, this.memberRegionCodes, this.centerAdjacentRegions, this.preferenceMatchRules);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.members);
|
||||
return "PairingWorkbookData.PairingWorkbookDataBuilder(members=" + var10000 + ", municipalities=" + String.valueOf(this.municipalities) + ", centers=" + String.valueOf(this.centers) + ", memberRegionCodes=" + String.valueOf(this.memberRegionCodes) + ", centerAdjacentRegions=" + String.valueOf(this.centerAdjacentRegions) + ", preferenceMatchRules=" + String.valueOf(this.preferenceMatchRules) + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.members);
|
||||
return "PairingWorkbookData.PairingWorkbookDataBuilder(members=" + var10000
|
||||
+ ", municipalities=" + String.valueOf(this.municipalities) + ", centers="
|
||||
+ String.valueOf(this.centers) + ", memberRegionCodes=" + String.valueOf(
|
||||
this.memberRegionCodes) + ", centerAdjacentRegions=" + String.valueOf(
|
||||
this.centerAdjacentRegions) + ", preferenceMatchRules=" + String.valueOf(
|
||||
this.preferenceMatchRules) + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,122 +4,127 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PreferenceMatchExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "매칭 순위",
|
||||
order = 0,
|
||||
width = 12
|
||||
)
|
||||
private String priority;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String priority;
|
||||
@ExcelColumn(
|
||||
header = "현장위원",
|
||||
order = 1,
|
||||
width = 12
|
||||
)
|
||||
private String fieldMemberPreferenceRank;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String fieldMemberPreferenceRank;
|
||||
@ExcelColumn(
|
||||
header = "외부위원",
|
||||
order = 2,
|
||||
width = 12
|
||||
)
|
||||
private String externalMemberPreferenceRank;
|
||||
)
|
||||
private String externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
public String getPriority() {
|
||||
return this.priority;
|
||||
}
|
||||
@Generated
|
||||
public String getPriority() {
|
||||
return this.priority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
@Generated
|
||||
public String getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
@Generated
|
||||
public String getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setPriority(final String priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
@Generated
|
||||
public void setPriority(final String priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setFieldMemberPreferenceRank(final String fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
}
|
||||
@Generated
|
||||
public void setFieldMemberPreferenceRank(final String fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setExternalMemberPreferenceRank(final String externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
}
|
||||
@Generated
|
||||
public void setExternalMemberPreferenceRank(final String externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof PreferenceMatchExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof PreferenceMatchExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
PreferenceMatchExcelDto other = (PreferenceMatchExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
PreferenceMatchExcelDto other = (PreferenceMatchExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$priority = this.getPriority();
|
||||
Object other$priority = other.getPriority();
|
||||
if (this$priority == null) {
|
||||
if (other$priority != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$priority = this.getPriority();
|
||||
Object other$priority = other.getPriority();
|
||||
if (this$priority == null) {
|
||||
if (other$priority != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$priority.equals(other$priority)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$priority.equals(other$priority)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
||||
Object other$fieldMemberPreferenceRank = other.getFieldMemberPreferenceRank();
|
||||
if (this$fieldMemberPreferenceRank == null) {
|
||||
if (other$fieldMemberPreferenceRank != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$fieldMemberPreferenceRank.equals(other$fieldMemberPreferenceRank)) {
|
||||
return false;
|
||||
}
|
||||
Object this$fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
||||
Object other$fieldMemberPreferenceRank = other.getFieldMemberPreferenceRank();
|
||||
if (this$fieldMemberPreferenceRank == null) {
|
||||
if (other$fieldMemberPreferenceRank != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$fieldMemberPreferenceRank.equals(other$fieldMemberPreferenceRank)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
||||
Object other$externalMemberPreferenceRank = other.getExternalMemberPreferenceRank();
|
||||
if (this$externalMemberPreferenceRank == null) {
|
||||
if (other$externalMemberPreferenceRank != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$externalMemberPreferenceRank.equals(other$externalMemberPreferenceRank)) {
|
||||
return false;
|
||||
}
|
||||
Object this$externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
||||
Object other$externalMemberPreferenceRank = other.getExternalMemberPreferenceRank();
|
||||
if (this$externalMemberPreferenceRank == null) {
|
||||
if (other$externalMemberPreferenceRank != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$externalMemberPreferenceRank.equals(other$externalMemberPreferenceRank)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof PreferenceMatchExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof PreferenceMatchExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $priority = this.getPriority();
|
||||
result = result * 59 + ($priority == null ? 43 : $priority.hashCode());
|
||||
Object $fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
||||
result = result * 59 + ($fieldMemberPreferenceRank == null ? 43 : $fieldMemberPreferenceRank.hashCode());
|
||||
Object $externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
||||
result = result * 59 + ($externalMemberPreferenceRank == null ? 43 : $externalMemberPreferenceRank.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $priority = this.getPriority();
|
||||
result = result * 59 + ($priority == null ? 43 : $priority.hashCode());
|
||||
Object $fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
||||
result = result * 59 + ($fieldMemberPreferenceRank == null ? 43
|
||||
: $fieldMemberPreferenceRank.hashCode());
|
||||
Object $externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
||||
result = result * 59 + ($externalMemberPreferenceRank == null ? 43
|
||||
: $externalMemberPreferenceRank.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getPriority();
|
||||
return "PreferenceMatchExcelDto(priority=" + var10000 + ", fieldMemberPreferenceRank=" + this.getFieldMemberPreferenceRank() + ", externalMemberPreferenceRank=" + this.getExternalMemberPreferenceRank() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getPriority();
|
||||
return "PreferenceMatchExcelDto(priority=" + var10000 + ", fieldMemberPreferenceRank="
|
||||
+ this.getFieldMemberPreferenceRank() + ", externalMemberPreferenceRank="
|
||||
+ this.getExternalMemberPreferenceRank() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,336 +4,349 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class ABPairExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "AB 그룹",
|
||||
order = 0,
|
||||
width = 12
|
||||
)
|
||||
private String groupId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String groupId;
|
||||
@ExcelColumn(
|
||||
header = "A 현장위원 id",
|
||||
order = 1,
|
||||
width = 18
|
||||
)
|
||||
private String aFieldMemberId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String aFieldMemberId;
|
||||
@ExcelColumn(
|
||||
header = "A 외부위원 id",
|
||||
order = 2,
|
||||
width = 18
|
||||
)
|
||||
private String aExternalMemberId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String aExternalMemberId;
|
||||
@ExcelColumn(
|
||||
header = "B 현장위원 id",
|
||||
order = 3,
|
||||
width = 18
|
||||
)
|
||||
private String bFieldMemberId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String bFieldMemberId;
|
||||
@ExcelColumn(
|
||||
header = "B 외부위원 id",
|
||||
order = 4,
|
||||
width = 18
|
||||
)
|
||||
private String bExternalMemberId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String bExternalMemberId;
|
||||
@ExcelColumn(
|
||||
header = "공유 파견 권역",
|
||||
order = 5,
|
||||
width = 15
|
||||
)
|
||||
private String sharedDispatchRegion;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String sharedDispatchRegion;
|
||||
@ExcelColumn(
|
||||
header = "공유 인접지역 분류",
|
||||
order = 6,
|
||||
width = 18
|
||||
)
|
||||
private String sharedAdjacentRegionClassification;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String sharedAdjacentRegionClassification;
|
||||
@ExcelColumn(
|
||||
header = "A 배정일",
|
||||
order = 7,
|
||||
width = 25
|
||||
)
|
||||
private String aAssignmentDates;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String aAssignmentDates;
|
||||
@ExcelColumn(
|
||||
header = "B 배정일",
|
||||
order = 8,
|
||||
width = 25
|
||||
)
|
||||
private String bAssignmentDates;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String bAssignmentDates;
|
||||
@ExcelColumn(
|
||||
header = "날짜 겹침 여부",
|
||||
order = 9,
|
||||
width = 15
|
||||
)
|
||||
private String dateOverlapped;
|
||||
)
|
||||
private String dateOverlapped;
|
||||
|
||||
@Generated
|
||||
public String getGroupId() {
|
||||
return this.groupId;
|
||||
}
|
||||
@Generated
|
||||
public String getGroupId() {
|
||||
return this.groupId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAFieldMemberId() {
|
||||
return this.aFieldMemberId;
|
||||
}
|
||||
@Generated
|
||||
public String getAFieldMemberId() {
|
||||
return this.aFieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAExternalMemberId() {
|
||||
return this.aExternalMemberId;
|
||||
}
|
||||
@Generated
|
||||
public String getAExternalMemberId() {
|
||||
return this.aExternalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getBFieldMemberId() {
|
||||
return this.bFieldMemberId;
|
||||
}
|
||||
@Generated
|
||||
public String getBFieldMemberId() {
|
||||
return this.bFieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getBExternalMemberId() {
|
||||
return this.bExternalMemberId;
|
||||
}
|
||||
@Generated
|
||||
public String getBExternalMemberId() {
|
||||
return this.bExternalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getSharedDispatchRegion() {
|
||||
return this.sharedDispatchRegion;
|
||||
}
|
||||
@Generated
|
||||
public String getSharedDispatchRegion() {
|
||||
return this.sharedDispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getSharedAdjacentRegionClassification() {
|
||||
return this.sharedAdjacentRegionClassification;
|
||||
}
|
||||
@Generated
|
||||
public String getSharedAdjacentRegionClassification() {
|
||||
return this.sharedAdjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAAssignmentDates() {
|
||||
return this.aAssignmentDates;
|
||||
}
|
||||
@Generated
|
||||
public String getAAssignmentDates() {
|
||||
return this.aAssignmentDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getBAssignmentDates() {
|
||||
return this.bAssignmentDates;
|
||||
}
|
||||
@Generated
|
||||
public String getBAssignmentDates() {
|
||||
return this.bAssignmentDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDateOverlapped() {
|
||||
return this.dateOverlapped;
|
||||
}
|
||||
@Generated
|
||||
public String getDateOverlapped() {
|
||||
return this.dateOverlapped;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setGroupId(final String groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
@Generated
|
||||
public void setGroupId(final String groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAFieldMemberId(final String aFieldMemberId) {
|
||||
this.aFieldMemberId = aFieldMemberId;
|
||||
}
|
||||
@Generated
|
||||
public void setAFieldMemberId(final String aFieldMemberId) {
|
||||
this.aFieldMemberId = aFieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAExternalMemberId(final String aExternalMemberId) {
|
||||
this.aExternalMemberId = aExternalMemberId;
|
||||
}
|
||||
@Generated
|
||||
public void setAExternalMemberId(final String aExternalMemberId) {
|
||||
this.aExternalMemberId = aExternalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setBFieldMemberId(final String bFieldMemberId) {
|
||||
this.bFieldMemberId = bFieldMemberId;
|
||||
}
|
||||
@Generated
|
||||
public void setBFieldMemberId(final String bFieldMemberId) {
|
||||
this.bFieldMemberId = bFieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setBExternalMemberId(final String bExternalMemberId) {
|
||||
this.bExternalMemberId = bExternalMemberId;
|
||||
}
|
||||
@Generated
|
||||
public void setBExternalMemberId(final String bExternalMemberId) {
|
||||
this.bExternalMemberId = bExternalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setSharedDispatchRegion(final String sharedDispatchRegion) {
|
||||
this.sharedDispatchRegion = sharedDispatchRegion;
|
||||
}
|
||||
@Generated
|
||||
public void setSharedDispatchRegion(final String sharedDispatchRegion) {
|
||||
this.sharedDispatchRegion = sharedDispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setSharedAdjacentRegionClassification(final String sharedAdjacentRegionClassification) {
|
||||
this.sharedAdjacentRegionClassification = sharedAdjacentRegionClassification;
|
||||
}
|
||||
@Generated
|
||||
public void setSharedAdjacentRegionClassification(
|
||||
final String sharedAdjacentRegionClassification) {
|
||||
this.sharedAdjacentRegionClassification = sharedAdjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setAAssignmentDates(final String aAssignmentDates) {
|
||||
this.aAssignmentDates = aAssignmentDates;
|
||||
}
|
||||
@Generated
|
||||
public void setAAssignmentDates(final String aAssignmentDates) {
|
||||
this.aAssignmentDates = aAssignmentDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setBAssignmentDates(final String bAssignmentDates) {
|
||||
this.bAssignmentDates = bAssignmentDates;
|
||||
}
|
||||
@Generated
|
||||
public void setBAssignmentDates(final String bAssignmentDates) {
|
||||
this.bAssignmentDates = bAssignmentDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDateOverlapped(final String dateOverlapped) {
|
||||
this.dateOverlapped = dateOverlapped;
|
||||
}
|
||||
@Generated
|
||||
public void setDateOverlapped(final String dateOverlapped) {
|
||||
this.dateOverlapped = dateOverlapped;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof ABPairExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof ABPairExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
ABPairExcelDto other = (ABPairExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
ABPairExcelDto other = (ABPairExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$groupId = this.getGroupId();
|
||||
Object other$groupId = other.getGroupId();
|
||||
if (this$groupId == null) {
|
||||
if (other$groupId != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$groupId = this.getGroupId();
|
||||
Object other$groupId = other.getGroupId();
|
||||
if (this$groupId == null) {
|
||||
if (other$groupId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$groupId.equals(other$groupId)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$groupId.equals(other$groupId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$aFieldMemberId = this.getAFieldMemberId();
|
||||
Object other$aFieldMemberId = other.getAFieldMemberId();
|
||||
if (this$aFieldMemberId == null) {
|
||||
if (other$aFieldMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$aFieldMemberId.equals(other$aFieldMemberId)) {
|
||||
return false;
|
||||
}
|
||||
Object this$aFieldMemberId = this.getAFieldMemberId();
|
||||
Object other$aFieldMemberId = other.getAFieldMemberId();
|
||||
if (this$aFieldMemberId == null) {
|
||||
if (other$aFieldMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$aFieldMemberId.equals(other$aFieldMemberId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$aExternalMemberId = this.getAExternalMemberId();
|
||||
Object other$aExternalMemberId = other.getAExternalMemberId();
|
||||
if (this$aExternalMemberId == null) {
|
||||
if (other$aExternalMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$aExternalMemberId.equals(other$aExternalMemberId)) {
|
||||
return false;
|
||||
}
|
||||
Object this$aExternalMemberId = this.getAExternalMemberId();
|
||||
Object other$aExternalMemberId = other.getAExternalMemberId();
|
||||
if (this$aExternalMemberId == null) {
|
||||
if (other$aExternalMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$aExternalMemberId.equals(other$aExternalMemberId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$bFieldMemberId = this.getBFieldMemberId();
|
||||
Object other$bFieldMemberId = other.getBFieldMemberId();
|
||||
if (this$bFieldMemberId == null) {
|
||||
if (other$bFieldMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$bFieldMemberId.equals(other$bFieldMemberId)) {
|
||||
return false;
|
||||
}
|
||||
Object this$bFieldMemberId = this.getBFieldMemberId();
|
||||
Object other$bFieldMemberId = other.getBFieldMemberId();
|
||||
if (this$bFieldMemberId == null) {
|
||||
if (other$bFieldMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$bFieldMemberId.equals(other$bFieldMemberId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$bExternalMemberId = this.getBExternalMemberId();
|
||||
Object other$bExternalMemberId = other.getBExternalMemberId();
|
||||
if (this$bExternalMemberId == null) {
|
||||
if (other$bExternalMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$bExternalMemberId.equals(other$bExternalMemberId)) {
|
||||
return false;
|
||||
}
|
||||
Object this$bExternalMemberId = this.getBExternalMemberId();
|
||||
Object other$bExternalMemberId = other.getBExternalMemberId();
|
||||
if (this$bExternalMemberId == null) {
|
||||
if (other$bExternalMemberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$bExternalMemberId.equals(other$bExternalMemberId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$sharedDispatchRegion = this.getSharedDispatchRegion();
|
||||
Object other$sharedDispatchRegion = other.getSharedDispatchRegion();
|
||||
if (this$sharedDispatchRegion == null) {
|
||||
if (other$sharedDispatchRegion != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sharedDispatchRegion.equals(other$sharedDispatchRegion)) {
|
||||
return false;
|
||||
}
|
||||
Object this$sharedDispatchRegion = this.getSharedDispatchRegion();
|
||||
Object other$sharedDispatchRegion = other.getSharedDispatchRegion();
|
||||
if (this$sharedDispatchRegion == null) {
|
||||
if (other$sharedDispatchRegion != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sharedDispatchRegion.equals(other$sharedDispatchRegion)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
||||
Object other$sharedAdjacentRegionClassification = other.getSharedAdjacentRegionClassification();
|
||||
if (this$sharedAdjacentRegionClassification == null) {
|
||||
if (other$sharedAdjacentRegionClassification != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sharedAdjacentRegionClassification.equals(other$sharedAdjacentRegionClassification)) {
|
||||
return false;
|
||||
}
|
||||
Object this$sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
||||
Object other$sharedAdjacentRegionClassification = other.getSharedAdjacentRegionClassification();
|
||||
if (this$sharedAdjacentRegionClassification == null) {
|
||||
if (other$sharedAdjacentRegionClassification != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$sharedAdjacentRegionClassification.equals(
|
||||
other$sharedAdjacentRegionClassification)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$aAssignmentDates = this.getAAssignmentDates();
|
||||
Object other$aAssignmentDates = other.getAAssignmentDates();
|
||||
if (this$aAssignmentDates == null) {
|
||||
if (other$aAssignmentDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$aAssignmentDates.equals(other$aAssignmentDates)) {
|
||||
return false;
|
||||
}
|
||||
Object this$aAssignmentDates = this.getAAssignmentDates();
|
||||
Object other$aAssignmentDates = other.getAAssignmentDates();
|
||||
if (this$aAssignmentDates == null) {
|
||||
if (other$aAssignmentDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$aAssignmentDates.equals(other$aAssignmentDates)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$bAssignmentDates = this.getBAssignmentDates();
|
||||
Object other$bAssignmentDates = other.getBAssignmentDates();
|
||||
if (this$bAssignmentDates == null) {
|
||||
if (other$bAssignmentDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$bAssignmentDates.equals(other$bAssignmentDates)) {
|
||||
return false;
|
||||
}
|
||||
Object this$bAssignmentDates = this.getBAssignmentDates();
|
||||
Object other$bAssignmentDates = other.getBAssignmentDates();
|
||||
if (this$bAssignmentDates == null) {
|
||||
if (other$bAssignmentDates != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$bAssignmentDates.equals(other$bAssignmentDates)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$dateOverlapped = this.getDateOverlapped();
|
||||
Object other$dateOverlapped = other.getDateOverlapped();
|
||||
if (this$dateOverlapped == null) {
|
||||
if (other$dateOverlapped != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$dateOverlapped.equals(other$dateOverlapped)) {
|
||||
return false;
|
||||
}
|
||||
Object this$dateOverlapped = this.getDateOverlapped();
|
||||
Object other$dateOverlapped = other.getDateOverlapped();
|
||||
if (this$dateOverlapped == null) {
|
||||
if (other$dateOverlapped != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$dateOverlapped.equals(other$dateOverlapped)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof ABPairExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof ABPairExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $groupId = this.getGroupId();
|
||||
result = result * 59 + ($groupId == null ? 43 : $groupId.hashCode());
|
||||
Object $aFieldMemberId = this.getAFieldMemberId();
|
||||
result = result * 59 + ($aFieldMemberId == null ? 43 : $aFieldMemberId.hashCode());
|
||||
Object $aExternalMemberId = this.getAExternalMemberId();
|
||||
result = result * 59 + ($aExternalMemberId == null ? 43 : $aExternalMemberId.hashCode());
|
||||
Object $bFieldMemberId = this.getBFieldMemberId();
|
||||
result = result * 59 + ($bFieldMemberId == null ? 43 : $bFieldMemberId.hashCode());
|
||||
Object $bExternalMemberId = this.getBExternalMemberId();
|
||||
result = result * 59 + ($bExternalMemberId == null ? 43 : $bExternalMemberId.hashCode());
|
||||
Object $sharedDispatchRegion = this.getSharedDispatchRegion();
|
||||
result = result * 59 + ($sharedDispatchRegion == null ? 43 : $sharedDispatchRegion.hashCode());
|
||||
Object $sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
||||
result = result * 59 + ($sharedAdjacentRegionClassification == null ? 43 : $sharedAdjacentRegionClassification.hashCode());
|
||||
Object $aAssignmentDates = this.getAAssignmentDates();
|
||||
result = result * 59 + ($aAssignmentDates == null ? 43 : $aAssignmentDates.hashCode());
|
||||
Object $bAssignmentDates = this.getBAssignmentDates();
|
||||
result = result * 59 + ($bAssignmentDates == null ? 43 : $bAssignmentDates.hashCode());
|
||||
Object $dateOverlapped = this.getDateOverlapped();
|
||||
result = result * 59 + ($dateOverlapped == null ? 43 : $dateOverlapped.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $groupId = this.getGroupId();
|
||||
result = result * 59 + ($groupId == null ? 43 : $groupId.hashCode());
|
||||
Object $aFieldMemberId = this.getAFieldMemberId();
|
||||
result = result * 59 + ($aFieldMemberId == null ? 43 : $aFieldMemberId.hashCode());
|
||||
Object $aExternalMemberId = this.getAExternalMemberId();
|
||||
result = result * 59 + ($aExternalMemberId == null ? 43 : $aExternalMemberId.hashCode());
|
||||
Object $bFieldMemberId = this.getBFieldMemberId();
|
||||
result = result * 59 + ($bFieldMemberId == null ? 43 : $bFieldMemberId.hashCode());
|
||||
Object $bExternalMemberId = this.getBExternalMemberId();
|
||||
result = result * 59 + ($bExternalMemberId == null ? 43 : $bExternalMemberId.hashCode());
|
||||
Object $sharedDispatchRegion = this.getSharedDispatchRegion();
|
||||
result = result * 59 + ($sharedDispatchRegion == null ? 43 : $sharedDispatchRegion.hashCode());
|
||||
Object $sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
||||
result = result * 59 + ($sharedAdjacentRegionClassification == null ? 43
|
||||
: $sharedAdjacentRegionClassification.hashCode());
|
||||
Object $aAssignmentDates = this.getAAssignmentDates();
|
||||
result = result * 59 + ($aAssignmentDates == null ? 43 : $aAssignmentDates.hashCode());
|
||||
Object $bAssignmentDates = this.getBAssignmentDates();
|
||||
result = result * 59 + ($bAssignmentDates == null ? 43 : $bAssignmentDates.hashCode());
|
||||
Object $dateOverlapped = this.getDateOverlapped();
|
||||
result = result * 59 + ($dateOverlapped == null ? 43 : $dateOverlapped.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getGroupId();
|
||||
return "ABPairExcelDto(groupId=" + var10000 + ", aFieldMemberId=" + this.getAFieldMemberId() + ", aExternalMemberId=" + this.getAExternalMemberId() + ", bFieldMemberId=" + this.getBFieldMemberId() + ", bExternalMemberId=" + this.getBExternalMemberId() + ", sharedDispatchRegion=" + this.getSharedDispatchRegion() + ", sharedAdjacentRegionClassification=" + this.getSharedAdjacentRegionClassification() + ", aAssignmentDates=" + this.getAAssignmentDates() + ", bAssignmentDates=" + this.getBAssignmentDates() + ", dateOverlapped=" + this.getDateOverlapped() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getGroupId();
|
||||
return "ABPairExcelDto(groupId=" + var10000 + ", aFieldMemberId=" + this.getAFieldMemberId()
|
||||
+ ", aExternalMemberId=" + this.getAExternalMemberId() + ", bFieldMemberId="
|
||||
+ this.getBFieldMemberId() + ", bExternalMemberId=" + this.getBExternalMemberId()
|
||||
+ ", sharedDispatchRegion=" + this.getSharedDispatchRegion()
|
||||
+ ", sharedAdjacentRegionClassification=" + this.getSharedAdjacentRegionClassification()
|
||||
+ ", aAssignmentDates=" + this.getAAssignmentDates() + ", bAssignmentDates="
|
||||
+ this.getBAssignmentDates() + ", dateOverlapped=" + this.getDateOverlapped() + ")";
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairExcelDto() {
|
||||
}
|
||||
@Generated
|
||||
public ABPairExcelDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairExcelDto(final String groupId, final String aFieldMemberId, final String aExternalMemberId, final String bFieldMemberId, final String bExternalMemberId, final String sharedDispatchRegion, final String sharedAdjacentRegionClassification, final String aAssignmentDates, final String bAssignmentDates, final String dateOverlapped) {
|
||||
this.groupId = groupId;
|
||||
this.aFieldMemberId = aFieldMemberId;
|
||||
this.aExternalMemberId = aExternalMemberId;
|
||||
this.bFieldMemberId = bFieldMemberId;
|
||||
this.bExternalMemberId = bExternalMemberId;
|
||||
this.sharedDispatchRegion = sharedDispatchRegion;
|
||||
this.sharedAdjacentRegionClassification = sharedAdjacentRegionClassification;
|
||||
this.aAssignmentDates = aAssignmentDates;
|
||||
this.bAssignmentDates = bAssignmentDates;
|
||||
this.dateOverlapped = dateOverlapped;
|
||||
}
|
||||
@Generated
|
||||
public ABPairExcelDto(final String groupId, final String aFieldMemberId,
|
||||
final String aExternalMemberId, final String bFieldMemberId, final String bExternalMemberId,
|
||||
final String sharedDispatchRegion, final String sharedAdjacentRegionClassification,
|
||||
final String aAssignmentDates, final String bAssignmentDates, final String dateOverlapped) {
|
||||
this.groupId = groupId;
|
||||
this.aFieldMemberId = aFieldMemberId;
|
||||
this.aExternalMemberId = aExternalMemberId;
|
||||
this.bFieldMemberId = bFieldMemberId;
|
||||
this.bExternalMemberId = bExternalMemberId;
|
||||
this.sharedDispatchRegion = sharedDispatchRegion;
|
||||
this.sharedAdjacentRegionClassification = sharedAdjacentRegionClassification;
|
||||
this.aAssignmentDates = aAssignmentDates;
|
||||
this.bAssignmentDates = bAssignmentDates;
|
||||
this.dateOverlapped = dateOverlapped;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,133 +4,135 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class CandidateSummaryExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "항목",
|
||||
order = 0,
|
||||
width = 30
|
||||
)
|
||||
private String name;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String name;
|
||||
@ExcelColumn(
|
||||
header = "값",
|
||||
order = 1,
|
||||
width = 20
|
||||
)
|
||||
private String value;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String value;
|
||||
@ExcelColumn(
|
||||
header = "설명",
|
||||
order = 2,
|
||||
width = 50
|
||||
)
|
||||
private String description;
|
||||
)
|
||||
private String description;
|
||||
|
||||
@Generated
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
@Generated
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
@Generated
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDescription() {
|
||||
return this.description;
|
||||
}
|
||||
@Generated
|
||||
public String getDescription() {
|
||||
return this.description;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setName(final String name) {
|
||||
this.name = name;
|
||||
}
|
||||
@Generated
|
||||
public void setName(final String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setValue(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@Generated
|
||||
public void setValue(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDescription(final String description) {
|
||||
this.description = description;
|
||||
}
|
||||
@Generated
|
||||
public void setDescription(final String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CandidateSummaryExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof CandidateSummaryExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
CandidateSummaryExcelDto other = (CandidateSummaryExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
CandidateSummaryExcelDto other = (CandidateSummaryExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$name = this.getName();
|
||||
Object other$name = other.getName();
|
||||
if (this$name == null) {
|
||||
if (other$name != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$name = this.getName();
|
||||
Object other$name = other.getName();
|
||||
if (this$name == null) {
|
||||
if (other$name != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$name.equals(other$name)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$name.equals(other$name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$value = this.getValue();
|
||||
Object other$value = other.getValue();
|
||||
if (this$value == null) {
|
||||
if (other$value != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$value.equals(other$value)) {
|
||||
return false;
|
||||
}
|
||||
Object this$value = this.getValue();
|
||||
Object other$value = other.getValue();
|
||||
if (this$value == null) {
|
||||
if (other$value != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$value.equals(other$value)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$description = this.getDescription();
|
||||
Object other$description = other.getDescription();
|
||||
if (this$description == null) {
|
||||
if (other$description != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$description.equals(other$description)) {
|
||||
return false;
|
||||
}
|
||||
Object this$description = this.getDescription();
|
||||
Object other$description = other.getDescription();
|
||||
if (this$description == null) {
|
||||
if (other$description != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$description.equals(other$description)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CandidateSummaryExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof CandidateSummaryExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $name = this.getName();
|
||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||
Object $value = this.getValue();
|
||||
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
||||
Object $description = this.getDescription();
|
||||
result = result * 59 + ($description == null ? 43 : $description.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $name = this.getName();
|
||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||
Object $value = this.getValue();
|
||||
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
||||
Object $description = this.getDescription();
|
||||
result = result * 59 + ($description == null ? 43 : $description.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getName();
|
||||
return "CandidateSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue() + ", description=" + this.getDescription() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getName();
|
||||
return "CandidateSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue()
|
||||
+ ", description=" + this.getDescription() + ")";
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CandidateSummaryExcelDto() {
|
||||
}
|
||||
@Generated
|
||||
public CandidateSummaryExcelDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CandidateSummaryExcelDto(final String name, final String value, final String description) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
}
|
||||
@Generated
|
||||
public CandidateSummaryExcelDto(final String name, final String value, final String description) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
this.description = description;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,104 +4,105 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PairingSummaryExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "항목",
|
||||
order = 0,
|
||||
width = 25
|
||||
)
|
||||
private String name;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String name;
|
||||
@ExcelColumn(
|
||||
header = "값",
|
||||
order = 1,
|
||||
width = 20
|
||||
)
|
||||
private String value;
|
||||
)
|
||||
private String value;
|
||||
|
||||
@Generated
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
@Generated
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
@Generated
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setName(final String name) {
|
||||
this.name = name;
|
||||
}
|
||||
@Generated
|
||||
public void setName(final String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setValue(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
@Generated
|
||||
public void setValue(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof PairingSummaryExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof PairingSummaryExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
PairingSummaryExcelDto other = (PairingSummaryExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
PairingSummaryExcelDto other = (PairingSummaryExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$name = this.getName();
|
||||
Object other$name = other.getName();
|
||||
if (this$name == null) {
|
||||
if (other$name != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$name = this.getName();
|
||||
Object other$name = other.getName();
|
||||
if (this$name == null) {
|
||||
if (other$name != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$name.equals(other$name)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$name.equals(other$name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$value = this.getValue();
|
||||
Object other$value = other.getValue();
|
||||
if (this$value == null) {
|
||||
if (other$value != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$value.equals(other$value)) {
|
||||
return false;
|
||||
}
|
||||
Object this$value = this.getValue();
|
||||
Object other$value = other.getValue();
|
||||
if (this$value == null) {
|
||||
if (other$value != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$value.equals(other$value)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof PairingSummaryExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof PairingSummaryExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $name = this.getName();
|
||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||
Object $value = this.getValue();
|
||||
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $name = this.getName();
|
||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||
Object $value = this.getValue();
|
||||
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getName();
|
||||
return "PairingSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getName();
|
||||
return "PairingSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue() + ")";
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingSummaryExcelDto() {
|
||||
}
|
||||
@Generated
|
||||
public PairingSummaryExcelDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingSummaryExcelDto(final String name, final String value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
@Generated
|
||||
public PairingSummaryExcelDto(final String name, final String value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,133 +4,135 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class RuleViolationExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "검사 항목",
|
||||
order = 0,
|
||||
width = 35
|
||||
)
|
||||
private String ruleName;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String ruleName;
|
||||
@ExcelColumn(
|
||||
header = "결과",
|
||||
order = 1,
|
||||
width = 12
|
||||
)
|
||||
private String result;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String result;
|
||||
@ExcelColumn(
|
||||
header = "상세",
|
||||
order = 2,
|
||||
width = 80
|
||||
)
|
||||
private String detail;
|
||||
)
|
||||
private String detail;
|
||||
|
||||
@Generated
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
@Generated
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getResult() {
|
||||
return this.result;
|
||||
}
|
||||
@Generated
|
||||
public String getResult() {
|
||||
return this.result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDetail() {
|
||||
return this.detail;
|
||||
}
|
||||
@Generated
|
||||
public String getDetail() {
|
||||
return this.detail;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setRuleName(final String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
@Generated
|
||||
public void setRuleName(final String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setResult(final String result) {
|
||||
this.result = result;
|
||||
}
|
||||
@Generated
|
||||
public void setResult(final String result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setDetail(final String detail) {
|
||||
this.detail = detail;
|
||||
}
|
||||
@Generated
|
||||
public void setDetail(final String detail) {
|
||||
this.detail = detail;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof RuleViolationExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof RuleViolationExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
RuleViolationExcelDto other = (RuleViolationExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
RuleViolationExcelDto other = (RuleViolationExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$ruleName = this.getRuleName();
|
||||
Object other$ruleName = other.getRuleName();
|
||||
if (this$ruleName == null) {
|
||||
if (other$ruleName != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$ruleName = this.getRuleName();
|
||||
Object other$ruleName = other.getRuleName();
|
||||
if (this$ruleName == null) {
|
||||
if (other$ruleName != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$ruleName.equals(other$ruleName)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$ruleName.equals(other$ruleName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$result = this.getResult();
|
||||
Object other$result = other.getResult();
|
||||
if (this$result == null) {
|
||||
if (other$result != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$result.equals(other$result)) {
|
||||
return false;
|
||||
}
|
||||
Object this$result = this.getResult();
|
||||
Object other$result = other.getResult();
|
||||
if (this$result == null) {
|
||||
if (other$result != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$result.equals(other$result)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$detail = this.getDetail();
|
||||
Object other$detail = other.getDetail();
|
||||
if (this$detail == null) {
|
||||
if (other$detail != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$detail.equals(other$detail)) {
|
||||
return false;
|
||||
}
|
||||
Object this$detail = this.getDetail();
|
||||
Object other$detail = other.getDetail();
|
||||
if (this$detail == null) {
|
||||
if (other$detail != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$detail.equals(other$detail)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof RuleViolationExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof RuleViolationExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $ruleName = this.getRuleName();
|
||||
result = result * 59 + ($ruleName == null ? 43 : $ruleName.hashCode());
|
||||
Object $result = this.getResult();
|
||||
result = result * 59 + ($result == null ? 43 : $result.hashCode());
|
||||
Object $detail = this.getDetail();
|
||||
result = result * 59 + ($detail == null ? 43 : $detail.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $ruleName = this.getRuleName();
|
||||
result = result * 59 + ($ruleName == null ? 43 : $ruleName.hashCode());
|
||||
Object $result = this.getResult();
|
||||
result = result * 59 + ($result == null ? 43 : $result.hashCode());
|
||||
Object $detail = this.getDetail();
|
||||
result = result * 59 + ($detail == null ? 43 : $detail.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getRuleName();
|
||||
return "RuleViolationExcelDto(ruleName=" + var10000 + ", result=" + this.getResult() + ", detail=" + this.getDetail() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getRuleName();
|
||||
return "RuleViolationExcelDto(ruleName=" + var10000 + ", result=" + this.getResult()
|
||||
+ ", detail=" + this.getDetail() + ")";
|
||||
}
|
||||
|
||||
@Generated
|
||||
public RuleViolationExcelDto() {
|
||||
}
|
||||
@Generated
|
||||
public RuleViolationExcelDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public RuleViolationExcelDto(final String ruleName, final String result, final String detail) {
|
||||
this.ruleName = ruleName;
|
||||
this.result = result;
|
||||
this.detail = detail;
|
||||
}
|
||||
@Generated
|
||||
public RuleViolationExcelDto(final String ruleName, final String result, final String detail) {
|
||||
this.ruleName = ruleName;
|
||||
this.result = result;
|
||||
this.detail = detail;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,133 +4,136 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class UnassignedCenterExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "센터 id",
|
||||
order = 0,
|
||||
width = 15
|
||||
)
|
||||
private String centerId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String centerId;
|
||||
@ExcelColumn(
|
||||
header = "지자체 id",
|
||||
order = 1,
|
||||
width = 15
|
||||
)
|
||||
private String municipalityId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String municipalityId;
|
||||
@ExcelColumn(
|
||||
header = "사유",
|
||||
order = 2,
|
||||
width = 40
|
||||
)
|
||||
private String reason;
|
||||
)
|
||||
private String reason;
|
||||
|
||||
@Generated
|
||||
public String getCenterId() {
|
||||
return this.centerId;
|
||||
}
|
||||
@Generated
|
||||
public String getCenterId() {
|
||||
return this.centerId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getReason() {
|
||||
return this.reason;
|
||||
}
|
||||
@Generated
|
||||
public String getReason() {
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setCenterId(final String centerId) {
|
||||
this.centerId = centerId;
|
||||
}
|
||||
@Generated
|
||||
public void setCenterId(final String centerId) {
|
||||
this.centerId = centerId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setMunicipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
}
|
||||
@Generated
|
||||
public void setMunicipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setReason(final String reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
@Generated
|
||||
public void setReason(final String reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof UnassignedCenterExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof UnassignedCenterExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
UnassignedCenterExcelDto other = (UnassignedCenterExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
UnassignedCenterExcelDto other = (UnassignedCenterExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$centerId = this.getCenterId();
|
||||
Object other$centerId = other.getCenterId();
|
||||
if (this$centerId == null) {
|
||||
if (other$centerId != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$centerId = this.getCenterId();
|
||||
Object other$centerId = other.getCenterId();
|
||||
if (this$centerId == null) {
|
||||
if (other$centerId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$centerId.equals(other$centerId)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$centerId.equals(other$centerId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$municipalityId = this.getMunicipalityId();
|
||||
Object other$municipalityId = other.getMunicipalityId();
|
||||
if (this$municipalityId == null) {
|
||||
if (other$municipalityId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
||||
return false;
|
||||
}
|
||||
Object this$municipalityId = this.getMunicipalityId();
|
||||
Object other$municipalityId = other.getMunicipalityId();
|
||||
if (this$municipalityId == null) {
|
||||
if (other$municipalityId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$reason = this.getReason();
|
||||
Object other$reason = other.getReason();
|
||||
if (this$reason == null) {
|
||||
if (other$reason != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$reason.equals(other$reason)) {
|
||||
return false;
|
||||
}
|
||||
Object this$reason = this.getReason();
|
||||
Object other$reason = other.getReason();
|
||||
if (this$reason == null) {
|
||||
if (other$reason != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$reason.equals(other$reason)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof UnassignedCenterExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof UnassignedCenterExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $centerId = this.getCenterId();
|
||||
result = result * 59 + ($centerId == null ? 43 : $centerId.hashCode());
|
||||
Object $municipalityId = this.getMunicipalityId();
|
||||
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
||||
Object $reason = this.getReason();
|
||||
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $centerId = this.getCenterId();
|
||||
result = result * 59 + ($centerId == null ? 43 : $centerId.hashCode());
|
||||
Object $municipalityId = this.getMunicipalityId();
|
||||
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
||||
Object $reason = this.getReason();
|
||||
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getCenterId();
|
||||
return "UnassignedCenterExcelDto(centerId=" + var10000 + ", municipalityId=" + this.getMunicipalityId() + ", reason=" + this.getReason() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getCenterId();
|
||||
return "UnassignedCenterExcelDto(centerId=" + var10000 + ", municipalityId="
|
||||
+ this.getMunicipalityId() + ", reason=" + this.getReason() + ")";
|
||||
}
|
||||
|
||||
@Generated
|
||||
public UnassignedCenterExcelDto() {
|
||||
}
|
||||
@Generated
|
||||
public UnassignedCenterExcelDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public UnassignedCenterExcelDto(final String centerId, final String municipalityId, final String reason) {
|
||||
this.centerId = centerId;
|
||||
this.municipalityId = municipalityId;
|
||||
this.reason = reason;
|
||||
}
|
||||
@Generated
|
||||
public UnassignedCenterExcelDto(final String centerId, final String municipalityId,
|
||||
final String reason) {
|
||||
this.centerId = centerId;
|
||||
this.municipalityId = municipalityId;
|
||||
this.reason = reason;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,133 +4,135 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class UnusedMemberExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "위원 id",
|
||||
order = 0,
|
||||
width = 15
|
||||
)
|
||||
private String memberId;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String memberId;
|
||||
@ExcelColumn(
|
||||
header = "현장/외부 구분",
|
||||
order = 1,
|
||||
width = 15
|
||||
)
|
||||
private String role;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String role;
|
||||
@ExcelColumn(
|
||||
header = "사유",
|
||||
order = 2,
|
||||
width = 40
|
||||
)
|
||||
private String reason;
|
||||
)
|
||||
private String reason;
|
||||
|
||||
@Generated
|
||||
public String getMemberId() {
|
||||
return this.memberId;
|
||||
}
|
||||
@Generated
|
||||
public String getMemberId() {
|
||||
return this.memberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getRole() {
|
||||
return this.role;
|
||||
}
|
||||
@Generated
|
||||
public String getRole() {
|
||||
return this.role;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getReason() {
|
||||
return this.reason;
|
||||
}
|
||||
@Generated
|
||||
public String getReason() {
|
||||
return this.reason;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setMemberId(final String memberId) {
|
||||
this.memberId = memberId;
|
||||
}
|
||||
@Generated
|
||||
public void setMemberId(final String memberId) {
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setRole(final String role) {
|
||||
this.role = role;
|
||||
}
|
||||
@Generated
|
||||
public void setRole(final String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setReason(final String reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
@Generated
|
||||
public void setReason(final String reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof UnusedMemberExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof UnusedMemberExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
UnusedMemberExcelDto other = (UnusedMemberExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
UnusedMemberExcelDto other = (UnusedMemberExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$memberId = this.getMemberId();
|
||||
Object other$memberId = other.getMemberId();
|
||||
if (this$memberId == null) {
|
||||
if (other$memberId != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$memberId = this.getMemberId();
|
||||
Object other$memberId = other.getMemberId();
|
||||
if (this$memberId == null) {
|
||||
if (other$memberId != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$memberId.equals(other$memberId)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$memberId.equals(other$memberId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$role = this.getRole();
|
||||
Object other$role = other.getRole();
|
||||
if (this$role == null) {
|
||||
if (other$role != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$role.equals(other$role)) {
|
||||
return false;
|
||||
}
|
||||
Object this$role = this.getRole();
|
||||
Object other$role = other.getRole();
|
||||
if (this$role == null) {
|
||||
if (other$role != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$role.equals(other$role)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$reason = this.getReason();
|
||||
Object other$reason = other.getReason();
|
||||
if (this$reason == null) {
|
||||
if (other$reason != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$reason.equals(other$reason)) {
|
||||
return false;
|
||||
}
|
||||
Object this$reason = this.getReason();
|
||||
Object other$reason = other.getReason();
|
||||
if (this$reason == null) {
|
||||
if (other$reason != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$reason.equals(other$reason)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof UnusedMemberExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof UnusedMemberExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $memberId = this.getMemberId();
|
||||
result = result * 59 + ($memberId == null ? 43 : $memberId.hashCode());
|
||||
Object $role = this.getRole();
|
||||
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
||||
Object $reason = this.getReason();
|
||||
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $memberId = this.getMemberId();
|
||||
result = result * 59 + ($memberId == null ? 43 : $memberId.hashCode());
|
||||
Object $role = this.getRole();
|
||||
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
||||
Object $reason = this.getReason();
|
||||
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getMemberId();
|
||||
return "UnusedMemberExcelDto(memberId=" + var10000 + ", role=" + this.getRole() + ", reason=" + this.getReason() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getMemberId();
|
||||
return "UnusedMemberExcelDto(memberId=" + var10000 + ", role=" + this.getRole() + ", reason="
|
||||
+ this.getReason() + ")";
|
||||
}
|
||||
|
||||
@Generated
|
||||
public UnusedMemberExcelDto() {
|
||||
}
|
||||
@Generated
|
||||
public UnusedMemberExcelDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public UnusedMemberExcelDto(final String memberId, final String role, final String reason) {
|
||||
this.memberId = memberId;
|
||||
this.role = role;
|
||||
this.reason = reason;
|
||||
}
|
||||
@Generated
|
||||
public UnusedMemberExcelDto(final String memberId, final String role, final String reason) {
|
||||
this.memberId = memberId;
|
||||
this.role = role;
|
||||
this.reason = reason;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,133 +4,135 @@ import com.kri.common.feature.excel.ExcelColumn;
|
||||
import lombok.Generated;
|
||||
|
||||
public class ValidationErrorExcelDto {
|
||||
@ExcelColumn(
|
||||
|
||||
@ExcelColumn(
|
||||
header = "오류 코드",
|
||||
order = 0,
|
||||
width = 25
|
||||
)
|
||||
private String code;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String code;
|
||||
@ExcelColumn(
|
||||
header = "오류 메시지",
|
||||
order = 1,
|
||||
width = 80
|
||||
)
|
||||
private String message;
|
||||
@ExcelColumn(
|
||||
)
|
||||
private String message;
|
||||
@ExcelColumn(
|
||||
header = "구분",
|
||||
order = 2,
|
||||
width = 15
|
||||
)
|
||||
private String type;
|
||||
)
|
||||
private String type;
|
||||
|
||||
@Generated
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
@Generated
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
@Generated
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
@Generated
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setCode(final String code) {
|
||||
this.code = code;
|
||||
}
|
||||
@Generated
|
||||
public void setCode(final String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setMessage(final String message) {
|
||||
this.message = message;
|
||||
}
|
||||
@Generated
|
||||
public void setMessage(final String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public void setType(final String type) {
|
||||
this.type = type;
|
||||
}
|
||||
@Generated
|
||||
public void setType(final String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof ValidationErrorExcelDto)) {
|
||||
return false;
|
||||
@Generated
|
||||
public boolean equals(final Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
} else if (!(o instanceof ValidationErrorExcelDto)) {
|
||||
return false;
|
||||
} else {
|
||||
ValidationErrorExcelDto other = (ValidationErrorExcelDto) o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
} else {
|
||||
ValidationErrorExcelDto other = (ValidationErrorExcelDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
Object this$code = this.getCode();
|
||||
Object other$code = other.getCode();
|
||||
if (this$code == null) {
|
||||
if (other$code != null) {
|
||||
return false;
|
||||
} else {
|
||||
Object this$code = this.getCode();
|
||||
Object other$code = other.getCode();
|
||||
if (this$code == null) {
|
||||
if (other$code != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$code.equals(other$code)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!this$code.equals(other$code)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$message = this.getMessage();
|
||||
Object other$message = other.getMessage();
|
||||
if (this$message == null) {
|
||||
if (other$message != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$message.equals(other$message)) {
|
||||
return false;
|
||||
}
|
||||
Object this$message = this.getMessage();
|
||||
Object other$message = other.getMessage();
|
||||
if (this$message == null) {
|
||||
if (other$message != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$message.equals(other$message)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object this$type = this.getType();
|
||||
Object other$type = other.getType();
|
||||
if (this$type == null) {
|
||||
if (other$type != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$type.equals(other$type)) {
|
||||
return false;
|
||||
}
|
||||
Object this$type = this.getType();
|
||||
Object other$type = other.getType();
|
||||
if (this$type == null) {
|
||||
if (other$type != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (!this$type.equals(other$type)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof ValidationErrorExcelDto;
|
||||
}
|
||||
@Generated
|
||||
protected boolean canEqual(final Object other) {
|
||||
return other instanceof ValidationErrorExcelDto;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $code = this.getCode();
|
||||
result = result * 59 + ($code == null ? 43 : $code.hashCode());
|
||||
Object $message = this.getMessage();
|
||||
result = result * 59 + ($message == null ? 43 : $message.hashCode());
|
||||
Object $type = this.getType();
|
||||
result = result * 59 + ($type == null ? 43 : $type.hashCode());
|
||||
return result;
|
||||
}
|
||||
@Generated
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
Object $code = this.getCode();
|
||||
result = result * 59 + ($code == null ? 43 : $code.hashCode());
|
||||
Object $message = this.getMessage();
|
||||
result = result * 59 + ($message == null ? 43 : $message.hashCode());
|
||||
Object $type = this.getType();
|
||||
result = result * 59 + ($type == null ? 43 : $type.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getCode();
|
||||
return "ValidationErrorExcelDto(code=" + var10000 + ", message=" + this.getMessage() + ", type=" + this.getType() + ")";
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.getCode();
|
||||
return "ValidationErrorExcelDto(code=" + var10000 + ", message=" + this.getMessage() + ", type="
|
||||
+ this.getType() + ")";
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ValidationErrorExcelDto() {
|
||||
}
|
||||
@Generated
|
||||
public ValidationErrorExcelDto() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ValidationErrorExcelDto(final String code, final String message, final String type) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
this.type = type;
|
||||
}
|
||||
@Generated
|
||||
public ValidationErrorExcelDto(final String code, final String message, final String type) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,106 +3,114 @@ package com.kri.p6.ncrc.pairing.model;
|
||||
import lombok.Generated;
|
||||
|
||||
public class ABPairMatch {
|
||||
private final String groupId;
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final String counterpartFieldMemberId;
|
||||
private final String counterpartExternalMemberId;
|
||||
|
||||
@Generated
|
||||
ABPairMatch(final String groupId, final String fieldMemberId, final String externalMemberId, final String counterpartFieldMemberId, final String counterpartExternalMemberId) {
|
||||
private final String groupId;
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final String counterpartFieldMemberId;
|
||||
private final String counterpartExternalMemberId;
|
||||
|
||||
@Generated
|
||||
ABPairMatch(final String groupId, final String fieldMemberId, final String externalMemberId,
|
||||
final String counterpartFieldMemberId, final String counterpartExternalMemberId) {
|
||||
this.groupId = groupId;
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
this.externalMemberId = externalMemberId;
|
||||
this.counterpartFieldMemberId = counterpartFieldMemberId;
|
||||
this.counterpartExternalMemberId = counterpartExternalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static ABPairMatchBuilder builder() {
|
||||
return new ABPairMatchBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getGroupId() {
|
||||
return this.groupId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getCounterpartFieldMemberId() {
|
||||
return this.counterpartFieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getCounterpartExternalMemberId() {
|
||||
return this.counterpartExternalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class ABPairMatchBuilder {
|
||||
|
||||
@Generated
|
||||
private String groupId;
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private String counterpartFieldMemberId;
|
||||
@Generated
|
||||
private String counterpartExternalMemberId;
|
||||
|
||||
@Generated
|
||||
ABPairMatchBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder groupId(final String groupId) {
|
||||
this.groupId = groupId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder counterpartFieldMemberId(final String counterpartFieldMemberId) {
|
||||
this.counterpartFieldMemberId = counterpartFieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder counterpartExternalMemberId(
|
||||
final String counterpartExternalMemberId) {
|
||||
this.counterpartExternalMemberId = counterpartExternalMemberId;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static ABPairMatchBuilder builder() {
|
||||
return new ABPairMatchBuilder();
|
||||
}
|
||||
@Generated
|
||||
public ABPairMatch build() {
|
||||
return new ABPairMatch(this.groupId, this.fieldMemberId, this.externalMemberId,
|
||||
this.counterpartFieldMemberId, this.counterpartExternalMemberId);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getGroupId() {
|
||||
return this.groupId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getCounterpartFieldMemberId() {
|
||||
return this.counterpartFieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getCounterpartExternalMemberId() {
|
||||
return this.counterpartExternalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class ABPairMatchBuilder {
|
||||
@Generated
|
||||
private String groupId;
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private String counterpartFieldMemberId;
|
||||
@Generated
|
||||
private String counterpartExternalMemberId;
|
||||
|
||||
@Generated
|
||||
ABPairMatchBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder groupId(final String groupId) {
|
||||
this.groupId = groupId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder counterpartFieldMemberId(final String counterpartFieldMemberId) {
|
||||
this.counterpartFieldMemberId = counterpartFieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatchBuilder counterpartExternalMemberId(final String counterpartExternalMemberId) {
|
||||
this.counterpartExternalMemberId = counterpartExternalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ABPairMatch build() {
|
||||
return new ABPairMatch(this.groupId, this.fieldMemberId, this.externalMemberId, this.counterpartFieldMemberId, this.counterpartExternalMemberId);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "ABPairMatch.ABPairMatchBuilder(groupId=" + this.groupId + ", fieldMemberId=" + this.fieldMemberId + ", externalMemberId=" + this.externalMemberId + ", counterpartFieldMemberId=" + this.counterpartFieldMemberId + ", counterpartExternalMemberId=" + this.counterpartExternalMemberId + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "ABPairMatch.ABPairMatchBuilder(groupId=" + this.groupId + ", fieldMemberId="
|
||||
+ this.fieldMemberId + ", externalMemberId=" + this.externalMemberId
|
||||
+ ", counterpartFieldMemberId=" + this.counterpartFieldMemberId
|
||||
+ ", counterpartExternalMemberId=" + this.counterpartExternalMemberId + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,197 +4,216 @@ import java.time.LocalDate;
|
||||
import lombok.Generated;
|
||||
|
||||
public class AssignmentCandidate {
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final String centerId;
|
||||
private final String municipalityId;
|
||||
private final LocalDate date;
|
||||
private final String dispatchRegion;
|
||||
private final String adjacentRegionClassification;
|
||||
private final int preferencePriority;
|
||||
private final int fieldMemberPreferenceRank;
|
||||
private final int externalMemberPreferenceRank;
|
||||
private final int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
AssignmentCandidate(final String fieldMemberId, final String externalMemberId, final String centerId, final String municipalityId, final LocalDate date, final String dispatchRegion, final String adjacentRegionClassification, final int preferencePriority, final int fieldMemberPreferenceRank, final int externalMemberPreferenceRank, final int residenceMatchScore) {
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final String centerId;
|
||||
private final String municipalityId;
|
||||
private final LocalDate date;
|
||||
private final String dispatchRegion;
|
||||
private final String adjacentRegionClassification;
|
||||
private final int preferencePriority;
|
||||
private final int fieldMemberPreferenceRank;
|
||||
private final int externalMemberPreferenceRank;
|
||||
private final int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
AssignmentCandidate(final String fieldMemberId, final String externalMemberId,
|
||||
final String centerId, final String municipalityId, final LocalDate date,
|
||||
final String dispatchRegion, final String adjacentRegionClassification,
|
||||
final int preferencePriority, final int fieldMemberPreferenceRank,
|
||||
final int externalMemberPreferenceRank, final int residenceMatchScore) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
this.externalMemberId = externalMemberId;
|
||||
this.centerId = centerId;
|
||||
this.municipalityId = municipalityId;
|
||||
this.date = date;
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
this.preferencePriority = preferencePriority;
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
this.residenceMatchScore = residenceMatchScore;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static AssignmentCandidateBuilder builder() {
|
||||
return new AssignmentCandidateBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getCenterId() {
|
||||
return this.centerId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getDate() {
|
||||
return this.date;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getPreferencePriority() {
|
||||
return this.preferencePriority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getResidenceMatchScore() {
|
||||
return this.residenceMatchScore;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class AssignmentCandidateBuilder {
|
||||
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private String centerId;
|
||||
@Generated
|
||||
private String municipalityId;
|
||||
@Generated
|
||||
private LocalDate date;
|
||||
@Generated
|
||||
private String dispatchRegion;
|
||||
@Generated
|
||||
private String adjacentRegionClassification;
|
||||
@Generated
|
||||
private int preferencePriority;
|
||||
@Generated
|
||||
private int fieldMemberPreferenceRank;
|
||||
@Generated
|
||||
private int externalMemberPreferenceRank;
|
||||
@Generated
|
||||
private int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
AssignmentCandidateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder centerId(final String centerId) {
|
||||
this.centerId = centerId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder municipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder date(final LocalDate date) {
|
||||
this.date = date;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder dispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder adjacentRegionClassification(
|
||||
final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder preferencePriority(final int preferencePriority) {
|
||||
this.preferencePriority = preferencePriority;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder fieldMemberPreferenceRank(
|
||||
final int fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder externalMemberPreferenceRank(
|
||||
final int externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder residenceMatchScore(final int residenceMatchScore) {
|
||||
this.residenceMatchScore = residenceMatchScore;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static AssignmentCandidateBuilder builder() {
|
||||
return new AssignmentCandidateBuilder();
|
||||
}
|
||||
@Generated
|
||||
public AssignmentCandidate build() {
|
||||
return new AssignmentCandidate(this.fieldMemberId, this.externalMemberId, this.centerId,
|
||||
this.municipalityId, this.date, this.dispatchRegion, this.adjacentRegionClassification,
|
||||
this.preferencePriority, this.fieldMemberPreferenceRank,
|
||||
this.externalMemberPreferenceRank, this.residenceMatchScore);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getCenterId() {
|
||||
return this.centerId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getDate() {
|
||||
return this.date;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getPreferencePriority() {
|
||||
return this.preferencePriority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getResidenceMatchScore() {
|
||||
return this.residenceMatchScore;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class AssignmentCandidateBuilder {
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private String centerId;
|
||||
@Generated
|
||||
private String municipalityId;
|
||||
@Generated
|
||||
private LocalDate date;
|
||||
@Generated
|
||||
private String dispatchRegion;
|
||||
@Generated
|
||||
private String adjacentRegionClassification;
|
||||
@Generated
|
||||
private int preferencePriority;
|
||||
@Generated
|
||||
private int fieldMemberPreferenceRank;
|
||||
@Generated
|
||||
private int externalMemberPreferenceRank;
|
||||
@Generated
|
||||
private int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
AssignmentCandidateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder centerId(final String centerId) {
|
||||
this.centerId = centerId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder municipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder date(final LocalDate date) {
|
||||
this.date = date;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder dispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder adjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder preferencePriority(final int preferencePriority) {
|
||||
this.preferencePriority = preferencePriority;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder fieldMemberPreferenceRank(final int fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder externalMemberPreferenceRank(final int externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidateBuilder residenceMatchScore(final int residenceMatchScore) {
|
||||
this.residenceMatchScore = residenceMatchScore;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public AssignmentCandidate build() {
|
||||
return new AssignmentCandidate(this.fieldMemberId, this.externalMemberId, this.centerId, this.municipalityId, this.date, this.dispatchRegion, this.adjacentRegionClassification, this.preferencePriority, this.fieldMemberPreferenceRank, this.externalMemberPreferenceRank, this.residenceMatchScore);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.fieldMemberId;
|
||||
return "AssignmentCandidate.AssignmentCandidateBuilder(fieldMemberId=" + var10000 + ", externalMemberId=" + this.externalMemberId + ", centerId=" + this.centerId + ", municipalityId=" + this.municipalityId + ", date=" + String.valueOf(this.date) + ", dispatchRegion=" + this.dispatchRegion + ", adjacentRegionClassification=" + this.adjacentRegionClassification + ", preferencePriority=" + this.preferencePriority + ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank + ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank + ", residenceMatchScore=" + this.residenceMatchScore + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.fieldMemberId;
|
||||
return "AssignmentCandidate.AssignmentCandidateBuilder(fieldMemberId=" + var10000
|
||||
+ ", externalMemberId=" + this.externalMemberId + ", centerId=" + this.centerId
|
||||
+ ", municipalityId=" + this.municipalityId + ", date=" + String.valueOf(this.date)
|
||||
+ ", dispatchRegion=" + this.dispatchRegion + ", adjacentRegionClassification="
|
||||
+ this.adjacentRegionClassification + ", preferencePriority=" + this.preferencePriority
|
||||
+ ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank
|
||||
+ ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank
|
||||
+ ", residenceMatchScore=" + this.residenceMatchScore + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,137 +5,147 @@ import java.util.Set;
|
||||
import lombok.Generated;
|
||||
|
||||
public class Center {
|
||||
private final String id;
|
||||
private final String municipalityId;
|
||||
private final boolean womenOnly;
|
||||
private final String adjacentRegionClassification;
|
||||
private final LocalDate availableStartDate;
|
||||
private final LocalDate availableEndDate;
|
||||
private final Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
Center(final String id, final String municipalityId, final boolean womenOnly, final String adjacentRegionClassification, final LocalDate availableStartDate, final LocalDate availableEndDate, final Set<LocalDate> unavailableDates) {
|
||||
private final String id;
|
||||
private final String municipalityId;
|
||||
private final boolean womenOnly;
|
||||
private final String adjacentRegionClassification;
|
||||
private final LocalDate availableStartDate;
|
||||
private final LocalDate availableEndDate;
|
||||
private final Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
Center(final String id, final String municipalityId, final boolean womenOnly,
|
||||
final String adjacentRegionClassification, final LocalDate availableStartDate,
|
||||
final LocalDate availableEndDate, final Set<LocalDate> unavailableDates) {
|
||||
this.id = id;
|
||||
this.municipalityId = municipalityId;
|
||||
this.womenOnly = womenOnly;
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
this.availableStartDate = availableStartDate;
|
||||
this.availableEndDate = availableEndDate;
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static CenterBuilder builder() {
|
||||
return new CenterBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean isWomenOnly() {
|
||||
return this.womenOnly;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class CenterBuilder {
|
||||
|
||||
@Generated
|
||||
private String id;
|
||||
@Generated
|
||||
private String municipalityId;
|
||||
@Generated
|
||||
private boolean womenOnly;
|
||||
@Generated
|
||||
private String adjacentRegionClassification;
|
||||
@Generated
|
||||
private LocalDate availableStartDate;
|
||||
@Generated
|
||||
private LocalDate availableEndDate;
|
||||
@Generated
|
||||
private Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
CenterBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder id(final String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder municipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder womenOnly(final boolean womenOnly) {
|
||||
this.womenOnly = womenOnly;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder adjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static CenterBuilder builder() {
|
||||
return new CenterBuilder();
|
||||
}
|
||||
@Generated
|
||||
public Center build() {
|
||||
return new Center(this.id, this.municipalityId, this.womenOnly,
|
||||
this.adjacentRegionClassification, this.availableStartDate, this.availableEndDate,
|
||||
this.unavailableDates);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getMunicipalityId() {
|
||||
return this.municipalityId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public boolean isWomenOnly() {
|
||||
return this.womenOnly;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class CenterBuilder {
|
||||
@Generated
|
||||
private String id;
|
||||
@Generated
|
||||
private String municipalityId;
|
||||
@Generated
|
||||
private boolean womenOnly;
|
||||
@Generated
|
||||
private String adjacentRegionClassification;
|
||||
@Generated
|
||||
private LocalDate availableStartDate;
|
||||
@Generated
|
||||
private LocalDate availableEndDate;
|
||||
@Generated
|
||||
private Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
CenterBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder id(final String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder municipalityId(final String municipalityId) {
|
||||
this.municipalityId = municipalityId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder womenOnly(final boolean womenOnly) {
|
||||
this.womenOnly = womenOnly;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder adjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Center build() {
|
||||
return new Center(this.id, this.municipalityId, this.womenOnly, this.adjacentRegionClassification, this.availableStartDate, this.availableEndDate, this.unavailableDates);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.id;
|
||||
return "Center.CenterBuilder(id=" + var10000 + ", municipalityId=" + this.municipalityId + ", womenOnly=" + this.womenOnly + ", adjacentRegionClassification=" + this.adjacentRegionClassification + ", availableStartDate=" + String.valueOf(this.availableStartDate) + ", availableEndDate=" + String.valueOf(this.availableEndDate) + ", unavailableDates=" + String.valueOf(this.unavailableDates) + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.id;
|
||||
return "Center.CenterBuilder(id=" + var10000 + ", municipalityId=" + this.municipalityId
|
||||
+ ", womenOnly=" + this.womenOnly + ", adjacentRegionClassification="
|
||||
+ this.adjacentRegionClassification + ", availableStartDate=" + String.valueOf(
|
||||
this.availableStartDate) + ", availableEndDate=" + String.valueOf(this.availableEndDate)
|
||||
+ ", unavailableDates=" + String.valueOf(this.unavailableDates) + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,61 +3,66 @@ package com.kri.p6.ncrc.pairing.model;
|
||||
import lombok.Generated;
|
||||
|
||||
public class CenterAdjacentRegion {
|
||||
private final String dispatchRegion;
|
||||
private final String adjacentRegionClassification;
|
||||
|
||||
@Generated
|
||||
CenterAdjacentRegion(final String dispatchRegion, final String adjacentRegionClassification) {
|
||||
private final String dispatchRegion;
|
||||
private final String adjacentRegionClassification;
|
||||
|
||||
@Generated
|
||||
CenterAdjacentRegion(final String dispatchRegion, final String adjacentRegionClassification) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static CenterAdjacentRegionBuilder builder() {
|
||||
return new CenterAdjacentRegionBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class CenterAdjacentRegionBuilder {
|
||||
|
||||
@Generated
|
||||
private String dispatchRegion;
|
||||
@Generated
|
||||
private String adjacentRegionClassification;
|
||||
|
||||
@Generated
|
||||
CenterAdjacentRegionBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterAdjacentRegionBuilder dispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterAdjacentRegionBuilder adjacentRegionClassification(
|
||||
final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static CenterAdjacentRegionBuilder builder() {
|
||||
return new CenterAdjacentRegionBuilder();
|
||||
}
|
||||
@Generated
|
||||
public CenterAdjacentRegion build() {
|
||||
return new CenterAdjacentRegion(this.dispatchRegion, this.adjacentRegionClassification);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getAdjacentRegionClassification() {
|
||||
return this.adjacentRegionClassification;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class CenterAdjacentRegionBuilder {
|
||||
@Generated
|
||||
private String dispatchRegion;
|
||||
@Generated
|
||||
private String adjacentRegionClassification;
|
||||
|
||||
@Generated
|
||||
CenterAdjacentRegionBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterAdjacentRegionBuilder dispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterAdjacentRegionBuilder adjacentRegionClassification(final String adjacentRegionClassification) {
|
||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public CenterAdjacentRegion build() {
|
||||
return new CenterAdjacentRegion(this.dispatchRegion, this.adjacentRegionClassification);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "CenterAdjacentRegion.CenterAdjacentRegionBuilder(dispatchRegion=" + this.dispatchRegion + ", adjacentRegionClassification=" + this.adjacentRegionClassification + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "CenterAdjacentRegion.CenterAdjacentRegionBuilder(dispatchRegion="
|
||||
+ this.dispatchRegion + ", adjacentRegionClassification="
|
||||
+ this.adjacentRegionClassification + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,121 +3,133 @@ package com.kri.p6.ncrc.pairing.model;
|
||||
import lombok.Generated;
|
||||
|
||||
public class DispatchRegionCandidate {
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final String dispatchRegion;
|
||||
private final int preferencePriority;
|
||||
private final int fieldMemberPreferenceRank;
|
||||
private final int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
DispatchRegionCandidate(final String fieldMemberId, final String externalMemberId, final String dispatchRegion, final int preferencePriority, final int fieldMemberPreferenceRank, final int externalMemberPreferenceRank) {
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final String dispatchRegion;
|
||||
private final int preferencePriority;
|
||||
private final int fieldMemberPreferenceRank;
|
||||
private final int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
DispatchRegionCandidate(final String fieldMemberId, final String externalMemberId,
|
||||
final String dispatchRegion, final int preferencePriority,
|
||||
final int fieldMemberPreferenceRank, final int externalMemberPreferenceRank) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
this.externalMemberId = externalMemberId;
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
this.preferencePriority = preferencePriority;
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static DispatchRegionCandidateBuilder builder() {
|
||||
return new DispatchRegionCandidateBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getPreferencePriority() {
|
||||
return this.preferencePriority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class DispatchRegionCandidateBuilder {
|
||||
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private String dispatchRegion;
|
||||
@Generated
|
||||
private int preferencePriority;
|
||||
@Generated
|
||||
private int fieldMemberPreferenceRank;
|
||||
@Generated
|
||||
private int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
DispatchRegionCandidateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder dispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder preferencePriority(final int preferencePriority) {
|
||||
this.preferencePriority = preferencePriority;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder fieldMemberPreferenceRank(
|
||||
final int fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder externalMemberPreferenceRank(
|
||||
final int externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static DispatchRegionCandidateBuilder builder() {
|
||||
return new DispatchRegionCandidateBuilder();
|
||||
}
|
||||
@Generated
|
||||
public DispatchRegionCandidate build() {
|
||||
return new DispatchRegionCandidate(this.fieldMemberId, this.externalMemberId,
|
||||
this.dispatchRegion, this.preferencePriority, this.fieldMemberPreferenceRank,
|
||||
this.externalMemberPreferenceRank);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDispatchRegion() {
|
||||
return this.dispatchRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getPreferencePriority() {
|
||||
return this.preferencePriority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class DispatchRegionCandidateBuilder {
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private String dispatchRegion;
|
||||
@Generated
|
||||
private int preferencePriority;
|
||||
@Generated
|
||||
private int fieldMemberPreferenceRank;
|
||||
@Generated
|
||||
private int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
DispatchRegionCandidateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder dispatchRegion(final String dispatchRegion) {
|
||||
this.dispatchRegion = dispatchRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder preferencePriority(final int preferencePriority) {
|
||||
this.preferencePriority = preferencePriority;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder fieldMemberPreferenceRank(final int fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidateBuilder externalMemberPreferenceRank(final int externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public DispatchRegionCandidate build() {
|
||||
return new DispatchRegionCandidate(this.fieldMemberId, this.externalMemberId, this.dispatchRegion, this.preferencePriority, this.fieldMemberPreferenceRank, this.externalMemberPreferenceRank);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "DispatchRegionCandidate.DispatchRegionCandidateBuilder(fieldMemberId=" + this.fieldMemberId + ", externalMemberId=" + this.externalMemberId + ", dispatchRegion=" + this.dispatchRegion + ", preferencePriority=" + this.preferencePriority + ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank + ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "DispatchRegionCandidate.DispatchRegionCandidateBuilder(fieldMemberId="
|
||||
+ this.fieldMemberId + ", externalMemberId=" + this.externalMemberId + ", dispatchRegion="
|
||||
+ this.dispatchRegion + ", preferencePriority=" + this.preferencePriority
|
||||
+ ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank
|
||||
+ ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,197 +9,212 @@ import java.util.Set;
|
||||
import lombok.Generated;
|
||||
|
||||
public class Member {
|
||||
private final String id;
|
||||
private final Gender gender;
|
||||
private final ExperienceType experienceType;
|
||||
private final MemberRole role;
|
||||
private final LocalDate availableStartDate;
|
||||
private final LocalDate availableEndDate;
|
||||
private final Set<LocalDate> unavailableDates;
|
||||
private final String activityRegion;
|
||||
private final Set<String> historyCenterIds;
|
||||
private final String residenceCode;
|
||||
private final List<String> preferenceRegions;
|
||||
|
||||
@Generated
|
||||
Member(final String id, final Gender gender, final ExperienceType experienceType, final MemberRole role, final LocalDate availableStartDate, final LocalDate availableEndDate, final Set<LocalDate> unavailableDates, final String activityRegion, final Set<String> historyCenterIds, final String residenceCode, final List<String> preferenceRegions) {
|
||||
private final String id;
|
||||
private final Gender gender;
|
||||
private final ExperienceType experienceType;
|
||||
private final MemberRole role;
|
||||
private final LocalDate availableStartDate;
|
||||
private final LocalDate availableEndDate;
|
||||
private final Set<LocalDate> unavailableDates;
|
||||
private final String activityRegion;
|
||||
private final Set<String> historyCenterIds;
|
||||
private final String residenceCode;
|
||||
private final List<String> preferenceRegions;
|
||||
|
||||
@Generated
|
||||
Member(final String id, final Gender gender, final ExperienceType experienceType,
|
||||
final MemberRole role, final LocalDate availableStartDate, final LocalDate availableEndDate,
|
||||
final Set<LocalDate> unavailableDates, final String activityRegion,
|
||||
final Set<String> historyCenterIds, final String residenceCode,
|
||||
final List<String> preferenceRegions) {
|
||||
this.id = id;
|
||||
this.gender = gender;
|
||||
this.experienceType = experienceType;
|
||||
this.role = role;
|
||||
this.availableStartDate = availableStartDate;
|
||||
this.availableEndDate = availableEndDate;
|
||||
this.unavailableDates = unavailableDates;
|
||||
this.activityRegion = activityRegion;
|
||||
this.historyCenterIds = historyCenterIds;
|
||||
this.residenceCode = residenceCode;
|
||||
this.preferenceRegions = preferenceRegions;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static MemberBuilder builder() {
|
||||
return new MemberBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Gender getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ExperienceType getExperienceType() {
|
||||
return this.experienceType;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRole getRole() {
|
||||
return this.role;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getActivityRegion() {
|
||||
return this.activityRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<String> getHistoryCenterIds() {
|
||||
return this.historyCenterIds;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getResidenceCode() {
|
||||
return this.residenceCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<String> getPreferenceRegions() {
|
||||
return this.preferenceRegions;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class MemberBuilder {
|
||||
|
||||
@Generated
|
||||
private String id;
|
||||
@Generated
|
||||
private Gender gender;
|
||||
@Generated
|
||||
private ExperienceType experienceType;
|
||||
@Generated
|
||||
private MemberRole role;
|
||||
@Generated
|
||||
private LocalDate availableStartDate;
|
||||
@Generated
|
||||
private LocalDate availableEndDate;
|
||||
@Generated
|
||||
private Set<LocalDate> unavailableDates;
|
||||
@Generated
|
||||
private String activityRegion;
|
||||
@Generated
|
||||
private Set<String> historyCenterIds;
|
||||
@Generated
|
||||
private String residenceCode;
|
||||
@Generated
|
||||
private List<String> preferenceRegions;
|
||||
|
||||
@Generated
|
||||
MemberBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder id(final String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder gender(final Gender gender) {
|
||||
this.gender = gender;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder experienceType(final ExperienceType experienceType) {
|
||||
this.experienceType = experienceType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder role(final MemberRole role) {
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder activityRegion(final String activityRegion) {
|
||||
this.activityRegion = activityRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder historyCenterIds(final Set<String> historyCenterIds) {
|
||||
this.historyCenterIds = historyCenterIds;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder residenceCode(final String residenceCode) {
|
||||
this.residenceCode = residenceCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder preferenceRegions(final List<String> preferenceRegions) {
|
||||
this.preferenceRegions = preferenceRegions;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static MemberBuilder builder() {
|
||||
return new MemberBuilder();
|
||||
}
|
||||
@Generated
|
||||
public Member build() {
|
||||
return new Member(this.id, this.gender, this.experienceType, this.role,
|
||||
this.availableStartDate, this.availableEndDate, this.unavailableDates,
|
||||
this.activityRegion, this.historyCenterIds, this.residenceCode, this.preferenceRegions);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Gender getGender() {
|
||||
return this.gender;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public ExperienceType getExperienceType() {
|
||||
return this.experienceType;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRole getRole() {
|
||||
return this.role;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getActivityRegion() {
|
||||
return this.activityRegion;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<String> getHistoryCenterIds() {
|
||||
return this.historyCenterIds;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getResidenceCode() {
|
||||
return this.residenceCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<String> getPreferenceRegions() {
|
||||
return this.preferenceRegions;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class MemberBuilder {
|
||||
@Generated
|
||||
private String id;
|
||||
@Generated
|
||||
private Gender gender;
|
||||
@Generated
|
||||
private ExperienceType experienceType;
|
||||
@Generated
|
||||
private MemberRole role;
|
||||
@Generated
|
||||
private LocalDate availableStartDate;
|
||||
@Generated
|
||||
private LocalDate availableEndDate;
|
||||
@Generated
|
||||
private Set<LocalDate> unavailableDates;
|
||||
@Generated
|
||||
private String activityRegion;
|
||||
@Generated
|
||||
private Set<String> historyCenterIds;
|
||||
@Generated
|
||||
private String residenceCode;
|
||||
@Generated
|
||||
private List<String> preferenceRegions;
|
||||
|
||||
@Generated
|
||||
MemberBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder id(final String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder gender(final Gender gender) {
|
||||
this.gender = gender;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder experienceType(final ExperienceType experienceType) {
|
||||
this.experienceType = experienceType;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder role(final MemberRole role) {
|
||||
this.role = role;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder activityRegion(final String activityRegion) {
|
||||
this.activityRegion = activityRegion;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder historyCenterIds(final Set<String> historyCenterIds) {
|
||||
this.historyCenterIds = historyCenterIds;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder residenceCode(final String residenceCode) {
|
||||
this.residenceCode = residenceCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberBuilder preferenceRegions(final List<String> preferenceRegions) {
|
||||
this.preferenceRegions = preferenceRegions;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Member build() {
|
||||
return new Member(this.id, this.gender, this.experienceType, this.role, this.availableStartDate, this.availableEndDate, this.unavailableDates, this.activityRegion, this.historyCenterIds, this.residenceCode, this.preferenceRegions);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.id;
|
||||
return "Member.MemberBuilder(id=" + var10000 + ", gender=" + String.valueOf(this.gender) + ", experienceType=" + String.valueOf(this.experienceType) + ", role=" + String.valueOf(this.role) + ", availableStartDate=" + String.valueOf(this.availableStartDate) + ", availableEndDate=" + String.valueOf(this.availableEndDate) + ", unavailableDates=" + String.valueOf(this.unavailableDates) + ", activityRegion=" + this.activityRegion + ", historyCenterIds=" + String.valueOf(this.historyCenterIds) + ", residenceCode=" + this.residenceCode + ", preferenceRegions=" + String.valueOf(this.preferenceRegions) + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.id;
|
||||
return "Member.MemberBuilder(id=" + var10000 + ", gender=" + String.valueOf(this.gender)
|
||||
+ ", experienceType=" + String.valueOf(this.experienceType) + ", role=" + String.valueOf(
|
||||
this.role) + ", availableStartDate=" + String.valueOf(this.availableStartDate)
|
||||
+ ", availableEndDate=" + String.valueOf(this.availableEndDate) + ", unavailableDates="
|
||||
+ String.valueOf(this.unavailableDates) + ", activityRegion=" + this.activityRegion
|
||||
+ ", historyCenterIds=" + String.valueOf(this.historyCenterIds) + ", residenceCode="
|
||||
+ this.residenceCode + ", preferenceRegions=" + String.valueOf(this.preferenceRegions)
|
||||
+ ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,121 +3,128 @@ package com.kri.p6.ncrc.pairing.model;
|
||||
import lombok.Generated;
|
||||
|
||||
public class MemberRegionCode {
|
||||
private final String sido;
|
||||
private final String sigungu;
|
||||
private final String regionCode;
|
||||
private final String detailRegionCode;
|
||||
private final String detailAreaCode;
|
||||
private final String fullRegionCode;
|
||||
|
||||
@Generated
|
||||
MemberRegionCode(final String sido, final String sigungu, final String regionCode, final String detailRegionCode, final String detailAreaCode, final String fullRegionCode) {
|
||||
private final String sido;
|
||||
private final String sigungu;
|
||||
private final String regionCode;
|
||||
private final String detailRegionCode;
|
||||
private final String detailAreaCode;
|
||||
private final String fullRegionCode;
|
||||
|
||||
@Generated
|
||||
MemberRegionCode(final String sido, final String sigungu, final String regionCode,
|
||||
final String detailRegionCode, final String detailAreaCode, final String fullRegionCode) {
|
||||
this.sido = sido;
|
||||
this.sigungu = sigungu;
|
||||
this.regionCode = regionCode;
|
||||
this.detailRegionCode = detailRegionCode;
|
||||
this.detailAreaCode = detailAreaCode;
|
||||
this.fullRegionCode = fullRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static MemberRegionCodeBuilder builder() {
|
||||
return new MemberRegionCodeBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getSido() {
|
||||
return this.sido;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getSigungu() {
|
||||
return this.sigungu;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getRegionCode() {
|
||||
return this.regionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDetailRegionCode() {
|
||||
return this.detailRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDetailAreaCode() {
|
||||
return this.detailAreaCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFullRegionCode() {
|
||||
return this.fullRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class MemberRegionCodeBuilder {
|
||||
|
||||
@Generated
|
||||
private String sido;
|
||||
@Generated
|
||||
private String sigungu;
|
||||
@Generated
|
||||
private String regionCode;
|
||||
@Generated
|
||||
private String detailRegionCode;
|
||||
@Generated
|
||||
private String detailAreaCode;
|
||||
@Generated
|
||||
private String fullRegionCode;
|
||||
|
||||
@Generated
|
||||
MemberRegionCodeBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder sido(final String sido) {
|
||||
this.sido = sido;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder sigungu(final String sigungu) {
|
||||
this.sigungu = sigungu;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder regionCode(final String regionCode) {
|
||||
this.regionCode = regionCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder detailRegionCode(final String detailRegionCode) {
|
||||
this.detailRegionCode = detailRegionCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder detailAreaCode(final String detailAreaCode) {
|
||||
this.detailAreaCode = detailAreaCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder fullRegionCode(final String fullRegionCode) {
|
||||
this.fullRegionCode = fullRegionCode;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static MemberRegionCodeBuilder builder() {
|
||||
return new MemberRegionCodeBuilder();
|
||||
}
|
||||
@Generated
|
||||
public MemberRegionCode build() {
|
||||
return new MemberRegionCode(this.sido, this.sigungu, this.regionCode, this.detailRegionCode,
|
||||
this.detailAreaCode, this.fullRegionCode);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getSido() {
|
||||
return this.sido;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getSigungu() {
|
||||
return this.sigungu;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getRegionCode() {
|
||||
return this.regionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDetailRegionCode() {
|
||||
return this.detailRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getDetailAreaCode() {
|
||||
return this.detailAreaCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFullRegionCode() {
|
||||
return this.fullRegionCode;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class MemberRegionCodeBuilder {
|
||||
@Generated
|
||||
private String sido;
|
||||
@Generated
|
||||
private String sigungu;
|
||||
@Generated
|
||||
private String regionCode;
|
||||
@Generated
|
||||
private String detailRegionCode;
|
||||
@Generated
|
||||
private String detailAreaCode;
|
||||
@Generated
|
||||
private String fullRegionCode;
|
||||
|
||||
@Generated
|
||||
MemberRegionCodeBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder sido(final String sido) {
|
||||
this.sido = sido;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder sigungu(final String sigungu) {
|
||||
this.sigungu = sigungu;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder regionCode(final String regionCode) {
|
||||
this.regionCode = regionCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder detailRegionCode(final String detailRegionCode) {
|
||||
this.detailRegionCode = detailRegionCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder detailAreaCode(final String detailAreaCode) {
|
||||
this.detailAreaCode = detailAreaCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCodeBuilder fullRegionCode(final String fullRegionCode) {
|
||||
this.fullRegionCode = fullRegionCode;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MemberRegionCode build() {
|
||||
return new MemberRegionCode(this.sido, this.sigungu, this.regionCode, this.detailRegionCode, this.detailAreaCode, this.fullRegionCode);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "MemberRegionCode.MemberRegionCodeBuilder(sido=" + this.sido + ", sigungu=" + this.sigungu + ", regionCode=" + this.regionCode + ", detailRegionCode=" + this.detailRegionCode + ", detailAreaCode=" + this.detailAreaCode + ", fullRegionCode=" + this.fullRegionCode + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "MemberRegionCode.MemberRegionCodeBuilder(sido=" + this.sido + ", sigungu="
|
||||
+ this.sigungu + ", regionCode=" + this.regionCode + ", detailRegionCode="
|
||||
+ this.detailRegionCode + ", detailAreaCode=" + this.detailAreaCode + ", fullRegionCode="
|
||||
+ this.fullRegionCode + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,92 +5,99 @@ import java.util.Set;
|
||||
import lombok.Generated;
|
||||
|
||||
public class Municipality {
|
||||
private final String id;
|
||||
private final LocalDate availableStartDate;
|
||||
private final LocalDate availableEndDate;
|
||||
private final Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
Municipality(final String id, final LocalDate availableStartDate, final LocalDate availableEndDate, final Set<LocalDate> unavailableDates) {
|
||||
private final String id;
|
||||
private final LocalDate availableStartDate;
|
||||
private final LocalDate availableEndDate;
|
||||
private final Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
Municipality(final String id, final LocalDate availableStartDate,
|
||||
final LocalDate availableEndDate, final Set<LocalDate> unavailableDates) {
|
||||
this.id = id;
|
||||
this.availableStartDate = availableStartDate;
|
||||
this.availableEndDate = availableEndDate;
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static MunicipalityBuilder builder() {
|
||||
return new MunicipalityBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class MunicipalityBuilder {
|
||||
|
||||
@Generated
|
||||
private String id;
|
||||
@Generated
|
||||
private LocalDate availableStartDate;
|
||||
@Generated
|
||||
private LocalDate availableEndDate;
|
||||
@Generated
|
||||
private Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
MunicipalityBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder id(final String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static MunicipalityBuilder builder() {
|
||||
return new MunicipalityBuilder();
|
||||
}
|
||||
@Generated
|
||||
public Municipality build() {
|
||||
return new Municipality(this.id, this.availableStartDate, this.availableEndDate,
|
||||
this.unavailableDates);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableStartDate() {
|
||||
return this.availableStartDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public LocalDate getAvailableEndDate() {
|
||||
return this.availableEndDate;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getUnavailableDates() {
|
||||
return this.unavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class MunicipalityBuilder {
|
||||
@Generated
|
||||
private String id;
|
||||
@Generated
|
||||
private LocalDate availableStartDate;
|
||||
@Generated
|
||||
private LocalDate availableEndDate;
|
||||
@Generated
|
||||
private Set<LocalDate> unavailableDates;
|
||||
|
||||
@Generated
|
||||
MunicipalityBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder id(final String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||
this.availableStartDate = availableStartDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||
this.availableEndDate = availableEndDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public MunicipalityBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||
this.unavailableDates = unavailableDates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Municipality build() {
|
||||
return new Municipality(this.id, this.availableStartDate, this.availableEndDate, this.unavailableDates);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.id;
|
||||
return "Municipality.MunicipalityBuilder(id=" + var10000 + ", availableStartDate=" + String.valueOf(this.availableStartDate) + ", availableEndDate=" + String.valueOf(this.availableEndDate) + ", unavailableDates=" + String.valueOf(this.unavailableDates) + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = this.id;
|
||||
return "Municipality.MunicipalityBuilder(id=" + var10000 + ", availableStartDate="
|
||||
+ String.valueOf(this.availableStartDate) + ", availableEndDate=" + String.valueOf(
|
||||
this.availableEndDate) + ", unavailableDates=" + String.valueOf(this.unavailableDates)
|
||||
+ ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,76 +3,81 @@ package com.kri.p6.ncrc.pairing.model;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PairCandidate {
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
PairCandidate(final String fieldMemberId, final String externalMemberId, final int residenceMatchScore) {
|
||||
private final String fieldMemberId;
|
||||
private final String externalMemberId;
|
||||
private final int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
PairCandidate(final String fieldMemberId, final String externalMemberId,
|
||||
final int residenceMatchScore) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
this.externalMemberId = externalMemberId;
|
||||
this.residenceMatchScore = residenceMatchScore;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairCandidateBuilder builder() {
|
||||
return new PairCandidateBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getResidenceMatchScore() {
|
||||
return this.residenceMatchScore;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairCandidateBuilder {
|
||||
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
PairCandidateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairCandidateBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairCandidateBuilder residenceMatchScore(final int residenceMatchScore) {
|
||||
this.residenceMatchScore = residenceMatchScore;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairCandidateBuilder builder() {
|
||||
return new PairCandidateBuilder();
|
||||
}
|
||||
@Generated
|
||||
public PairCandidate build() {
|
||||
return new PairCandidate(this.fieldMemberId, this.externalMemberId, this.residenceMatchScore);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getFieldMemberId() {
|
||||
return this.fieldMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String getExternalMemberId() {
|
||||
return this.externalMemberId;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getResidenceMatchScore() {
|
||||
return this.residenceMatchScore;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairCandidateBuilder {
|
||||
@Generated
|
||||
private String fieldMemberId;
|
||||
@Generated
|
||||
private String externalMemberId;
|
||||
@Generated
|
||||
private int residenceMatchScore;
|
||||
|
||||
@Generated
|
||||
PairCandidateBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairCandidateBuilder fieldMemberId(final String fieldMemberId) {
|
||||
this.fieldMemberId = fieldMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||
this.externalMemberId = externalMemberId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairCandidateBuilder residenceMatchScore(final int residenceMatchScore) {
|
||||
this.residenceMatchScore = residenceMatchScore;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairCandidate build() {
|
||||
return new PairCandidate(this.fieldMemberId, this.externalMemberId, this.residenceMatchScore);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "PairCandidate.PairCandidateBuilder(fieldMemberId=" + this.fieldMemberId + ", externalMemberId=" + this.externalMemberId + ", residenceMatchScore=" + this.residenceMatchScore + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "PairCandidate.PairCandidateBuilder(fieldMemberId=" + this.fieldMemberId
|
||||
+ ", externalMemberId=" + this.externalMemberId + ", residenceMatchScore="
|
||||
+ this.residenceMatchScore + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,92 +6,104 @@ import java.util.Set;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PairingCandidates {
|
||||
private final List<PairCandidate> pairCandidates;
|
||||
private final List<DispatchRegionCandidate> dispatchRegionCandidates;
|
||||
private final List<AssignmentCandidate> assignmentCandidates;
|
||||
private final Map<String, Set<String>> unassignedCenterReasons;
|
||||
|
||||
@Generated
|
||||
PairingCandidates(final List<PairCandidate> pairCandidates, final List<DispatchRegionCandidate> dispatchRegionCandidates, final List<AssignmentCandidate> assignmentCandidates, final Map<String, Set<String>> unassignedCenterReasons) {
|
||||
private final List<PairCandidate> pairCandidates;
|
||||
private final List<DispatchRegionCandidate> dispatchRegionCandidates;
|
||||
private final List<AssignmentCandidate> assignmentCandidates;
|
||||
private final Map<String, Set<String>> unassignedCenterReasons;
|
||||
|
||||
@Generated
|
||||
PairingCandidates(final List<PairCandidate> pairCandidates,
|
||||
final List<DispatchRegionCandidate> dispatchRegionCandidates,
|
||||
final List<AssignmentCandidate> assignmentCandidates,
|
||||
final Map<String, Set<String>> unassignedCenterReasons) {
|
||||
this.pairCandidates = pairCandidates;
|
||||
this.dispatchRegionCandidates = dispatchRegionCandidates;
|
||||
this.assignmentCandidates = assignmentCandidates;
|
||||
this.unassignedCenterReasons = unassignedCenterReasons;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingCandidatesBuilder builder() {
|
||||
return new PairingCandidatesBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PairCandidate> getPairCandidates() {
|
||||
return this.pairCandidates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<DispatchRegionCandidate> getDispatchRegionCandidates() {
|
||||
return this.dispatchRegionCandidates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<AssignmentCandidate> getAssignmentCandidates() {
|
||||
return this.assignmentCandidates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Map<String, Set<String>> getUnassignedCenterReasons() {
|
||||
return this.unassignedCenterReasons;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingCandidatesBuilder {
|
||||
|
||||
@Generated
|
||||
private List<PairCandidate> pairCandidates;
|
||||
@Generated
|
||||
private List<DispatchRegionCandidate> dispatchRegionCandidates;
|
||||
@Generated
|
||||
private List<AssignmentCandidate> assignmentCandidates;
|
||||
@Generated
|
||||
private Map<String, Set<String>> unassignedCenterReasons;
|
||||
|
||||
@Generated
|
||||
PairingCandidatesBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder pairCandidates(final List<PairCandidate> pairCandidates) {
|
||||
this.pairCandidates = pairCandidates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder dispatchRegionCandidates(
|
||||
final List<DispatchRegionCandidate> dispatchRegionCandidates) {
|
||||
this.dispatchRegionCandidates = dispatchRegionCandidates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder assignmentCandidates(
|
||||
final List<AssignmentCandidate> assignmentCandidates) {
|
||||
this.assignmentCandidates = assignmentCandidates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder unassignedCenterReasons(
|
||||
final Map<String, Set<String>> unassignedCenterReasons) {
|
||||
this.unassignedCenterReasons = unassignedCenterReasons;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingCandidatesBuilder builder() {
|
||||
return new PairingCandidatesBuilder();
|
||||
}
|
||||
@Generated
|
||||
public PairingCandidates build() {
|
||||
return new PairingCandidates(this.pairCandidates, this.dispatchRegionCandidates,
|
||||
this.assignmentCandidates, this.unassignedCenterReasons);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PairCandidate> getPairCandidates() {
|
||||
return this.pairCandidates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<DispatchRegionCandidate> getDispatchRegionCandidates() {
|
||||
return this.dispatchRegionCandidates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<AssignmentCandidate> getAssignmentCandidates() {
|
||||
return this.assignmentCandidates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Map<String, Set<String>> getUnassignedCenterReasons() {
|
||||
return this.unassignedCenterReasons;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingCandidatesBuilder {
|
||||
@Generated
|
||||
private List<PairCandidate> pairCandidates;
|
||||
@Generated
|
||||
private List<DispatchRegionCandidate> dispatchRegionCandidates;
|
||||
@Generated
|
||||
private List<AssignmentCandidate> assignmentCandidates;
|
||||
@Generated
|
||||
private Map<String, Set<String>> unassignedCenterReasons;
|
||||
|
||||
@Generated
|
||||
PairingCandidatesBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder pairCandidates(final List<PairCandidate> pairCandidates) {
|
||||
this.pairCandidates = pairCandidates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder dispatchRegionCandidates(final List<DispatchRegionCandidate> dispatchRegionCandidates) {
|
||||
this.dispatchRegionCandidates = dispatchRegionCandidates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder assignmentCandidates(final List<AssignmentCandidate> assignmentCandidates) {
|
||||
this.assignmentCandidates = assignmentCandidates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidatesBuilder unassignedCenterReasons(final Map<String, Set<String>> unassignedCenterReasons) {
|
||||
this.unassignedCenterReasons = unassignedCenterReasons;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidates build() {
|
||||
return new PairingCandidates(this.pairCandidates, this.dispatchRegionCandidates, this.assignmentCandidates, this.unassignedCenterReasons);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.pairCandidates);
|
||||
return "PairingCandidates.PairingCandidatesBuilder(pairCandidates=" + var10000 + ", dispatchRegionCandidates=" + String.valueOf(this.dispatchRegionCandidates) + ", assignmentCandidates=" + String.valueOf(this.assignmentCandidates) + ", unassignedCenterReasons=" + String.valueOf(this.unassignedCenterReasons) + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.pairCandidates);
|
||||
return "PairingCandidates.PairingCandidatesBuilder(pairCandidates=" + var10000
|
||||
+ ", dispatchRegionCandidates=" + String.valueOf(this.dispatchRegionCandidates)
|
||||
+ ", assignmentCandidates=" + String.valueOf(this.assignmentCandidates)
|
||||
+ ", unassignedCenterReasons=" + String.valueOf(this.unassignedCenterReasons) + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,137 +6,152 @@ import java.util.Set;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PairingData {
|
||||
private final List<Member> members;
|
||||
private final List<Municipality> municipalities;
|
||||
private final List<Center> centers;
|
||||
private final List<MemberRegionCode> memberRegionCodes;
|
||||
private final List<CenterAdjacentRegion> centerAdjacentRegions;
|
||||
private final List<PreferenceMatchRule> preferenceMatchRules;
|
||||
private final Set<LocalDate> commonUnavailableDates;
|
||||
|
||||
@Generated
|
||||
PairingData(final List<Member> members, final List<Municipality> municipalities, final List<Center> centers, final List<MemberRegionCode> memberRegionCodes, final List<CenterAdjacentRegion> centerAdjacentRegions, final List<PreferenceMatchRule> preferenceMatchRules, final Set<LocalDate> commonUnavailableDates) {
|
||||
private final List<Member> members;
|
||||
private final List<Municipality> municipalities;
|
||||
private final List<Center> centers;
|
||||
private final List<MemberRegionCode> memberRegionCodes;
|
||||
private final List<CenterAdjacentRegion> centerAdjacentRegions;
|
||||
private final List<PreferenceMatchRule> preferenceMatchRules;
|
||||
private final Set<LocalDate> commonUnavailableDates;
|
||||
|
||||
@Generated
|
||||
PairingData(final List<Member> members, final List<Municipality> municipalities,
|
||||
final List<Center> centers, final List<MemberRegionCode> memberRegionCodes,
|
||||
final List<CenterAdjacentRegion> centerAdjacentRegions,
|
||||
final List<PreferenceMatchRule> preferenceMatchRules,
|
||||
final Set<LocalDate> commonUnavailableDates) {
|
||||
this.members = members;
|
||||
this.municipalities = municipalities;
|
||||
this.centers = centers;
|
||||
this.memberRegionCodes = memberRegionCodes;
|
||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||
this.preferenceMatchRules = preferenceMatchRules;
|
||||
this.commonUnavailableDates = commonUnavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingDataBuilder builder() {
|
||||
return new PairingDataBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<Member> getMembers() {
|
||||
return this.members;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<Municipality> getMunicipalities() {
|
||||
return this.municipalities;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<Center> getCenters() {
|
||||
return this.centers;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MemberRegionCode> getMemberRegionCodes() {
|
||||
return this.memberRegionCodes;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CenterAdjacentRegion> getCenterAdjacentRegions() {
|
||||
return this.centerAdjacentRegions;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PreferenceMatchRule> getPreferenceMatchRules() {
|
||||
return this.preferenceMatchRules;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getCommonUnavailableDates() {
|
||||
return this.commonUnavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingDataBuilder {
|
||||
|
||||
@Generated
|
||||
private List<Member> members;
|
||||
@Generated
|
||||
private List<Municipality> municipalities;
|
||||
@Generated
|
||||
private List<Center> centers;
|
||||
@Generated
|
||||
private List<MemberRegionCode> memberRegionCodes;
|
||||
@Generated
|
||||
private List<CenterAdjacentRegion> centerAdjacentRegions;
|
||||
@Generated
|
||||
private List<PreferenceMatchRule> preferenceMatchRules;
|
||||
@Generated
|
||||
private Set<LocalDate> commonUnavailableDates;
|
||||
|
||||
@Generated
|
||||
PairingDataBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder members(final List<Member> members) {
|
||||
this.members = members;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder municipalities(final List<Municipality> municipalities) {
|
||||
this.municipalities = municipalities;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder centers(final List<Center> centers) {
|
||||
this.centers = centers;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder memberRegionCodes(final List<MemberRegionCode> memberRegionCodes) {
|
||||
this.memberRegionCodes = memberRegionCodes;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder centerAdjacentRegions(
|
||||
final List<CenterAdjacentRegion> centerAdjacentRegions) {
|
||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder preferenceMatchRules(
|
||||
final List<PreferenceMatchRule> preferenceMatchRules) {
|
||||
this.preferenceMatchRules = preferenceMatchRules;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder commonUnavailableDates(final Set<LocalDate> commonUnavailableDates) {
|
||||
this.commonUnavailableDates = commonUnavailableDates;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingDataBuilder builder() {
|
||||
return new PairingDataBuilder();
|
||||
}
|
||||
@Generated
|
||||
public PairingData build() {
|
||||
return new PairingData(this.members, this.municipalities, this.centers,
|
||||
this.memberRegionCodes, this.centerAdjacentRegions, this.preferenceMatchRules,
|
||||
this.commonUnavailableDates);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<Member> getMembers() {
|
||||
return this.members;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<Municipality> getMunicipalities() {
|
||||
return this.municipalities;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<Center> getCenters() {
|
||||
return this.centers;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<MemberRegionCode> getMemberRegionCodes() {
|
||||
return this.memberRegionCodes;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CenterAdjacentRegion> getCenterAdjacentRegions() {
|
||||
return this.centerAdjacentRegions;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PreferenceMatchRule> getPreferenceMatchRules() {
|
||||
return this.preferenceMatchRules;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public Set<LocalDate> getCommonUnavailableDates() {
|
||||
return this.commonUnavailableDates;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingDataBuilder {
|
||||
@Generated
|
||||
private List<Member> members;
|
||||
@Generated
|
||||
private List<Municipality> municipalities;
|
||||
@Generated
|
||||
private List<Center> centers;
|
||||
@Generated
|
||||
private List<MemberRegionCode> memberRegionCodes;
|
||||
@Generated
|
||||
private List<CenterAdjacentRegion> centerAdjacentRegions;
|
||||
@Generated
|
||||
private List<PreferenceMatchRule> preferenceMatchRules;
|
||||
@Generated
|
||||
private Set<LocalDate> commonUnavailableDates;
|
||||
|
||||
@Generated
|
||||
PairingDataBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder members(final List<Member> members) {
|
||||
this.members = members;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder municipalities(final List<Municipality> municipalities) {
|
||||
this.municipalities = municipalities;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder centers(final List<Center> centers) {
|
||||
this.centers = centers;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder memberRegionCodes(final List<MemberRegionCode> memberRegionCodes) {
|
||||
this.memberRegionCodes = memberRegionCodes;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder centerAdjacentRegions(final List<CenterAdjacentRegion> centerAdjacentRegions) {
|
||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder preferenceMatchRules(final List<PreferenceMatchRule> preferenceMatchRules) {
|
||||
this.preferenceMatchRules = preferenceMatchRules;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingDataBuilder commonUnavailableDates(final Set<LocalDate> commonUnavailableDates) {
|
||||
this.commonUnavailableDates = commonUnavailableDates;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingData build() {
|
||||
return new PairingData(this.members, this.municipalities, this.centers, this.memberRegionCodes, this.centerAdjacentRegions, this.preferenceMatchRules, this.commonUnavailableDates);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.members);
|
||||
return "PairingData.PairingDataBuilder(members=" + var10000 + ", municipalities=" + String.valueOf(this.municipalities) + ", centers=" + String.valueOf(this.centers) + ", memberRegionCodes=" + String.valueOf(this.memberRegionCodes) + ", centerAdjacentRegions=" + String.valueOf(this.centerAdjacentRegions) + ", preferenceMatchRules=" + String.valueOf(this.preferenceMatchRules) + ", commonUnavailableDates=" + String.valueOf(this.commonUnavailableDates) + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.members);
|
||||
return "PairingData.PairingDataBuilder(members=" + var10000 + ", municipalities="
|
||||
+ String.valueOf(this.municipalities) + ", centers=" + String.valueOf(this.centers)
|
||||
+ ", memberRegionCodes=" + String.valueOf(this.memberRegionCodes)
|
||||
+ ", centerAdjacentRegions=" + String.valueOf(this.centerAdjacentRegions)
|
||||
+ ", preferenceMatchRules=" + String.valueOf(this.preferenceMatchRules)
|
||||
+ ", commonUnavailableDates=" + String.valueOf(this.commonUnavailableDates) + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,152 +12,169 @@ import java.util.List;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PairingResult {
|
||||
private final List<AssignmentResultExcelDto> assignments;
|
||||
private final List<UnassignedCenterExcelDto> unassignedCenters;
|
||||
private final List<UnusedMemberExcelDto> unusedMembers;
|
||||
private final List<PairingSummaryExcelDto> summaries;
|
||||
private final List<ABPairExcelDto> abPairs;
|
||||
private final List<CandidateSummaryExcelDto> candidateSummaries;
|
||||
private final List<ValidationErrorExcelDto> validationErrors;
|
||||
private final List<RuleViolationExcelDto> ruleViolations;
|
||||
|
||||
@Generated
|
||||
PairingResult(final List<AssignmentResultExcelDto> assignments, final List<UnassignedCenterExcelDto> unassignedCenters, final List<UnusedMemberExcelDto> unusedMembers, final List<PairingSummaryExcelDto> summaries, final List<ABPairExcelDto> abPairs, final List<CandidateSummaryExcelDto> candidateSummaries, final List<ValidationErrorExcelDto> validationErrors, final List<RuleViolationExcelDto> ruleViolations) {
|
||||
private final List<AssignmentResultExcelDto> assignments;
|
||||
private final List<UnassignedCenterExcelDto> unassignedCenters;
|
||||
private final List<UnusedMemberExcelDto> unusedMembers;
|
||||
private final List<PairingSummaryExcelDto> summaries;
|
||||
private final List<ABPairExcelDto> abPairs;
|
||||
private final List<CandidateSummaryExcelDto> candidateSummaries;
|
||||
private final List<ValidationErrorExcelDto> validationErrors;
|
||||
private final List<RuleViolationExcelDto> ruleViolations;
|
||||
|
||||
@Generated
|
||||
PairingResult(final List<AssignmentResultExcelDto> assignments,
|
||||
final List<UnassignedCenterExcelDto> unassignedCenters,
|
||||
final List<UnusedMemberExcelDto> unusedMembers, final List<PairingSummaryExcelDto> summaries,
|
||||
final List<ABPairExcelDto> abPairs, final List<CandidateSummaryExcelDto> candidateSummaries,
|
||||
final List<ValidationErrorExcelDto> validationErrors,
|
||||
final List<RuleViolationExcelDto> ruleViolations) {
|
||||
this.assignments = assignments;
|
||||
this.unassignedCenters = unassignedCenters;
|
||||
this.unusedMembers = unusedMembers;
|
||||
this.summaries = summaries;
|
||||
this.abPairs = abPairs;
|
||||
this.candidateSummaries = candidateSummaries;
|
||||
this.validationErrors = validationErrors;
|
||||
this.ruleViolations = ruleViolations;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingResultBuilder builder() {
|
||||
return new PairingResultBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<AssignmentResultExcelDto> getAssignments() {
|
||||
return this.assignments;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<UnassignedCenterExcelDto> getUnassignedCenters() {
|
||||
return this.unassignedCenters;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<UnusedMemberExcelDto> getUnusedMembers() {
|
||||
return this.unusedMembers;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PairingSummaryExcelDto> getSummaries() {
|
||||
return this.summaries;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<ABPairExcelDto> getAbPairs() {
|
||||
return this.abPairs;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CandidateSummaryExcelDto> getCandidateSummaries() {
|
||||
return this.candidateSummaries;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<ValidationErrorExcelDto> getValidationErrors() {
|
||||
return this.validationErrors;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<RuleViolationExcelDto> getRuleViolations() {
|
||||
return this.ruleViolations;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingResultBuilder {
|
||||
|
||||
@Generated
|
||||
private List<AssignmentResultExcelDto> assignments;
|
||||
@Generated
|
||||
private List<UnassignedCenterExcelDto> unassignedCenters;
|
||||
@Generated
|
||||
private List<UnusedMemberExcelDto> unusedMembers;
|
||||
@Generated
|
||||
private List<PairingSummaryExcelDto> summaries;
|
||||
@Generated
|
||||
private List<ABPairExcelDto> abPairs;
|
||||
@Generated
|
||||
private List<CandidateSummaryExcelDto> candidateSummaries;
|
||||
@Generated
|
||||
private List<ValidationErrorExcelDto> validationErrors;
|
||||
@Generated
|
||||
private List<RuleViolationExcelDto> ruleViolations;
|
||||
|
||||
@Generated
|
||||
PairingResultBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder assignments(final List<AssignmentResultExcelDto> assignments) {
|
||||
this.assignments = assignments;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder unassignedCenters(
|
||||
final List<UnassignedCenterExcelDto> unassignedCenters) {
|
||||
this.unassignedCenters = unassignedCenters;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder unusedMembers(final List<UnusedMemberExcelDto> unusedMembers) {
|
||||
this.unusedMembers = unusedMembers;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder summaries(final List<PairingSummaryExcelDto> summaries) {
|
||||
this.summaries = summaries;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder abPairs(final List<ABPairExcelDto> abPairs) {
|
||||
this.abPairs = abPairs;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder candidateSummaries(
|
||||
final List<CandidateSummaryExcelDto> candidateSummaries) {
|
||||
this.candidateSummaries = candidateSummaries;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder validationErrors(
|
||||
final List<ValidationErrorExcelDto> validationErrors) {
|
||||
this.validationErrors = validationErrors;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder ruleViolations(final List<RuleViolationExcelDto> ruleViolations) {
|
||||
this.ruleViolations = ruleViolations;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PairingResultBuilder builder() {
|
||||
return new PairingResultBuilder();
|
||||
}
|
||||
@Generated
|
||||
public PairingResult build() {
|
||||
return new PairingResult(this.assignments, this.unassignedCenters, this.unusedMembers,
|
||||
this.summaries, this.abPairs, this.candidateSummaries, this.validationErrors,
|
||||
this.ruleViolations);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<AssignmentResultExcelDto> getAssignments() {
|
||||
return this.assignments;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<UnassignedCenterExcelDto> getUnassignedCenters() {
|
||||
return this.unassignedCenters;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<UnusedMemberExcelDto> getUnusedMembers() {
|
||||
return this.unusedMembers;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<PairingSummaryExcelDto> getSummaries() {
|
||||
return this.summaries;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<ABPairExcelDto> getAbPairs() {
|
||||
return this.abPairs;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<CandidateSummaryExcelDto> getCandidateSummaries() {
|
||||
return this.candidateSummaries;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<ValidationErrorExcelDto> getValidationErrors() {
|
||||
return this.validationErrors;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public List<RuleViolationExcelDto> getRuleViolations() {
|
||||
return this.ruleViolations;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PairingResultBuilder {
|
||||
@Generated
|
||||
private List<AssignmentResultExcelDto> assignments;
|
||||
@Generated
|
||||
private List<UnassignedCenterExcelDto> unassignedCenters;
|
||||
@Generated
|
||||
private List<UnusedMemberExcelDto> unusedMembers;
|
||||
@Generated
|
||||
private List<PairingSummaryExcelDto> summaries;
|
||||
@Generated
|
||||
private List<ABPairExcelDto> abPairs;
|
||||
@Generated
|
||||
private List<CandidateSummaryExcelDto> candidateSummaries;
|
||||
@Generated
|
||||
private List<ValidationErrorExcelDto> validationErrors;
|
||||
@Generated
|
||||
private List<RuleViolationExcelDto> ruleViolations;
|
||||
|
||||
@Generated
|
||||
PairingResultBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder assignments(final List<AssignmentResultExcelDto> assignments) {
|
||||
this.assignments = assignments;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder unassignedCenters(final List<UnassignedCenterExcelDto> unassignedCenters) {
|
||||
this.unassignedCenters = unassignedCenters;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder unusedMembers(final List<UnusedMemberExcelDto> unusedMembers) {
|
||||
this.unusedMembers = unusedMembers;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder summaries(final List<PairingSummaryExcelDto> summaries) {
|
||||
this.summaries = summaries;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder abPairs(final List<ABPairExcelDto> abPairs) {
|
||||
this.abPairs = abPairs;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder candidateSummaries(final List<CandidateSummaryExcelDto> candidateSummaries) {
|
||||
this.candidateSummaries = candidateSummaries;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder validationErrors(final List<ValidationErrorExcelDto> validationErrors) {
|
||||
this.validationErrors = validationErrors;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResultBuilder ruleViolations(final List<RuleViolationExcelDto> ruleViolations) {
|
||||
this.ruleViolations = ruleViolations;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingResult build() {
|
||||
return new PairingResult(this.assignments, this.unassignedCenters, this.unusedMembers, this.summaries, this.abPairs, this.candidateSummaries, this.validationErrors, this.ruleViolations);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.assignments);
|
||||
return "PairingResult.PairingResultBuilder(assignments=" + var10000 + ", unassignedCenters=" + String.valueOf(this.unassignedCenters) + ", unusedMembers=" + String.valueOf(this.unusedMembers) + ", summaries=" + String.valueOf(this.summaries) + ", abPairs=" + String.valueOf(this.abPairs) + ", candidateSummaries=" + String.valueOf(this.candidateSummaries) + ", validationErrors=" + String.valueOf(this.validationErrors) + ", ruleViolations=" + String.valueOf(this.ruleViolations) + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
String var10000 = String.valueOf(this.assignments);
|
||||
return "PairingResult.PairingResultBuilder(assignments=" + var10000 + ", unassignedCenters="
|
||||
+ String.valueOf(this.unassignedCenters) + ", unusedMembers=" + String.valueOf(
|
||||
this.unusedMembers) + ", summaries=" + String.valueOf(this.summaries) + ", abPairs="
|
||||
+ String.valueOf(this.abPairs) + ", candidateSummaries=" + String.valueOf(
|
||||
this.candidateSummaries) + ", validationErrors=" + String.valueOf(this.validationErrors)
|
||||
+ ", ruleViolations=" + String.valueOf(this.ruleViolations) + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,76 +3,84 @@ package com.kri.p6.ncrc.pairing.model;
|
||||
import lombok.Generated;
|
||||
|
||||
public class PreferenceMatchRule {
|
||||
private final int priority;
|
||||
private final int fieldMemberPreferenceRank;
|
||||
private final int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
PreferenceMatchRule(final int priority, final int fieldMemberPreferenceRank, final int externalMemberPreferenceRank) {
|
||||
private final int priority;
|
||||
private final int fieldMemberPreferenceRank;
|
||||
private final int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
PreferenceMatchRule(final int priority, final int fieldMemberPreferenceRank,
|
||||
final int externalMemberPreferenceRank) {
|
||||
this.priority = priority;
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PreferenceMatchRuleBuilder builder() {
|
||||
return new PreferenceMatchRuleBuilder();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getPriority() {
|
||||
return this.priority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PreferenceMatchRuleBuilder {
|
||||
|
||||
@Generated
|
||||
private int priority;
|
||||
@Generated
|
||||
private int fieldMemberPreferenceRank;
|
||||
@Generated
|
||||
private int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
PreferenceMatchRuleBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PreferenceMatchRuleBuilder priority(final int priority) {
|
||||
this.priority = priority;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PreferenceMatchRuleBuilder fieldMemberPreferenceRank(
|
||||
final int fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PreferenceMatchRuleBuilder externalMemberPreferenceRank(
|
||||
final int externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static PreferenceMatchRuleBuilder builder() {
|
||||
return new PreferenceMatchRuleBuilder();
|
||||
}
|
||||
@Generated
|
||||
public PreferenceMatchRule build() {
|
||||
return new PreferenceMatchRule(this.priority, this.fieldMemberPreferenceRank,
|
||||
this.externalMemberPreferenceRank);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getPriority() {
|
||||
return this.priority;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getFieldMemberPreferenceRank() {
|
||||
return this.fieldMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public int getExternalMemberPreferenceRank() {
|
||||
return this.externalMemberPreferenceRank;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public static class PreferenceMatchRuleBuilder {
|
||||
@Generated
|
||||
private int priority;
|
||||
@Generated
|
||||
private int fieldMemberPreferenceRank;
|
||||
@Generated
|
||||
private int externalMemberPreferenceRank;
|
||||
|
||||
@Generated
|
||||
PreferenceMatchRuleBuilder() {
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PreferenceMatchRuleBuilder priority(final int priority) {
|
||||
this.priority = priority;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PreferenceMatchRuleBuilder fieldMemberPreferenceRank(final int fieldMemberPreferenceRank) {
|
||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PreferenceMatchRuleBuilder externalMemberPreferenceRank(final int externalMemberPreferenceRank) {
|
||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PreferenceMatchRule build() {
|
||||
return new PreferenceMatchRule(this.priority, this.fieldMemberPreferenceRank, this.externalMemberPreferenceRank);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "PreferenceMatchRule.PreferenceMatchRuleBuilder(priority=" + this.priority + ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank + ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank + ")";
|
||||
}
|
||||
}
|
||||
@Generated
|
||||
public String toString() {
|
||||
return "PreferenceMatchRule.PreferenceMatchRuleBuilder(priority=" + this.priority
|
||||
+ ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank
|
||||
+ ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank + ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package com.kri.p6.ncrc.pairing.service;
|
||||
|
||||
import com.kri.p6.ncrc.pairing.common.enums.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.Gender;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.config.PairingProperties;
|
||||
import com.kri.p6.ncrc.pairing.model.AssignmentCandidate;
|
||||
import com.kri.p6.ncrc.pairing.model.Center;
|
||||
import com.kri.p6.ncrc.pairing.model.CenterAdjacentRegion;
|
||||
import com.kri.p6.ncrc.pairing.model.DispatchRegionCandidate;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.Gender;
|
||||
import com.kri.p6.ncrc.pairing.model.Member;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.model.Municipality;
|
||||
import com.kri.p6.ncrc.pairing.model.PairCandidate;
|
||||
import com.kri.p6.ncrc.pairing.model.PairingCandidates;
|
||||
@@ -30,226 +30,294 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class PairingCandidateService {
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
public PairingCandidates generate(PairingData data) {
|
||||
List<PairCandidate> pairCandidates = this.createPairCandidates(data.getMembers());
|
||||
List<DispatchRegionCandidate> dispatchRegionCandidates = this.createDispatchRegionCandidates(data, pairCandidates);
|
||||
Map<String, Set<String>> unassignedCenterReasons = this.createInitialCenterReasonMap(data);
|
||||
List<AssignmentCandidate> assignmentCandidates = this.createAssignmentCandidates(data, pairCandidates, dispatchRegionCandidates, unassignedCenterReasons);
|
||||
return PairingCandidates.builder().pairCandidates(pairCandidates).dispatchRegionCandidates(dispatchRegionCandidates).assignmentCandidates(assignmentCandidates).unassignedCenterReasons(unassignedCenterReasons).build();
|
||||
}
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
private List<PairCandidate> createPairCandidates(List<Member> members) {
|
||||
List<Member> fieldMembers = members.stream().filter((member) -> member.getRole() == MemberRole.FIELD).toList();
|
||||
List<Member> externalMembers = members.stream().filter((member) -> member.getRole() == MemberRole.EXTERNAL).toList();
|
||||
List<PairCandidate> candidates = new ArrayList();
|
||||
public PairingCandidates generate(PairingData data) {
|
||||
List<PairCandidate> pairCandidates = this.createPairCandidates(data.getMembers());
|
||||
List<DispatchRegionCandidate> dispatchRegionCandidates = this.createDispatchRegionCandidates(
|
||||
data, pairCandidates);
|
||||
Map<String, Set<String>> unassignedCenterReasons = this.createInitialCenterReasonMap(data);
|
||||
List<AssignmentCandidate> assignmentCandidates = this.createAssignmentCandidates(data,
|
||||
pairCandidates, dispatchRegionCandidates, unassignedCenterReasons);
|
||||
return PairingCandidates.builder().pairCandidates(pairCandidates)
|
||||
.dispatchRegionCandidates(dispatchRegionCandidates)
|
||||
.assignmentCandidates(assignmentCandidates).unassignedCenterReasons(unassignedCenterReasons)
|
||||
.build();
|
||||
}
|
||||
|
||||
for(Member fieldMember : fieldMembers) {
|
||||
for(Member externalMember : externalMembers) {
|
||||
if (!this.isNewNewPair(fieldMember, externalMember) && this.hasDateOverlap(fieldMember, externalMember)) {
|
||||
candidates.add(PairCandidate.builder().fieldMemberId(fieldMember.getId()).externalMemberId(externalMember.getId()).residenceMatchScore(this.calculateResidenceMatchScore(fieldMember, externalMember)).build());
|
||||
}
|
||||
}
|
||||
private List<PairCandidate> createPairCandidates(List<Member> members) {
|
||||
List<Member> fieldMembers = members.stream()
|
||||
.filter((member) -> member.getRole() == MemberRole.FIELD).toList();
|
||||
List<Member> externalMembers = members.stream()
|
||||
.filter((member) -> member.getRole() == MemberRole.EXTERNAL).toList();
|
||||
List<PairCandidate> candidates = new ArrayList();
|
||||
|
||||
for (Member fieldMember : fieldMembers) {
|
||||
for (Member externalMember : externalMembers) {
|
||||
if (!this.isNewNewPair(fieldMember, externalMember) && this.hasDateOverlap(fieldMember,
|
||||
externalMember)) {
|
||||
candidates.add(PairCandidate.builder().fieldMemberId(fieldMember.getId())
|
||||
.externalMemberId(externalMember.getId())
|
||||
.residenceMatchScore(this.calculateResidenceMatchScore(fieldMember, externalMember))
|
||||
.build());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return candidates;
|
||||
}
|
||||
return candidates;
|
||||
}
|
||||
|
||||
private List<DispatchRegionCandidate> createDispatchRegionCandidates(PairingData data, List<PairCandidate> pairCandidates) {
|
||||
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
||||
Set<String> dispatchRegions = (Set)data.getCenterAdjacentRegions().stream().map(CenterAdjacentRegion::getDispatchRegion).collect(Collectors.toSet());
|
||||
List<DispatchRegionCandidate> candidates = new ArrayList();
|
||||
private List<DispatchRegionCandidate> createDispatchRegionCandidates(PairingData data,
|
||||
List<PairCandidate> pairCandidates) {
|
||||
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
||||
Set<String> dispatchRegions = (Set) data.getCenterAdjacentRegions().stream()
|
||||
.map(CenterAdjacentRegion::getDispatchRegion).collect(Collectors.toSet());
|
||||
List<DispatchRegionCandidate> candidates = new ArrayList();
|
||||
|
||||
for(PairCandidate pairCandidate : pairCandidates) {
|
||||
Member fieldMember = (Member)memberMap.get(pairCandidate.getFieldMemberId());
|
||||
Member externalMember = (Member)memberMap.get(pairCandidate.getExternalMemberId());
|
||||
for (PairCandidate pairCandidate : pairCandidates) {
|
||||
Member fieldMember = (Member) memberMap.get(pairCandidate.getFieldMemberId());
|
||||
Member externalMember = (Member) memberMap.get(pairCandidate.getExternalMemberId());
|
||||
|
||||
for(String dispatchRegion : dispatchRegions) {
|
||||
if (!this.isConflictRegion(fieldMember, externalMember, dispatchRegion)) {
|
||||
int fieldRank = this.findPreferenceRank(fieldMember, dispatchRegion);
|
||||
int externalRank = this.findPreferenceRank(externalMember, dispatchRegion);
|
||||
Optional<PreferenceMatchRule> matchRule = this.findPreferenceMatchRule(data.getPreferenceMatchRules(), fieldRank, externalRank);
|
||||
if (!matchRule.isEmpty()) {
|
||||
candidates.add(DispatchRegionCandidate.builder().fieldMemberId(fieldMember.getId()).externalMemberId(externalMember.getId()).dispatchRegion(dispatchRegion).preferencePriority(((PreferenceMatchRule)matchRule.get()).getPriority()).fieldMemberPreferenceRank(fieldRank).externalMemberPreferenceRank(externalRank).build());
|
||||
}
|
||||
}
|
||||
}
|
||||
for (String dispatchRegion : dispatchRegions) {
|
||||
if (!this.isConflictRegion(fieldMember, externalMember, dispatchRegion)) {
|
||||
int fieldRank = this.findPreferenceRank(fieldMember, dispatchRegion);
|
||||
int externalRank = this.findPreferenceRank(externalMember, dispatchRegion);
|
||||
Optional<PreferenceMatchRule> matchRule = this.findPreferenceMatchRule(
|
||||
data.getPreferenceMatchRules(), fieldRank, externalRank);
|
||||
if (!matchRule.isEmpty()) {
|
||||
candidates.add(DispatchRegionCandidate.builder().fieldMemberId(fieldMember.getId())
|
||||
.externalMemberId(externalMember.getId()).dispatchRegion(dispatchRegion)
|
||||
.preferencePriority(((PreferenceMatchRule) matchRule.get()).getPriority())
|
||||
.fieldMemberPreferenceRank(fieldRank).externalMemberPreferenceRank(externalRank)
|
||||
.build());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return candidates;
|
||||
}
|
||||
return candidates;
|
||||
}
|
||||
|
||||
private List<AssignmentCandidate> createAssignmentCandidates(PairingData data, List<PairCandidate> pairCandidates, List<DispatchRegionCandidate> dispatchRegionCandidates, Map<String, Set<String>> unassignedCenterReasons) {
|
||||
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
||||
Map<String, Municipality> municipalityMap = (Map)data.getMunicipalities().stream().collect(Collectors.toMap(Municipality::getId, Function.identity(), (left, right) -> left));
|
||||
Map<String, PairCandidate> pairMap = (Map)pairCandidates.stream().collect(Collectors.toMap(this::pairKey, Function.identity(), (left, right) -> left));
|
||||
Map<String, Set<String>> adjacentClassificationsByDispatchRegion = (Map)data.getCenterAdjacentRegions().stream().collect(Collectors.groupingBy(CenterAdjacentRegion::getDispatchRegion, Collectors.mapping(CenterAdjacentRegion::getAdjacentRegionClassification, Collectors.toSet())));
|
||||
List<AssignmentCandidate> candidates = new ArrayList();
|
||||
private List<AssignmentCandidate> createAssignmentCandidates(PairingData data,
|
||||
List<PairCandidate> pairCandidates, List<DispatchRegionCandidate> dispatchRegionCandidates,
|
||||
Map<String, Set<String>> unassignedCenterReasons) {
|
||||
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
||||
Map<String, Municipality> municipalityMap = (Map) data.getMunicipalities().stream()
|
||||
.collect(Collectors.toMap(Municipality::getId, Function.identity(), (left, right) -> left));
|
||||
Map<String, PairCandidate> pairMap = (Map) pairCandidates.stream()
|
||||
.collect(Collectors.toMap(this::pairKey, Function.identity(), (left, right) -> left));
|
||||
Map<String, Set<String>> adjacentClassificationsByDispatchRegion = (Map) data.getCenterAdjacentRegions()
|
||||
.stream().collect(Collectors.groupingBy(CenterAdjacentRegion::getDispatchRegion,
|
||||
Collectors.mapping(CenterAdjacentRegion::getAdjacentRegionClassification,
|
||||
Collectors.toSet())));
|
||||
List<AssignmentCandidate> candidates = new ArrayList();
|
||||
|
||||
for(DispatchRegionCandidate dispatchCandidate : dispatchRegionCandidates) {
|
||||
Member fieldMember = (Member)memberMap.get(dispatchCandidate.getFieldMemberId());
|
||||
Member externalMember = (Member)memberMap.get(dispatchCandidate.getExternalMemberId());
|
||||
PairCandidate pairCandidate = (PairCandidate)pairMap.get(this.pairKey(dispatchCandidate.getFieldMemberId(), dispatchCandidate.getExternalMemberId()));
|
||||
Set<String> adjacentClassifications = (Set)adjacentClassificationsByDispatchRegion.getOrDefault(dispatchCandidate.getDispatchRegion(), Set.of());
|
||||
for (DispatchRegionCandidate dispatchCandidate : dispatchRegionCandidates) {
|
||||
Member fieldMember = (Member) memberMap.get(dispatchCandidate.getFieldMemberId());
|
||||
Member externalMember = (Member) memberMap.get(dispatchCandidate.getExternalMemberId());
|
||||
PairCandidate pairCandidate = (PairCandidate) pairMap.get(
|
||||
this.pairKey(dispatchCandidate.getFieldMemberId(),
|
||||
dispatchCandidate.getExternalMemberId()));
|
||||
Set<String> adjacentClassifications = (Set) adjacentClassificationsByDispatchRegion.getOrDefault(
|
||||
dispatchCandidate.getDispatchRegion(), Set.of());
|
||||
|
||||
for(Center center : data.getCenters()) {
|
||||
if (!adjacentClassifications.contains(center.getAdjacentRegionClassification())) {
|
||||
this.addReason(unassignedCenterReasons, center.getId(), "파견 권역과 센터 인접지역 분류 불일치");
|
||||
for (Center center : data.getCenters()) {
|
||||
if (!adjacentClassifications.contains(center.getAdjacentRegionClassification())) {
|
||||
this.addReason(unassignedCenterReasons, center.getId(), "파견 권역과 센터 인접지역 분류 불일치");
|
||||
} else {
|
||||
Municipality municipality = (Municipality) municipalityMap.get(
|
||||
center.getMunicipalityId());
|
||||
List<String> centerReasons = this.findCenterHardRuleReasons(fieldMember, externalMember,
|
||||
center);
|
||||
if (!centerReasons.isEmpty()) {
|
||||
centerReasons.forEach(
|
||||
(reason) -> this.addReason(unassignedCenterReasons, center.getId(), reason));
|
||||
} else {
|
||||
LocalDate firstAssignableDate = this.findFirstAssignableDate(fieldMember,
|
||||
externalMember, municipality, center, this.commonUnavailableDates(data));
|
||||
if (firstAssignableDate == null) {
|
||||
this.addReason(unassignedCenterReasons, center.getId(),
|
||||
"위원/지자체/센터 일정 또는 국공휴일 조건 불일치");
|
||||
} else {
|
||||
Municipality municipality = (Municipality)municipalityMap.get(center.getMunicipalityId());
|
||||
List<String> centerReasons = this.findCenterHardRuleReasons(fieldMember, externalMember, center);
|
||||
if (!centerReasons.isEmpty()) {
|
||||
centerReasons.forEach((reason) -> this.addReason(unassignedCenterReasons, center.getId(), reason));
|
||||
} else {
|
||||
LocalDate firstAssignableDate = this.findFirstAssignableDate(fieldMember, externalMember, municipality, center, this.commonUnavailableDates(data));
|
||||
if (firstAssignableDate == null) {
|
||||
this.addReason(unassignedCenterReasons, center.getId(), "위원/지자체/센터 일정 또는 국공휴일 조건 불일치");
|
||||
} else {
|
||||
candidates.add(AssignmentCandidate.builder().fieldMemberId(fieldMember.getId()).externalMemberId(externalMember.getId()).centerId(center.getId()).municipalityId(center.getMunicipalityId()).date(firstAssignableDate).dispatchRegion(dispatchCandidate.getDispatchRegion()).adjacentRegionClassification(center.getAdjacentRegionClassification()).preferencePriority(dispatchCandidate.getPreferencePriority()).fieldMemberPreferenceRank(dispatchCandidate.getFieldMemberPreferenceRank()).externalMemberPreferenceRank(dispatchCandidate.getExternalMemberPreferenceRank()).residenceMatchScore(pairCandidate == null ? 0 : pairCandidate.getResidenceMatchScore()).build());
|
||||
}
|
||||
}
|
||||
candidates.add(AssignmentCandidate.builder().fieldMemberId(fieldMember.getId())
|
||||
.externalMemberId(externalMember.getId()).centerId(center.getId())
|
||||
.municipalityId(center.getMunicipalityId()).date(firstAssignableDate)
|
||||
.dispatchRegion(dispatchCandidate.getDispatchRegion())
|
||||
.adjacentRegionClassification(center.getAdjacentRegionClassification())
|
||||
.preferencePriority(dispatchCandidate.getPreferencePriority())
|
||||
.fieldMemberPreferenceRank(dispatchCandidate.getFieldMemberPreferenceRank())
|
||||
.externalMemberPreferenceRank(dispatchCandidate.getExternalMemberPreferenceRank())
|
||||
.residenceMatchScore(
|
||||
pairCandidate == null ? 0 : pairCandidate.getResidenceMatchScore()).build());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return candidates;
|
||||
}
|
||||
|
||||
private boolean isNewNewPair(Member fieldMember, Member externalMember) {
|
||||
return fieldMember.getExperienceType() == ExperienceType.NEW
|
||||
&& externalMember.getExperienceType() == ExperienceType.NEW;
|
||||
}
|
||||
|
||||
private boolean hasDateOverlap(Member fieldMember, Member externalMember) {
|
||||
LocalDate latestStart = this.max(fieldMember.getAvailableStartDate(),
|
||||
externalMember.getAvailableStartDate());
|
||||
LocalDate earliestEnd = this.min(fieldMember.getAvailableEndDate(),
|
||||
externalMember.getAvailableEndDate());
|
||||
return !latestStart.isAfter(earliestEnd);
|
||||
}
|
||||
|
||||
private int calculateResidenceMatchScore(Member fieldMember, Member externalMember) {
|
||||
String fieldPrefix = this.prefix(fieldMember.getResidenceCode());
|
||||
String externalPrefix = this.prefix(externalMember.getResidenceCode());
|
||||
return fieldPrefix.equals(externalPrefix) ? 1 : 0;
|
||||
}
|
||||
|
||||
private boolean isConflictRegion(Member fieldMember, Member externalMember,
|
||||
String dispatchRegion) {
|
||||
return dispatchRegion.equals(fieldMember.getActivityRegion()) || dispatchRegion.equals(
|
||||
externalMember.getActivityRegion());
|
||||
}
|
||||
|
||||
private int findPreferenceRank(Member member, String dispatchRegion) {
|
||||
List<String> preferences = member.getPreferenceRegions();
|
||||
|
||||
for (int i = 0; i < preferences.size(); ++i) {
|
||||
String preference = (String) preferences.get(i);
|
||||
if (dispatchRegion.equals(preference)) {
|
||||
return i + 1;
|
||||
}
|
||||
|
||||
return candidates;
|
||||
}
|
||||
if (this.anyRegionCode().equals(preference)) {
|
||||
return this.anywherePreferenceRank();
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isNewNewPair(Member fieldMember, Member externalMember) {
|
||||
return fieldMember.getExperienceType() == ExperienceType.NEW && externalMember.getExperienceType() == ExperienceType.NEW;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
private boolean hasDateOverlap(Member fieldMember, Member externalMember) {
|
||||
LocalDate latestStart = this.max(fieldMember.getAvailableStartDate(), externalMember.getAvailableStartDate());
|
||||
LocalDate earliestEnd = this.min(fieldMember.getAvailableEndDate(), externalMember.getAvailableEndDate());
|
||||
return !latestStart.isAfter(earliestEnd);
|
||||
}
|
||||
private Optional<PreferenceMatchRule> findPreferenceMatchRule(List<PreferenceMatchRule> rules,
|
||||
int fieldRank, int externalRank) {
|
||||
return fieldRank >= 0 && externalRank >= 0 ? rules.stream().filter(
|
||||
(rule) -> this.matchesPreferenceRank(rule.getFieldMemberPreferenceRank(), fieldRank))
|
||||
.filter((rule) -> this.matchesPreferenceRank(
|
||||
rule.getExternalMemberPreferenceRank(),
|
||||
externalRank)).min(
|
||||
Comparator.comparingInt(PreferenceMatchRule::getPriority)) : Optional.empty();
|
||||
}
|
||||
|
||||
private int calculateResidenceMatchScore(Member fieldMember, Member externalMember) {
|
||||
String fieldPrefix = this.prefix(fieldMember.getResidenceCode());
|
||||
String externalPrefix = this.prefix(externalMember.getResidenceCode());
|
||||
return fieldPrefix.equals(externalPrefix) ? 1 : 0;
|
||||
}
|
||||
private boolean matchesPreferenceRank(int ruleRank, int memberRank) {
|
||||
return ruleRank == this.ignoredPreferenceRank() || ruleRank == memberRank;
|
||||
}
|
||||
|
||||
private boolean isConflictRegion(Member fieldMember, Member externalMember, String dispatchRegion) {
|
||||
return dispatchRegion.equals(fieldMember.getActivityRegion()) || dispatchRegion.equals(externalMember.getActivityRegion());
|
||||
}
|
||||
private List<String> findCenterHardRuleReasons(Member fieldMember, Member externalMember,
|
||||
Center center) {
|
||||
List<String> reasons = new ArrayList();
|
||||
if (center.isWomenOnly() && (fieldMember.getGender() != Gender.FEMALE
|
||||
|| externalMember.getGender() != Gender.FEMALE)) {
|
||||
reasons.add("여성 전용 센터 조건 불충족");
|
||||
}
|
||||
|
||||
private int findPreferenceRank(Member member, String dispatchRegion) {
|
||||
List<String> preferences = member.getPreferenceRegions();
|
||||
if (fieldMember.getHistoryCenterIds().contains(center.getId())
|
||||
|| externalMember.getHistoryCenterIds().contains(center.getId())) {
|
||||
reasons.add("2023년 진행 센터 재배정 제외");
|
||||
}
|
||||
|
||||
for(int i = 0; i < preferences.size(); ++i) {
|
||||
String preference = (String)preferences.get(i);
|
||||
if (dispatchRegion.equals(preference)) {
|
||||
return i + 1;
|
||||
}
|
||||
return reasons;
|
||||
}
|
||||
|
||||
if (this.anyRegionCode().equals(preference)) {
|
||||
return this.anywherePreferenceRank();
|
||||
}
|
||||
private LocalDate findFirstAssignableDate(Member fieldMember, Member externalMember,
|
||||
Municipality municipality, Center center, Set<LocalDate> commonUnavailableDates) {
|
||||
LocalDate start = this.max(
|
||||
this.max(fieldMember.getAvailableStartDate(), externalMember.getAvailableStartDate()),
|
||||
this.max(municipality.getAvailableStartDate(), center.getAvailableStartDate()));
|
||||
LocalDate end = this.min(
|
||||
this.min(fieldMember.getAvailableEndDate(), externalMember.getAvailableEndDate()),
|
||||
this.min(municipality.getAvailableEndDate(), center.getAvailableEndDate()));
|
||||
if (start.isAfter(end)) {
|
||||
return null;
|
||||
} else {
|
||||
for (LocalDate date = start; !date.isAfter(end); date = date.plusDays(1L)) {
|
||||
if (this.isAvailableOn(date, fieldMember, externalMember, municipality, center,
|
||||
commonUnavailableDates)) {
|
||||
return date;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private Optional<PreferenceMatchRule> findPreferenceMatchRule(List<PreferenceMatchRule> rules, int fieldRank, int externalRank) {
|
||||
return fieldRank >= 0 && externalRank >= 0 ? rules.stream().filter((rule) -> this.matchesPreferenceRank(rule.getFieldMemberPreferenceRank(), fieldRank)).filter((rule) -> this.matchesPreferenceRank(rule.getExternalMemberPreferenceRank(), externalRank)).min(Comparator.comparingInt(PreferenceMatchRule::getPriority)) : Optional.empty();
|
||||
}
|
||||
private boolean isAvailableOn(LocalDate date, Member fieldMember, Member externalMember,
|
||||
Municipality municipality, Center center, Set<LocalDate> commonUnavailableDates) {
|
||||
return !fieldMember.getUnavailableDates().contains(date)
|
||||
&& !externalMember.getUnavailableDates().contains(date)
|
||||
&& !municipality.getUnavailableDates().contains(date) && !center.getUnavailableDates()
|
||||
.contains(date) && !commonUnavailableDates.contains(date);
|
||||
}
|
||||
|
||||
private boolean matchesPreferenceRank(int ruleRank, int memberRank) {
|
||||
return ruleRank == this.ignoredPreferenceRank() || ruleRank == memberRank;
|
||||
}
|
||||
private Map<String, Set<String>> createInitialCenterReasonMap(PairingData data) {
|
||||
Map<String, Set<String>> reasons = new HashMap();
|
||||
data.getCenters().forEach((center) -> reasons.put(center.getId(), new LinkedHashSet()));
|
||||
return reasons;
|
||||
}
|
||||
|
||||
private List<String> findCenterHardRuleReasons(Member fieldMember, Member externalMember, Center center) {
|
||||
List<String> reasons = new ArrayList();
|
||||
if (center.isWomenOnly() && (fieldMember.getGender() != Gender.FEMALE || externalMember.getGender() != Gender.FEMALE)) {
|
||||
reasons.add("여성 전용 센터 조건 불충족");
|
||||
}
|
||||
private void addReason(Map<String, Set<String>> reasons, String centerId, String reason) {
|
||||
((Set) reasons.computeIfAbsent(centerId, (key) -> new LinkedHashSet())).add(reason);
|
||||
}
|
||||
|
||||
if (fieldMember.getHistoryCenterIds().contains(center.getId()) || externalMember.getHistoryCenterIds().contains(center.getId())) {
|
||||
reasons.add("2023년 진행 센터 재배정 제외");
|
||||
}
|
||||
private Set<LocalDate> commonUnavailableDates(PairingData data) {
|
||||
return data.getCommonUnavailableDates() == null ? Set.of() : data.getCommonUnavailableDates();
|
||||
}
|
||||
|
||||
return reasons;
|
||||
}
|
||||
private Map<String, Member> toMemberMap(List<Member> members) {
|
||||
return (Map) members.stream()
|
||||
.collect(Collectors.toMap(Member::getId, Function.identity(), (left, right) -> left));
|
||||
}
|
||||
|
||||
private LocalDate findFirstAssignableDate(Member fieldMember, Member externalMember, Municipality municipality, Center center, Set<LocalDate> commonUnavailableDates) {
|
||||
LocalDate start = this.max(this.max(fieldMember.getAvailableStartDate(), externalMember.getAvailableStartDate()), this.max(municipality.getAvailableStartDate(), center.getAvailableStartDate()));
|
||||
LocalDate end = this.min(this.min(fieldMember.getAvailableEndDate(), externalMember.getAvailableEndDate()), this.min(municipality.getAvailableEndDate(), center.getAvailableEndDate()));
|
||||
if (start.isAfter(end)) {
|
||||
return null;
|
||||
} else {
|
||||
for(LocalDate date = start; !date.isAfter(end); date = date.plusDays(1L)) {
|
||||
if (this.isAvailableOn(date, fieldMember, externalMember, municipality, center, commonUnavailableDates)) {
|
||||
return date;
|
||||
}
|
||||
}
|
||||
private String pairKey(PairCandidate pairCandidate) {
|
||||
return this.pairKey(pairCandidate.getFieldMemberId(), pairCandidate.getExternalMemberId());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
private String pairKey(String fieldMemberId, String externalMemberId) {
|
||||
return fieldMemberId + "|" + externalMemberId;
|
||||
}
|
||||
|
||||
private boolean isAvailableOn(LocalDate date, Member fieldMember, Member externalMember, Municipality municipality, Center center, Set<LocalDate> commonUnavailableDates) {
|
||||
return !fieldMember.getUnavailableDates().contains(date) && !externalMember.getUnavailableDates().contains(date) && !municipality.getUnavailableDates().contains(date) && !center.getUnavailableDates().contains(date) && !commonUnavailableDates.contains(date);
|
||||
}
|
||||
private String prefix(String value) {
|
||||
return value.substring(0, Math.min(this.residenceMatchPrefixLength(), value.length()));
|
||||
}
|
||||
|
||||
private Map<String, Set<String>> createInitialCenterReasonMap(PairingData data) {
|
||||
Map<String, Set<String>> reasons = new HashMap();
|
||||
data.getCenters().forEach((center) -> reasons.put(center.getId(), new LinkedHashSet()));
|
||||
return reasons;
|
||||
}
|
||||
private String anyRegionCode() {
|
||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||
}
|
||||
|
||||
private void addReason(Map<String, Set<String>> reasons, String centerId, String reason) {
|
||||
((Set)reasons.computeIfAbsent(centerId, (key) -> new LinkedHashSet())).add(reason);
|
||||
}
|
||||
private int anywherePreferenceRank() {
|
||||
return this.pairingProperties.getPreference().getAnywhereRank();
|
||||
}
|
||||
|
||||
private Set<LocalDate> commonUnavailableDates(PairingData data) {
|
||||
return data.getCommonUnavailableDates() == null ? Set.of() : data.getCommonUnavailableDates();
|
||||
}
|
||||
private int ignoredPreferenceRank() {
|
||||
return this.pairingProperties.getPreference().getIgnoredRank();
|
||||
}
|
||||
|
||||
private Map<String, Member> toMemberMap(List<Member> members) {
|
||||
return (Map)members.stream().collect(Collectors.toMap(Member::getId, Function.identity(), (left, right) -> left));
|
||||
}
|
||||
private int residenceMatchPrefixLength() {
|
||||
return this.pairingProperties.getCode().getResidenceMatchPrefixLength();
|
||||
}
|
||||
|
||||
private String pairKey(PairCandidate pairCandidate) {
|
||||
return this.pairKey(pairCandidate.getFieldMemberId(), pairCandidate.getExternalMemberId());
|
||||
}
|
||||
private LocalDate max(LocalDate left, LocalDate right) {
|
||||
return left.isAfter(right) ? left : right;
|
||||
}
|
||||
|
||||
private String pairKey(String fieldMemberId, String externalMemberId) {
|
||||
return fieldMemberId + "|" + externalMemberId;
|
||||
}
|
||||
private LocalDate min(LocalDate left, LocalDate right) {
|
||||
return left.isBefore(right) ? left : right;
|
||||
}
|
||||
|
||||
private String prefix(String value) {
|
||||
return value.substring(0, Math.min(this.residenceMatchPrefixLength(), value.length()));
|
||||
}
|
||||
|
||||
private String anyRegionCode() {
|
||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||
}
|
||||
|
||||
private int anywherePreferenceRank() {
|
||||
return this.pairingProperties.getPreference().getAnywhereRank();
|
||||
}
|
||||
|
||||
private int ignoredPreferenceRank() {
|
||||
return this.pairingProperties.getPreference().getIgnoredRank();
|
||||
}
|
||||
|
||||
private int residenceMatchPrefixLength() {
|
||||
return this.pairingProperties.getCode().getResidenceMatchPrefixLength();
|
||||
}
|
||||
|
||||
private LocalDate max(LocalDate left, LocalDate right) {
|
||||
return left.isAfter(right) ? left : right;
|
||||
}
|
||||
|
||||
private LocalDate min(LocalDate left, LocalDate right) {
|
||||
return left.isBefore(right) ? left : right;
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingCandidateService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
@Generated
|
||||
public PairingCandidateService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,21 +3,21 @@ package com.kri.p6.ncrc.pairing.service;
|
||||
import com.kri.common.feature.excel.ExcelMapper;
|
||||
import com.kri.common.feature.web.BusinessException;
|
||||
import com.kri.p6.ncrc.pairing.config.PairingProperties;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.ABPairExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.AssignmentResultExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.CandidateSummaryExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.PairingSummaryExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.PairingWorkbookData;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.RuleViolationExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.UnassignedCenterExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.UnusedMemberExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.ValidationErrorExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.CenterAdjacentRegionExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.CenterExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MemberExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MemberRegionCodeExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MunicipalityExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.PairingWorkbookData;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.PreferenceMatchExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.ABPairExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.AssignmentResultExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.CandidateSummaryExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.PairingSummaryExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.RuleViolationExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.UnassignedCenterExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.UnusedMemberExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.output.ValidationErrorExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.model.PairingResult;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -33,145 +33,173 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@Service
|
||||
public class PairingExcelService {
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
public PairingWorkbookData read(MultipartFile file) {
|
||||
if (file != null && !file.isEmpty()) {
|
||||
try {
|
||||
InputStream inputStream = file.getInputStream();
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
PairingWorkbookData var4;
|
||||
try {
|
||||
Workbook workbook = WorkbookFactory.create(inputStream);
|
||||
|
||||
try {
|
||||
var4 = PairingWorkbookData.builder().members(this.readSheet(workbook, MemberExcelDto.class, "위원정보")).municipalities(this.readSheet(workbook, MunicipalityExcelDto.class, "지자체 정보")).centers(this.readSheet(workbook, CenterExcelDto.class, "센터정보")).memberRegionCodes(this.readSheet(workbook, MemberRegionCodeExcelDto.class, "위원 지역 코드표")).centerAdjacentRegions(this.readSheet(workbook, CenterAdjacentRegionExcelDto.class, "센터 인접지역표")).preferenceMatchRules(this.readSheet(workbook, PreferenceMatchExcelDto.class, "희망지역 매칭표")).build();
|
||||
} catch (Throwable var8) {
|
||||
if (workbook != null) {
|
||||
try {
|
||||
workbook.close();
|
||||
} catch (Throwable var7) {
|
||||
var8.addSuppressed(var7);
|
||||
}
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
|
||||
if (workbook != null) {
|
||||
workbook.close();
|
||||
}
|
||||
} catch (Throwable var9) {
|
||||
if (inputStream != null) {
|
||||
try {
|
||||
inputStream.close();
|
||||
} catch (Throwable var6) {
|
||||
var9.addSuppressed(var6);
|
||||
}
|
||||
}
|
||||
|
||||
throw var9;
|
||||
}
|
||||
|
||||
if (inputStream != null) {
|
||||
inputStream.close();
|
||||
}
|
||||
|
||||
return var4;
|
||||
} catch (BusinessException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw BusinessException.badRequest("PAIRING_EXCEL_READ_FAILED", "엑셀 파일을 읽는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
}
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_FILE", "업로드된 엑셀 파일이 없습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] write(PairingResult result) {
|
||||
public PairingWorkbookData read(MultipartFile file) {
|
||||
if (file != null && !file.isEmpty()) {
|
||||
try {
|
||||
Workbook workbook = ExcelMapper.writeToWorkbook(result.getAssignments(), AssignmentResultExcelDto.class, "배정결과");
|
||||
InputStream inputStream = file.getInputStream();
|
||||
|
||||
byte[] var4;
|
||||
try {
|
||||
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
||||
PairingWorkbookData var4;
|
||||
try {
|
||||
Workbook workbook = WorkbookFactory.create(inputStream);
|
||||
|
||||
try {
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getUnassignedCenters(), UnassignedCenterExcelDto.class, "미배정센터", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getUnusedMembers(), UnusedMemberExcelDto.class, "미사용위원", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getSummaries(), PairingSummaryExcelDto.class, "처리요약", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getAbPairs(), ABPairExcelDto.class, "AB페어목록", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getCandidateSummaries(), CandidateSummaryExcelDto.class, "후보요약", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getValidationErrors(), ValidationErrorExcelDto.class, "검증오류", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getRuleViolations(), RuleViolationExcelDto.class, "규칙위반검사", this.headerRowIndex());
|
||||
workbook.write(outputStream);
|
||||
var4 = outputStream.toByteArray();
|
||||
} catch (Throwable var8) {
|
||||
try {
|
||||
outputStream.close();
|
||||
} catch (Throwable var7) {
|
||||
var8.addSuppressed(var7);
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
|
||||
outputStream.close();
|
||||
} catch (Throwable var9) {
|
||||
try {
|
||||
var4 = PairingWorkbookData.builder()
|
||||
.members(this.readSheet(workbook, MemberExcelDto.class, "위원정보"))
|
||||
.municipalities(this.readSheet(workbook, MunicipalityExcelDto.class, "지자체 정보"))
|
||||
.centers(this.readSheet(workbook, CenterExcelDto.class, "센터정보")).memberRegionCodes(
|
||||
this.readSheet(workbook, MemberRegionCodeExcelDto.class, "위원 지역 코드표"))
|
||||
.centerAdjacentRegions(
|
||||
this.readSheet(workbook, CenterAdjacentRegionExcelDto.class, "센터 인접지역표"))
|
||||
.preferenceMatchRules(
|
||||
this.readSheet(workbook, PreferenceMatchExcelDto.class, "희망지역 매칭표")).build();
|
||||
} catch (Throwable var8) {
|
||||
if (workbook != null) {
|
||||
try {
|
||||
workbook.close();
|
||||
} catch (Throwable var6) {
|
||||
var9.addSuppressed(var6);
|
||||
}
|
||||
try {
|
||||
workbook.close();
|
||||
} catch (Throwable var7) {
|
||||
var8.addSuppressed(var7);
|
||||
}
|
||||
}
|
||||
|
||||
throw var9;
|
||||
}
|
||||
throw var8;
|
||||
}
|
||||
|
||||
if (workbook != null) {
|
||||
if (workbook != null) {
|
||||
workbook.close();
|
||||
}
|
||||
}
|
||||
} catch (Throwable var9) {
|
||||
if (inputStream != null) {
|
||||
try {
|
||||
inputStream.close();
|
||||
} catch (Throwable var6) {
|
||||
var9.addSuppressed(var6);
|
||||
}
|
||||
}
|
||||
|
||||
return var4;
|
||||
} catch (IOException e) {
|
||||
throw BusinessException.badRequest("PAIRING_EXCEL_WRITE_FAILED", "결과 엑셀 파일을 생성하는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
throw var9;
|
||||
}
|
||||
|
||||
if (inputStream != null) {
|
||||
inputStream.close();
|
||||
}
|
||||
|
||||
return var4;
|
||||
} catch (BusinessException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw BusinessException.badRequest("PAIRING_EXCEL_READ_FAILED",
|
||||
"엑셀 파일을 읽는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_FILE", "업로드된 엑셀 파일이 없습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] writeValidationError(String code, String message) {
|
||||
PairingResult result = PairingResult.builder().assignments(List.of()).unassignedCenters(List.of()).unusedMembers(List.of()).summaries(List.of(new PairingSummaryExcelDto("처리 상태", "검증 실패"))).abPairs(List.of()).candidateSummaries(List.of()).validationErrors(List.of(new ValidationErrorExcelDto(code, message, "ERROR"))).ruleViolations(List.of()).build();
|
||||
return this.write(result);
|
||||
}
|
||||
public byte[] write(PairingResult result) {
|
||||
try {
|
||||
Workbook workbook = ExcelMapper.writeToWorkbook(result.getAssignments(),
|
||||
AssignmentResultExcelDto.class, "배정결과");
|
||||
|
||||
private <T> List<T> readSheet(Workbook workbook, Class<T> type, String sheetName) {
|
||||
if (workbook.getSheet(sheetName) == null) {
|
||||
throw BusinessException.badRequest("PAIRING_REQUIRED_SHEET_MISSING", "필수 시트가 없습니다: " + sheetName);
|
||||
} else {
|
||||
return ExcelMapper.readFromWorkbook(workbook, type, sheetName, this.headerRowIndex()).stream().filter((row) -> !this.isBlankRow(row)).toList();
|
||||
}
|
||||
}
|
||||
|
||||
private int headerRowIndex() {
|
||||
return this.pairingProperties.getExcel().getHeaderRowIndex();
|
||||
}
|
||||
|
||||
private boolean isBlankRow(Object row) {
|
||||
return Arrays.stream(row.getClass().getDeclaredFields()).allMatch((field) -> this.isBlankField(row, field));
|
||||
}
|
||||
|
||||
private boolean isBlankField(Object row, Field field) {
|
||||
byte[] var4;
|
||||
try {
|
||||
field.setAccessible(true);
|
||||
Object value = field.get(row);
|
||||
return value == null || value.toString().trim().isBlank();
|
||||
} catch (IllegalAccessException e) {
|
||||
throw BusinessException.badRequest("PAIRING_EXCEL_READ_FAILED", "엑셀 행을 확인하는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
||||
|
||||
@Generated
|
||||
public PairingExcelService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
try {
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getUnassignedCenters(),
|
||||
UnassignedCenterExcelDto.class, "미배정센터", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getUnusedMembers(),
|
||||
UnusedMemberExcelDto.class, "미사용위원", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getSummaries(),
|
||||
PairingSummaryExcelDto.class, "처리요약", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getAbPairs(), ABPairExcelDto.class,
|
||||
"AB페어목록", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getCandidateSummaries(),
|
||||
CandidateSummaryExcelDto.class, "후보요약", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getValidationErrors(),
|
||||
ValidationErrorExcelDto.class, "검증오류", this.headerRowIndex());
|
||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getRuleViolations(),
|
||||
RuleViolationExcelDto.class, "규칙위반검사", this.headerRowIndex());
|
||||
workbook.write(outputStream);
|
||||
var4 = outputStream.toByteArray();
|
||||
} catch (Throwable var8) {
|
||||
try {
|
||||
outputStream.close();
|
||||
} catch (Throwable var7) {
|
||||
var8.addSuppressed(var7);
|
||||
}
|
||||
|
||||
throw var8;
|
||||
}
|
||||
|
||||
outputStream.close();
|
||||
} catch (Throwable var9) {
|
||||
if (workbook != null) {
|
||||
try {
|
||||
workbook.close();
|
||||
} catch (Throwable var6) {
|
||||
var9.addSuppressed(var6);
|
||||
}
|
||||
}
|
||||
|
||||
throw var9;
|
||||
}
|
||||
|
||||
if (workbook != null) {
|
||||
workbook.close();
|
||||
}
|
||||
|
||||
return var4;
|
||||
} catch (IOException e) {
|
||||
throw BusinessException.badRequest("PAIRING_EXCEL_WRITE_FAILED",
|
||||
"결과 엑셀 파일을 생성하는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] writeValidationError(String code, String message) {
|
||||
PairingResult result = PairingResult.builder().assignments(List.of())
|
||||
.unassignedCenters(List.of()).unusedMembers(List.of())
|
||||
.summaries(List.of(new PairingSummaryExcelDto("처리 상태", "검증 실패"))).abPairs(List.of())
|
||||
.candidateSummaries(List.of())
|
||||
.validationErrors(List.of(new ValidationErrorExcelDto(code, message, "ERROR")))
|
||||
.ruleViolations(List.of()).build();
|
||||
return this.write(result);
|
||||
}
|
||||
|
||||
private <T> List<T> readSheet(Workbook workbook, Class<T> type, String sheetName) {
|
||||
if (workbook.getSheet(sheetName) == null) {
|
||||
throw BusinessException.badRequest("PAIRING_REQUIRED_SHEET_MISSING",
|
||||
"필수 시트가 없습니다: " + sheetName);
|
||||
} else {
|
||||
return ExcelMapper.readFromWorkbook(workbook, type, sheetName, this.headerRowIndex()).stream()
|
||||
.filter((row) -> !this.isBlankRow(row)).toList();
|
||||
}
|
||||
}
|
||||
|
||||
private int headerRowIndex() {
|
||||
return this.pairingProperties.getExcel().getHeaderRowIndex();
|
||||
}
|
||||
|
||||
private boolean isBlankRow(Object row) {
|
||||
return Arrays.stream(row.getClass().getDeclaredFields())
|
||||
.allMatch((field) -> this.isBlankField(row, field));
|
||||
}
|
||||
|
||||
private boolean isBlankField(Object row, Field field) {
|
||||
try {
|
||||
field.setAccessible(true);
|
||||
Object value = field.get(row);
|
||||
return value == null || value.toString().trim().isBlank();
|
||||
} catch (IllegalAccessException e) {
|
||||
throw BusinessException.badRequest("PAIRING_EXCEL_READ_FAILED",
|
||||
"엑셀 행을 확인하는 중 오류가 발생했습니다: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingExcelService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,36 +13,47 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class PairingHolidayService {
|
||||
private static final DateTimeFormatter DATAGO_DATE_FORMAT = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||
private final DatagoHolidayCache datagoHolidayCache;
|
||||
|
||||
public PairingData applyHolidayUnavailableDates(PairingData data) {
|
||||
Set<String> years = this.collectYears(data);
|
||||
Set<LocalDate> holidays = this.datagoHolidayCache.getHolidays(years).stream().map(this::toHolidayDate).collect(Collectors.toSet());
|
||||
return PairingData.builder().members(data.getMembers()).municipalities(data.getMunicipalities()).centers(data.getCenters()).memberRegionCodes(data.getMemberRegionCodes()).centerAdjacentRegions(data.getCenterAdjacentRegions()).preferenceMatchRules(data.getPreferenceMatchRules()).commonUnavailableDates(holidays).build();
|
||||
}
|
||||
private static final DateTimeFormatter DATAGO_DATE_FORMAT = DateTimeFormatter.ofPattern(
|
||||
"yyyyMMdd");
|
||||
private final DatagoHolidayCache datagoHolidayCache;
|
||||
|
||||
private Set<String> collectYears(PairingData data) {
|
||||
Set<String> years = new HashSet();
|
||||
data.getMembers().forEach((member) -> this.addYears(years, member.getAvailableStartDate(), member.getAvailableEndDate()));
|
||||
data.getMunicipalities().forEach((municipality) -> this.addYears(years, municipality.getAvailableStartDate(), municipality.getAvailableEndDate()));
|
||||
data.getCenters().forEach((center) -> this.addYears(years, center.getAvailableStartDate(), center.getAvailableEndDate()));
|
||||
return years;
|
||||
}
|
||||
public PairingData applyHolidayUnavailableDates(PairingData data) {
|
||||
Set<String> years = this.collectYears(data);
|
||||
Set<LocalDate> holidays = this.datagoHolidayCache.getHolidays(years).stream()
|
||||
.map(this::toHolidayDate).collect(Collectors.toSet());
|
||||
return PairingData.builder().members(data.getMembers()).municipalities(data.getMunicipalities())
|
||||
.centers(data.getCenters()).memberRegionCodes(data.getMemberRegionCodes())
|
||||
.centerAdjacentRegions(data.getCenterAdjacentRegions())
|
||||
.preferenceMatchRules(data.getPreferenceMatchRules()).commonUnavailableDates(holidays)
|
||||
.build();
|
||||
}
|
||||
|
||||
private void addYears(Set<String> years, LocalDate startDate, LocalDate endDate) {
|
||||
for(int year = startDate.getYear(); year <= endDate.getYear(); ++year) {
|
||||
years.add(String.valueOf(year));
|
||||
}
|
||||
private Set<String> collectYears(PairingData data) {
|
||||
Set<String> years = new HashSet();
|
||||
data.getMembers().forEach((member) -> this.addYears(years, member.getAvailableStartDate(),
|
||||
member.getAvailableEndDate()));
|
||||
data.getMunicipalities().forEach(
|
||||
(municipality) -> this.addYears(years, municipality.getAvailableStartDate(),
|
||||
municipality.getAvailableEndDate()));
|
||||
data.getCenters().forEach((center) -> this.addYears(years, center.getAvailableStartDate(),
|
||||
center.getAvailableEndDate()));
|
||||
return years;
|
||||
}
|
||||
|
||||
}
|
||||
private void addYears(Set<String> years, LocalDate startDate, LocalDate endDate) {
|
||||
for (int year = startDate.getYear(); year <= endDate.getYear(); ++year) {
|
||||
years.add(String.valueOf(year));
|
||||
}
|
||||
|
||||
private LocalDate toHolidayDate(HolidayDto holidayDto) {
|
||||
return LocalDate.parse(holidayDto.getHolidayDate(), DATAGO_DATE_FORMAT);
|
||||
}
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingHolidayService(final DatagoHolidayCache datagoHolidayCache) {
|
||||
this.datagoHolidayCache = datagoHolidayCache;
|
||||
}
|
||||
private LocalDate toHolidayDate(HolidayDto holidayDto) {
|
||||
return LocalDate.parse(holidayDto.getHolidayDate(), DATAGO_DATE_FORMAT);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingHolidayService(final DatagoHolidayCache datagoHolidayCache) {
|
||||
this.datagoHolidayCache = datagoHolidayCache;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
package com.kri.p6.ncrc.pairing.service;
|
||||
|
||||
import com.kri.common.feature.web.BusinessException;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.Gender;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.config.PairingProperties;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.PairingWorkbookData;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.CenterAdjacentRegionExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.CenterExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MemberExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MemberRegionCodeExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MunicipalityExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.PairingWorkbookData;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.PreferenceMatchExcelDto;
|
||||
import com.kri.p6.ncrc.pairing.model.Center;
|
||||
import com.kri.p6.ncrc.pairing.model.CenterAdjacentRegion;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.Gender;
|
||||
import com.kri.p6.ncrc.pairing.model.Member;
|
||||
import com.kri.p6.ncrc.pairing.model.MemberRegionCode;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.model.Municipality;
|
||||
import com.kri.p6.ncrc.pairing.model.PairingData;
|
||||
import com.kri.p6.ncrc.pairing.model.PreferenceMatchRule;
|
||||
@@ -32,174 +32,233 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class PairingNormalizeService {
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
public PairingData normalize(PairingWorkbookData workbookData) {
|
||||
return PairingData.builder().members(workbookData.getMembers().stream().map(this::toMember).toList()).municipalities(workbookData.getMunicipalities().stream().map(this::toMunicipality).toList()).centers(workbookData.getCenters().stream().map(this::toCenter).toList()).memberRegionCodes(workbookData.getMemberRegionCodes().stream().map(this::toMemberRegionCode).toList()).centerAdjacentRegions(workbookData.getCenterAdjacentRegions().stream().map(this::toCenterAdjacentRegion).toList()).preferenceMatchRules(workbookData.getPreferenceMatchRules().stream().map(this::toPreferenceMatchRule).toList()).commonUnavailableDates(Set.of()).build();
|
||||
}
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
private Member toMember(MemberExcelDto row) {
|
||||
return Member.builder().id(this.required(row.getId(), "위원 id")).gender(this.parseGender(row.getGender())).experienceType(this.parseExperienceType(row.getExperience())).role(this.parseMemberRole(row.getRole())).availableStartDate(this.parseDate(row.getAvailableStartDate(), "위원 진행 시작일")).availableEndDate(this.parseDate(row.getAvailableEndDate(), "위원 진행 종료일")).unavailableDates(this.parseDateSet(row.getUnavailableDates(), "위원 진행 불가 일자")).activityRegion(this.normalizeCode(row.getActivityRegion(), this.regionCodeLength(), "위원 활동지역")).historyCenterIds(this.parseCsv(row.getHistoryCenters())).residenceCode(this.normalizeCode(row.getResidenceCode(), this.residenceCodeLength(), "위원 거주지")).preferenceRegions(this.normalizePreferenceRegions(row)).build();
|
||||
}
|
||||
public PairingData normalize(PairingWorkbookData workbookData) {
|
||||
return PairingData.builder()
|
||||
.members(workbookData.getMembers().stream().map(this::toMember).toList()).municipalities(
|
||||
workbookData.getMunicipalities().stream().map(this::toMunicipality).toList())
|
||||
.centers(workbookData.getCenters().stream().map(this::toCenter).toList()).memberRegionCodes(
|
||||
workbookData.getMemberRegionCodes().stream().map(this::toMemberRegionCode).toList())
|
||||
.centerAdjacentRegions(
|
||||
workbookData.getCenterAdjacentRegions().stream().map(this::toCenterAdjacentRegion)
|
||||
.toList()).preferenceMatchRules(
|
||||
workbookData.getPreferenceMatchRules().stream().map(this::toPreferenceMatchRule)
|
||||
.toList()).commonUnavailableDates(Set.of()).build();
|
||||
}
|
||||
|
||||
private Municipality toMunicipality(MunicipalityExcelDto row) {
|
||||
return Municipality.builder().id(this.required(row.getId(), "지자체 id")).availableStartDate(this.parseDate(row.getAvailableStartDate(), "지자체 진행 시작일")).availableEndDate(this.parseDate(row.getAvailableEndDate(), "지자체 진행 종료일")).unavailableDates(this.parseDateSet(row.getUnavailableDates(), "지자체 진행 불가 일자")).build();
|
||||
}
|
||||
private Member toMember(MemberExcelDto row) {
|
||||
return Member.builder().id(this.required(row.getId(), "위원 id"))
|
||||
.gender(this.parseGender(row.getGender()))
|
||||
.experienceType(this.parseExperienceType(row.getExperience()))
|
||||
.role(this.parseMemberRole(row.getRole()))
|
||||
.availableStartDate(this.parseDate(row.getAvailableStartDate(), "위원 진행 시작일"))
|
||||
.availableEndDate(this.parseDate(row.getAvailableEndDate(), "위원 진행 종료일"))
|
||||
.unavailableDates(this.parseDateSet(row.getUnavailableDates(), "위원 진행 불가 일자"))
|
||||
.activityRegion(
|
||||
this.normalizeCode(row.getActivityRegion(), this.regionCodeLength(), "위원 활동지역"))
|
||||
.historyCenterIds(this.parseCsv(row.getHistoryCenters())).residenceCode(
|
||||
this.normalizeCode(row.getResidenceCode(), this.residenceCodeLength(), "위원 거주지"))
|
||||
.preferenceRegions(this.normalizePreferenceRegions(row)).build();
|
||||
}
|
||||
|
||||
private Center toCenter(CenterExcelDto row) {
|
||||
return Center.builder().id(this.required(row.getId(), "센터 id")).municipalityId(this.required(row.getMunicipalityId(), "센터 지자체 id")).womenOnly(this.parseBooleanFlag(row.getWomenOnly(), "센터 여성 위원만")).adjacentRegionClassification(this.required(row.getAdjacentRegionClassification(), "센터 인접지역 분류")).availableStartDate(this.parseDate(row.getAvailableStartDate(), "센터 진행 시작일")).availableEndDate(this.parseDate(row.getAvailableEndDate(), "센터 진행 종료일")).unavailableDates(this.parseDateSet(row.getUnavailableDates(), "센터 진행 불가 일자")).build();
|
||||
}
|
||||
private Municipality toMunicipality(MunicipalityExcelDto row) {
|
||||
return Municipality.builder().id(this.required(row.getId(), "지자체 id"))
|
||||
.availableStartDate(this.parseDate(row.getAvailableStartDate(), "지자체 진행 시작일"))
|
||||
.availableEndDate(this.parseDate(row.getAvailableEndDate(), "지자체 진행 종료일"))
|
||||
.unavailableDates(this.parseDateSet(row.getUnavailableDates(), "지자체 진행 불가 일자")).build();
|
||||
}
|
||||
|
||||
private MemberRegionCode toMemberRegionCode(MemberRegionCodeExcelDto row) {
|
||||
String regionCode = this.normalizeCode(row.getRegionCode(), this.regionCodeLength(), "권역코드");
|
||||
String detailRegionCode = this.normalizeCode(row.getDetailRegionCode(), 1, "세부권역코드");
|
||||
String detailAreaCode = this.normalizeCode(row.getDetailAreaCode(), 2, "세부지역코드");
|
||||
return MemberRegionCode.builder().sido(this.clean(row.getSido())).sigungu(this.clean(row.getSigungu())).regionCode(regionCode).detailRegionCode(detailRegionCode).detailAreaCode(detailAreaCode).fullRegionCode(this.normalizeFullRegionCode(row.getFullRegionCode(), regionCode, detailRegionCode, detailAreaCode)).build();
|
||||
}
|
||||
private Center toCenter(CenterExcelDto row) {
|
||||
return Center.builder().id(this.required(row.getId(), "센터 id"))
|
||||
.municipalityId(this.required(row.getMunicipalityId(), "센터 지자체 id"))
|
||||
.womenOnly(this.parseBooleanFlag(row.getWomenOnly(), "센터 여성 위원만"))
|
||||
.adjacentRegionClassification(
|
||||
this.required(row.getAdjacentRegionClassification(), "센터 인접지역 분류"))
|
||||
.availableStartDate(this.parseDate(row.getAvailableStartDate(), "센터 진행 시작일"))
|
||||
.availableEndDate(this.parseDate(row.getAvailableEndDate(), "센터 진행 종료일"))
|
||||
.unavailableDates(this.parseDateSet(row.getUnavailableDates(), "센터 진행 불가 일자")).build();
|
||||
}
|
||||
|
||||
private CenterAdjacentRegion toCenterAdjacentRegion(CenterAdjacentRegionExcelDto row) {
|
||||
return CenterAdjacentRegion.builder().dispatchRegion(this.normalizeCode(row.getDispatchRegion(), this.regionCodeLength(), "센터 인접지역표 권역")).adjacentRegionClassification(this.required(row.getAdjacentRegionClassification(), "인접지역 분류")).build();
|
||||
}
|
||||
private MemberRegionCode toMemberRegionCode(MemberRegionCodeExcelDto row) {
|
||||
String regionCode = this.normalizeCode(row.getRegionCode(), this.regionCodeLength(), "권역코드");
|
||||
String detailRegionCode = this.normalizeCode(row.getDetailRegionCode(), 1, "세부권역코드");
|
||||
String detailAreaCode = this.normalizeCode(row.getDetailAreaCode(), 2, "세부지역코드");
|
||||
return MemberRegionCode.builder().sido(this.clean(row.getSido()))
|
||||
.sigungu(this.clean(row.getSigungu())).regionCode(regionCode)
|
||||
.detailRegionCode(detailRegionCode).detailAreaCode(detailAreaCode).fullRegionCode(
|
||||
this.normalizeFullRegionCode(row.getFullRegionCode(), regionCode, detailRegionCode,
|
||||
detailAreaCode)).build();
|
||||
}
|
||||
|
||||
private PreferenceMatchRule toPreferenceMatchRule(PreferenceMatchExcelDto row) {
|
||||
return PreferenceMatchRule.builder().priority(this.parseInt(row.getPriority(), "매칭 순위")).fieldMemberPreferenceRank(this.parseInt(row.getFieldMemberPreferenceRank(), "현장위원 선호 순위")).externalMemberPreferenceRank(this.parseInt(row.getExternalMemberPreferenceRank(), "외부위원 선호 순위")).build();
|
||||
}
|
||||
private CenterAdjacentRegion toCenterAdjacentRegion(CenterAdjacentRegionExcelDto row) {
|
||||
return CenterAdjacentRegion.builder().dispatchRegion(
|
||||
this.normalizeCode(row.getDispatchRegion(), this.regionCodeLength(), "센터 인접지역표 권역"))
|
||||
.adjacentRegionClassification(
|
||||
this.required(row.getAdjacentRegionClassification(), "인접지역 분류")).build();
|
||||
}
|
||||
|
||||
private List<String> normalizePreferenceRegions(MemberExcelDto row) {
|
||||
List<String> preferences = new ArrayList(Arrays.asList(this.normalizeCode(row.getPreferenceRegion1(), this.regionCodeLength(), "선호 지역1"), this.normalizeCode(row.getPreferenceRegion2(), this.regionCodeLength(), "선호 지역2"), this.normalizeCode(row.getPreferenceRegion3(), this.regionCodeLength(), "선호 지역3"), this.normalizeCode(row.getPreferenceRegion4(), this.regionCodeLength(), "선호 지역4")));
|
||||
boolean anyRegionAppeared = false;
|
||||
private PreferenceMatchRule toPreferenceMatchRule(PreferenceMatchExcelDto row) {
|
||||
return PreferenceMatchRule.builder().priority(this.parseInt(row.getPriority(), "매칭 순위"))
|
||||
.fieldMemberPreferenceRank(this.parseInt(row.getFieldMemberPreferenceRank(), "현장위원 선호 순위"))
|
||||
.externalMemberPreferenceRank(
|
||||
this.parseInt(row.getExternalMemberPreferenceRank(), "외부위원 선호 순위")).build();
|
||||
}
|
||||
|
||||
for(int i = 0; i < preferences.size(); ++i) {
|
||||
if (anyRegionAppeared) {
|
||||
preferences.set(i, this.anyRegionCode());
|
||||
} else if (this.anyRegionCode().equals(preferences.get(i))) {
|
||||
anyRegionAppeared = true;
|
||||
}
|
||||
private List<String> normalizePreferenceRegions(MemberExcelDto row) {
|
||||
List<String> preferences = new ArrayList(Arrays.asList(
|
||||
this.normalizeCode(row.getPreferenceRegion1(), this.regionCodeLength(), "선호 지역1"),
|
||||
this.normalizeCode(row.getPreferenceRegion2(), this.regionCodeLength(), "선호 지역2"),
|
||||
this.normalizeCode(row.getPreferenceRegion3(), this.regionCodeLength(), "선호 지역3"),
|
||||
this.normalizeCode(row.getPreferenceRegion4(), this.regionCodeLength(), "선호 지역4")));
|
||||
boolean anyRegionAppeared = false;
|
||||
|
||||
for (int i = 0; i < preferences.size(); ++i) {
|
||||
if (anyRegionAppeared) {
|
||||
preferences.set(i, this.anyRegionCode());
|
||||
} else if (this.anyRegionCode().equals(preferences.get(i))) {
|
||||
anyRegionAppeared = true;
|
||||
}
|
||||
}
|
||||
|
||||
return preferences;
|
||||
}
|
||||
return preferences;
|
||||
}
|
||||
|
||||
private Gender parseGender(String value) {
|
||||
String cleaned = this.required(value, "성별");
|
||||
if ("여".equals(cleaned)) {
|
||||
return Gender.FEMALE;
|
||||
} else if ("남".equals(cleaned)) {
|
||||
return Gender.MALE;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_GENDER", "성별 값이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
private Gender parseGender(String value) {
|
||||
String cleaned = this.required(value, "성별");
|
||||
if ("여".equals(cleaned)) {
|
||||
return Gender.FEMALE;
|
||||
} else if ("남".equals(cleaned)) {
|
||||
return Gender.MALE;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_GENDER", "성별 값이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
private ExperienceType parseExperienceType(String value) {
|
||||
String cleaned = this.required(value, "경력여부");
|
||||
if ("경력".equals(cleaned)) {
|
||||
return ExperienceType.EXPERIENCED;
|
||||
} else if ("신규".equals(cleaned)) {
|
||||
return ExperienceType.NEW;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_EXPERIENCE", "경력여부 값이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
private ExperienceType parseExperienceType(String value) {
|
||||
String cleaned = this.required(value, "경력여부");
|
||||
if ("경력".equals(cleaned)) {
|
||||
return ExperienceType.EXPERIENCED;
|
||||
} else if ("신규".equals(cleaned)) {
|
||||
return ExperienceType.NEW;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_EXPERIENCE",
|
||||
"경력여부 값이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
private MemberRole parseMemberRole(String value) {
|
||||
String cleaned = this.required(value, "현장/외부 구분");
|
||||
if ("현장".equals(cleaned)) {
|
||||
return MemberRole.FIELD;
|
||||
} else if ("외부".equals(cleaned)) {
|
||||
return MemberRole.EXTERNAL;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_MEMBER_ROLE", "현장/외부 구분 값이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
private MemberRole parseMemberRole(String value) {
|
||||
String cleaned = this.required(value, "현장/외부 구분");
|
||||
if ("현장".equals(cleaned)) {
|
||||
return MemberRole.FIELD;
|
||||
} else if ("외부".equals(cleaned)) {
|
||||
return MemberRole.EXTERNAL;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_MEMBER_ROLE",
|
||||
"현장/외부 구분 값이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean parseBooleanFlag(String value, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
if ("1".equals(cleaned)) {
|
||||
return true;
|
||||
} else if ("0".equals(cleaned)) {
|
||||
return false;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_BOOLEAN_FLAG", fieldName + " 값은 0 또는 1이어야 합니다: " + value);
|
||||
}
|
||||
}
|
||||
private boolean parseBooleanFlag(String value, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
if ("1".equals(cleaned)) {
|
||||
return true;
|
||||
} else if ("0".equals(cleaned)) {
|
||||
return false;
|
||||
} else {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_BOOLEAN_FLAG",
|
||||
fieldName + " 값은 0 또는 1이어야 합니다: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
private LocalDate parseDate(String value, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
private LocalDate parseDate(String value, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
|
||||
try {
|
||||
return LocalDate.parse(cleaned);
|
||||
} catch (DateTimeParseException var5) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE", fieldName + " 날짜 형식이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
try {
|
||||
return LocalDate.parse(cleaned);
|
||||
} catch (DateTimeParseException var5) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE",
|
||||
fieldName + " 날짜 형식이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
private Set<LocalDate> parseDateSet(String value, String fieldName) {
|
||||
return (Set)this.parseCsv(value).stream().map((date) -> this.parseDate(date, fieldName)).collect(Collectors.toCollection(LinkedHashSet::new));
|
||||
}
|
||||
private Set<LocalDate> parseDateSet(String value, String fieldName) {
|
||||
return (Set) this.parseCsv(value).stream().map((date) -> this.parseDate(date, fieldName))
|
||||
.collect(Collectors.toCollection(LinkedHashSet::new));
|
||||
}
|
||||
|
||||
private Set<String> parseCsv(String value) {
|
||||
String cleaned = this.clean(value);
|
||||
return (Set<String>)(cleaned.isBlank() ? new LinkedHashSet() : (Set)Arrays.stream(cleaned.split(",")).map(String::trim).filter((token) -> !token.isBlank()).collect(Collectors.toCollection(LinkedHashSet::new)));
|
||||
}
|
||||
private Set<String> parseCsv(String value) {
|
||||
String cleaned = this.clean(value);
|
||||
return (Set<String>) (cleaned.isBlank() ? new LinkedHashSet()
|
||||
: (Set) Arrays.stream(cleaned.split(",")).map(String::trim)
|
||||
.filter((token) -> !token.isBlank())
|
||||
.collect(Collectors.toCollection(LinkedHashSet::new)));
|
||||
}
|
||||
|
||||
private int parseInt(String value, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
private int parseInt(String value, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
|
||||
try {
|
||||
return Integer.parseInt(cleaned);
|
||||
} catch (NumberFormatException var5) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_NUMBER", fieldName + " 숫자 형식이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
try {
|
||||
return Integer.parseInt(cleaned);
|
||||
} catch (NumberFormatException var5) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_NUMBER",
|
||||
fieldName + " 숫자 형식이 올바르지 않습니다: " + value);
|
||||
}
|
||||
}
|
||||
|
||||
private String normalizeCode(String value, int length, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
if (cleaned.endsWith(".0")) {
|
||||
cleaned = cleaned.substring(0, cleaned.length() - 2);
|
||||
}
|
||||
private String normalizeCode(String value, int length, String fieldName) {
|
||||
String cleaned = this.required(value, fieldName);
|
||||
if (cleaned.endsWith(".0")) {
|
||||
cleaned = cleaned.substring(0, cleaned.length() - 2);
|
||||
}
|
||||
|
||||
if (!cleaned.matches("\\d+")) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_CODE", fieldName + " 코드는 숫자만 허용됩니다: " + value);
|
||||
} else if (cleaned.length() > length) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_CODE", fieldName + " 코드 길이가 올바르지 않습니다: " + value);
|
||||
} else {
|
||||
return cleaned.length() == length ? cleaned : "0".repeat(length - cleaned.length()) + cleaned;
|
||||
}
|
||||
}
|
||||
if (!cleaned.matches("\\d+")) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_CODE",
|
||||
fieldName + " 코드는 숫자만 허용됩니다: " + value);
|
||||
} else if (cleaned.length() > length) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_CODE",
|
||||
fieldName + " 코드 길이가 올바르지 않습니다: " + value);
|
||||
} else {
|
||||
return cleaned.length() == length ? cleaned : "0".repeat(length - cleaned.length()) + cleaned;
|
||||
}
|
||||
}
|
||||
|
||||
private String normalizeFullRegionCode(String value, String regionCode, String detailRegionCode, String detailAreaCode) {
|
||||
String cleaned = this.clean(value);
|
||||
return cleaned.matches("\\d+") ? this.normalizeCode(cleaned, 5, "지역 코드") : regionCode + detailRegionCode + detailAreaCode;
|
||||
}
|
||||
private String normalizeFullRegionCode(String value, String regionCode, String detailRegionCode,
|
||||
String detailAreaCode) {
|
||||
String cleaned = this.clean(value);
|
||||
return cleaned.matches("\\d+") ? this.normalizeCode(cleaned, 5, "지역 코드")
|
||||
: regionCode + detailRegionCode + detailAreaCode;
|
||||
}
|
||||
|
||||
private String required(String value, String fieldName) {
|
||||
String cleaned = this.clean(value);
|
||||
if (cleaned.isBlank()) {
|
||||
throw BusinessException.badRequest("PAIRING_REQUIRED_VALUE_MISSING", "필수 값이 없습니다: " + fieldName);
|
||||
} else {
|
||||
return cleaned;
|
||||
}
|
||||
}
|
||||
private String required(String value, String fieldName) {
|
||||
String cleaned = this.clean(value);
|
||||
if (cleaned.isBlank()) {
|
||||
throw BusinessException.badRequest("PAIRING_REQUIRED_VALUE_MISSING",
|
||||
"필수 값이 없습니다: " + fieldName);
|
||||
} else {
|
||||
return cleaned;
|
||||
}
|
||||
}
|
||||
|
||||
private String clean(String value) {
|
||||
return value == null ? "" : value.trim();
|
||||
}
|
||||
private String clean(String value) {
|
||||
return value == null ? "" : value.trim();
|
||||
}
|
||||
|
||||
private int regionCodeLength() {
|
||||
return this.pairingProperties.getCode().getRegionCodeLength();
|
||||
}
|
||||
private int regionCodeLength() {
|
||||
return this.pairingProperties.getCode().getRegionCodeLength();
|
||||
}
|
||||
|
||||
private int residenceCodeLength() {
|
||||
return this.pairingProperties.getCode().getResidenceCodeLength();
|
||||
}
|
||||
private int residenceCodeLength() {
|
||||
return this.pairingProperties.getCode().getResidenceCodeLength();
|
||||
}
|
||||
|
||||
private String anyRegionCode() {
|
||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||
}
|
||||
private String anyRegionCode() {
|
||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingNormalizeService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
@Generated
|
||||
public PairingNormalizeService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,30 +10,36 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@Service
|
||||
public class PairingService {
|
||||
private final PairingExcelService pairingExcelService;
|
||||
private final PairingNormalizeService pairingNormalizeService;
|
||||
private final PairingHolidayService pairingHolidayService;
|
||||
private final PairingValidationService pairingValidationService;
|
||||
private final PairingCandidateService pairingCandidateService;
|
||||
private final PairingSolverService pairingSolverService;
|
||||
|
||||
public byte[] pairingMemberByCenter(MultipartFile file) {
|
||||
PairingWorkbookData workbookData = this.pairingExcelService.read(file);
|
||||
PairingData pairingData = this.pairingNormalizeService.normalize(workbookData);
|
||||
pairingData = this.pairingHolidayService.applyHolidayUnavailableDates(pairingData);
|
||||
this.pairingValidationService.validate(pairingData);
|
||||
PairingCandidates candidates = this.pairingCandidateService.generate(pairingData);
|
||||
PairingResult result = this.pairingSolverService.solve(pairingData, candidates);
|
||||
return this.pairingExcelService.write(result);
|
||||
}
|
||||
private final PairingExcelService pairingExcelService;
|
||||
private final PairingNormalizeService pairingNormalizeService;
|
||||
private final PairingHolidayService pairingHolidayService;
|
||||
private final PairingValidationService pairingValidationService;
|
||||
private final PairingCandidateService pairingCandidateService;
|
||||
private final PairingSolverService pairingSolverService;
|
||||
|
||||
@Generated
|
||||
public PairingService(final PairingExcelService pairingExcelService, final PairingNormalizeService pairingNormalizeService, final PairingHolidayService pairingHolidayService, final PairingValidationService pairingValidationService, final PairingCandidateService pairingCandidateService, final PairingSolverService pairingSolverService) {
|
||||
this.pairingExcelService = pairingExcelService;
|
||||
this.pairingNormalizeService = pairingNormalizeService;
|
||||
this.pairingHolidayService = pairingHolidayService;
|
||||
this.pairingValidationService = pairingValidationService;
|
||||
this.pairingCandidateService = pairingCandidateService;
|
||||
this.pairingSolverService = pairingSolverService;
|
||||
}
|
||||
public byte[] pairingMemberByCenter(MultipartFile file) {
|
||||
PairingWorkbookData workbookData = this.pairingExcelService.read(file);
|
||||
PairingData pairingData = this.pairingNormalizeService.normalize(workbookData);
|
||||
pairingData = this.pairingHolidayService.applyHolidayUnavailableDates(pairingData);
|
||||
this.pairingValidationService.validate(pairingData);
|
||||
PairingCandidates candidates = this.pairingCandidateService.generate(pairingData);
|
||||
PairingResult result = this.pairingSolverService.solve(pairingData, candidates);
|
||||
return this.pairingExcelService.write(result);
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingService(final PairingExcelService pairingExcelService,
|
||||
final PairingNormalizeService pairingNormalizeService,
|
||||
final PairingHolidayService pairingHolidayService,
|
||||
final PairingValidationService pairingValidationService,
|
||||
final PairingCandidateService pairingCandidateService,
|
||||
final PairingSolverService pairingSolverService) {
|
||||
this.pairingExcelService = pairingExcelService;
|
||||
this.pairingNormalizeService = pairingNormalizeService;
|
||||
this.pairingHolidayService = pairingHolidayService;
|
||||
this.pairingValidationService = pairingValidationService;
|
||||
this.pairingCandidateService = pairingCandidateService;
|
||||
this.pairingSolverService = pairingSolverService;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -17,98 +17,110 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class PairingValidationService {
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
public void validate(PairingData data) {
|
||||
this.validateNotEmpty(data);
|
||||
this.validateDateRanges(data);
|
||||
this.validateMunicipalityReferences(data);
|
||||
this.validatePreferenceRules(data);
|
||||
this.validatePreferenceAnyRegionOrder(data);
|
||||
}
|
||||
private final PairingProperties pairingProperties;
|
||||
|
||||
private void validateNotEmpty(PairingData data) {
|
||||
if (data.getMembers().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_MEMBER", "위원정보 시트에 데이터가 없습니다.");
|
||||
} else if (data.getMunicipalities().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_MUNICIPALITY", "지자체 정보 시트에 데이터가 없습니다.");
|
||||
} else if (data.getCenters().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_CENTER", "센터정보 시트에 데이터가 없습니다.");
|
||||
} else if (data.getCenterAdjacentRegions().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_CENTER_ADJACENT_REGION", "센터 인접지역표 시트에 데이터가 없습니다.");
|
||||
} else if (data.getPreferenceMatchRules().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_PREFERENCE_MATCH", "희망지역 매칭표 시트에 데이터가 없습니다.");
|
||||
public void validate(PairingData data) {
|
||||
this.validateNotEmpty(data);
|
||||
this.validateDateRanges(data);
|
||||
this.validateMunicipalityReferences(data);
|
||||
this.validatePreferenceRules(data);
|
||||
this.validatePreferenceAnyRegionOrder(data);
|
||||
}
|
||||
|
||||
private void validateNotEmpty(PairingData data) {
|
||||
if (data.getMembers().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_MEMBER", "위원정보 시트에 데이터가 없습니다.");
|
||||
} else if (data.getMunicipalities().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_MUNICIPALITY", "지자체 정보 시트에 데이터가 없습니다.");
|
||||
} else if (data.getCenters().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_CENTER", "센터정보 시트에 데이터가 없습니다.");
|
||||
} else if (data.getCenterAdjacentRegions().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_CENTER_ADJACENT_REGION",
|
||||
"센터 인접지역표 시트에 데이터가 없습니다.");
|
||||
} else if (data.getPreferenceMatchRules().isEmpty()) {
|
||||
throw BusinessException.badRequest("PAIRING_EMPTY_PREFERENCE_MATCH",
|
||||
"희망지역 매칭표 시트에 데이터가 없습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
private void validateDateRanges(PairingData data) {
|
||||
data.getMembers().forEach((member) -> {
|
||||
if (member.getAvailableEndDate().isBefore(member.getAvailableStartDate())) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE_RANGE",
|
||||
"위원 종료일이 시작일보다 빠릅니다: " + member.getId());
|
||||
}
|
||||
}
|
||||
});
|
||||
data.getMunicipalities().forEach((municipality) -> {
|
||||
if (municipality.getAvailableEndDate().isBefore(municipality.getAvailableStartDate())) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE_RANGE",
|
||||
"지자체 종료일이 시작일보다 빠릅니다: " + municipality.getId());
|
||||
}
|
||||
});
|
||||
data.getCenters().forEach((center) -> {
|
||||
if (center.getAvailableEndDate().isBefore(center.getAvailableStartDate())) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE_RANGE",
|
||||
"센터 종료일이 시작일보다 빠릅니다: " + center.getId());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void validateDateRanges(PairingData data) {
|
||||
data.getMembers().forEach((member) -> {
|
||||
if (member.getAvailableEndDate().isBefore(member.getAvailableStartDate())) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE_RANGE", "위원 종료일이 시작일보다 빠릅니다: " + member.getId());
|
||||
}
|
||||
});
|
||||
data.getMunicipalities().forEach((municipality) -> {
|
||||
if (municipality.getAvailableEndDate().isBefore(municipality.getAvailableStartDate())) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE_RANGE", "지자체 종료일이 시작일보다 빠릅니다: " + municipality.getId());
|
||||
}
|
||||
});
|
||||
data.getCenters().forEach((center) -> {
|
||||
if (center.getAvailableEndDate().isBefore(center.getAvailableStartDate())) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE_RANGE", "센터 종료일이 시작일보다 빠릅니다: " + center.getId());
|
||||
}
|
||||
});
|
||||
}
|
||||
private void validateMunicipalityReferences(PairingData data) {
|
||||
Map<String, Municipality> municipalities = (Map) data.getMunicipalities().stream()
|
||||
.collect(Collectors.toMap(Municipality::getId, Function.identity(), (left, right) -> left));
|
||||
|
||||
private void validateMunicipalityReferences(PairingData data) {
|
||||
Map<String, Municipality> municipalities = (Map)data.getMunicipalities().stream().collect(Collectors.toMap(Municipality::getId, Function.identity(), (left, right) -> left));
|
||||
for (Center center : data.getCenters()) {
|
||||
if (!municipalities.containsKey(center.getMunicipalityId())) {
|
||||
String var10001 = center.getId();
|
||||
throw BusinessException.badRequest("PAIRING_BROKEN_MUNICIPALITY_REFERENCE",
|
||||
"센터가 존재하지 않는 지자체를 참조합니다. centerId=" + var10001 + ", municipalityId="
|
||||
+ center.getMunicipalityId());
|
||||
}
|
||||
}
|
||||
|
||||
for(Center center : data.getCenters()) {
|
||||
if (!municipalities.containsKey(center.getMunicipalityId())) {
|
||||
String var10001 = center.getId();
|
||||
throw BusinessException.badRequest("PAIRING_BROKEN_MUNICIPALITY_REFERENCE", "센터가 존재하지 않는 지자체를 참조합니다. centerId=" + var10001 + ", municipalityId=" + center.getMunicipalityId());
|
||||
}
|
||||
}
|
||||
|
||||
private void validatePreferenceRules(PairingData data) {
|
||||
Set<Integer> priorities = new HashSet();
|
||||
|
||||
for (PreferenceMatchRule rule : data.getPreferenceMatchRules()) {
|
||||
if (!priorities.add(rule.getPriority())) {
|
||||
throw BusinessException.badRequest("PAIRING_DUPLICATE_PREFERENCE_PRIORITY",
|
||||
"희망지역 매칭표의 매칭 순위가 중복됩니다: " + rule.getPriority());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void validatePreferenceRules(PairingData data) {
|
||||
Set<Integer> priorities = new HashSet();
|
||||
|
||||
for(PreferenceMatchRule rule : data.getPreferenceMatchRules()) {
|
||||
if (!priorities.add(rule.getPriority())) {
|
||||
throw BusinessException.badRequest("PAIRING_DUPLICATE_PREFERENCE_PRIORITY", "희망지역 매칭표의 매칭 순위가 중복됩니다: " + rule.getPriority());
|
||||
}
|
||||
|
||||
if (rule.getFieldMemberPreferenceRank() < 0 || rule.getExternalMemberPreferenceRank() < 0) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_PREFERENCE_RANK", "희망지역 매칭표의 선호 순위는 0 이상이어야 합니다.");
|
||||
}
|
||||
if (rule.getFieldMemberPreferenceRank() < 0 || rule.getExternalMemberPreferenceRank() < 0) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_PREFERENCE_RANK",
|
||||
"희망지역 매칭표의 선호 순위는 0 이상이어야 합니다.");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void validatePreferenceAnyRegionOrder(PairingData data) {
|
||||
for(Member member : data.getMembers()) {
|
||||
boolean anyRegionAppeared = false;
|
||||
private void validatePreferenceAnyRegionOrder(PairingData data) {
|
||||
for (Member member : data.getMembers()) {
|
||||
boolean anyRegionAppeared = false;
|
||||
|
||||
for(String preferenceRegion : member.getPreferenceRegions()) {
|
||||
if (anyRegionAppeared && !this.anyRegionCode().equals(preferenceRegion)) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_PREFERENCE_ORDER", "선호지역 00 이후에는 다른 지역이 올 수 없습니다. memberId=" + member.getId());
|
||||
}
|
||||
for (String preferenceRegion : member.getPreferenceRegions()) {
|
||||
if (anyRegionAppeared && !this.anyRegionCode().equals(preferenceRegion)) {
|
||||
throw BusinessException.badRequest("PAIRING_INVALID_PREFERENCE_ORDER",
|
||||
"선호지역 00 이후에는 다른 지역이 올 수 없습니다. memberId=" + member.getId());
|
||||
}
|
||||
|
||||
if (this.anyRegionCode().equals(preferenceRegion)) {
|
||||
anyRegionAppeared = true;
|
||||
}
|
||||
}
|
||||
if (this.anyRegionCode().equals(preferenceRegion)) {
|
||||
anyRegionAppeared = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private String anyRegionCode() {
|
||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||
}
|
||||
private String anyRegionCode() {
|
||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||
}
|
||||
|
||||
@Generated
|
||||
public PairingValidationService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
@Generated
|
||||
public PairingValidationService(final PairingProperties pairingProperties) {
|
||||
this.pairingProperties = pairingProperties;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.kri.p6.ncrc.pairing.service;
|
||||
|
||||
import com.kri.p6.ncrc.pairing.dto.PairingWorkbookData;
|
||||
import com.kri.p6.ncrc.pairing.dto.excel.input.PairingWorkbookData;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import org.assertj.core.api.Assertions;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package com.kri.p6.ncrc.pairing.service;
|
||||
|
||||
import com.kri.p6.ncrc.pairing.common.enums.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.Gender;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.common.external.datago.DatagoExtentionApiClient;
|
||||
import com.kri.p6.ncrc.pairing.common.cache.DatagoHolidayCache;
|
||||
import com.kri.p6.ncrc.pairing.common.external.datago.HolidayDto;
|
||||
import com.kri.p6.ncrc.pairing.model.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.model.Gender;
|
||||
import com.kri.p6.ncrc.pairing.model.Member;
|
||||
import com.kri.p6.ncrc.pairing.model.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.model.PairingData;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
@@ -18,7 +18,27 @@ class PairingHolidayServiceTest {
|
||||
@Test
|
||||
void applyHolidayUnavailableDatesAddsDatagoHolidays() {
|
||||
PairingHolidayService service = new PairingHolidayService(new DatagoHolidayCache(new StubDatagoExtentionApiClient()));
|
||||
PairingData data = PairingData.builder().members(List.of(Member.builder().id("member").gender(Gender.FEMALE).experienceType(ExperienceType.EXPERIENCED).role(MemberRole.FIELD).availableStartDate(LocalDate.of(2026, 5, 1)).availableEndDate(LocalDate.of(2026, 5, 10)).unavailableDates(Set.of()).activityRegion("02").historyCenterIds(Set.of()).residenceCode("01101").preferenceRegions(List.of("01", "00", "00", "00")).build())).municipalities(List.of()).centers(List.of()).memberRegionCodes(List.of()).centerAdjacentRegions(List.of()).preferenceMatchRules(List.of()).commonUnavailableDates(Set.of()).build();
|
||||
PairingData data = PairingData.builder().members(List.of(
|
||||
Member.builder()
|
||||
.id("member")
|
||||
.gender(Gender.FEMALE)
|
||||
.experienceType(ExperienceType.EXPERIENCED)
|
||||
.role(MemberRole.FIELD)
|
||||
.availableStartDate(LocalDate.of(2026, 5, 1))
|
||||
.availableEndDate(LocalDate.of(2026, 5, 10))
|
||||
.unavailableDates(Set.of())
|
||||
.activityRegion("02")
|
||||
.historyCenterIds(Set.of())
|
||||
.residenceCode("01101")
|
||||
.preferenceRegions(List.of("01", "00", "00", "00"))
|
||||
.build()))
|
||||
.municipalities(List.of())
|
||||
.centers(List.of())
|
||||
.memberRegionCodes(List.of())
|
||||
.centerAdjacentRegions(List.of())
|
||||
.preferenceMatchRules(List.of())
|
||||
.commonUnavailableDates(Set.of())
|
||||
.build();
|
||||
PairingData result = service.applyHolidayUnavailableDates(data);
|
||||
Assertions.assertThat(result.getCommonUnavailableDates()).contains(new LocalDate[]{LocalDate.of(2026, 5, 5)});
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package com.kri.p6.ncrc.pairing.service;
|
||||
|
||||
import com.kri.p6.ncrc.pairing.common.enums.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.Gender;
|
||||
import com.kri.p6.ncrc.pairing.common.enums.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.model.AssignmentCandidate;
|
||||
import com.kri.p6.ncrc.pairing.model.Center;
|
||||
import com.kri.p6.ncrc.pairing.model.ExperienceType;
|
||||
import com.kri.p6.ncrc.pairing.model.Gender;
|
||||
import com.kri.p6.ncrc.pairing.model.Member;
|
||||
import com.kri.p6.ncrc.pairing.model.MemberRole;
|
||||
import com.kri.p6.ncrc.pairing.model.Municipality;
|
||||
import com.kri.p6.ncrc.pairing.model.PairCandidate;
|
||||
import com.kri.p6.ncrc.pairing.model.PairingCandidates;
|
||||
|
||||
Reference in New Issue
Block a user