260416_03_DOC: 코드 양식 정규화
This commit is contained in:
@@ -10,10 +10,11 @@ import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
|
|||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@ConfigurationPropertiesScan
|
@ConfigurationPropertiesScan
|
||||||
public class NcrcPairingApplication {
|
public class NcrcPairingApplication {
|
||||||
@Generated
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(NcrcPairingApplication.class);
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
@Generated
|
||||||
SpringApplication.run(NcrcPairingApplication.class, args);
|
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
|
@Component
|
||||||
public class DatagoHolidayCache extends AbstractListCache<HolidayDto> {
|
public class DatagoHolidayCache extends AbstractListCache<HolidayDto> {
|
||||||
private final DatagoExtentionApiClient datagoExtentionApiClient;
|
|
||||||
|
|
||||||
public synchronized List<HolidayDto> getHolidays(Set<String> years) {
|
private final DatagoExtentionApiClient datagoExtentionApiClient;
|
||||||
Set<String> cachedYears = getList().stream()
|
|
||||||
.map(this::extractYear)
|
|
||||||
.collect(Collectors.toSet());
|
|
||||||
|
|
||||||
years.stream()
|
public synchronized List<HolidayDto> getHolidays(Set<String> years) {
|
||||||
.filter(year -> !cachedYears.contains(year))
|
Set<String> cachedYears = getList().stream()
|
||||||
.sorted()
|
.map(this::extractYear)
|
||||||
.forEach(year -> addAll(datagoExtentionApiClient.getHoliDayList(year)));
|
.collect(Collectors.toSet());
|
||||||
|
|
||||||
return getList().stream()
|
years.stream()
|
||||||
.filter(holiday -> years.contains(extractYear(holiday)))
|
.filter(year -> !cachedYears.contains(year))
|
||||||
.toList();
|
.sorted()
|
||||||
}
|
.forEach(year -> addAll(datagoExtentionApiClient.getHoliDayList(year)));
|
||||||
|
|
||||||
protected List<HolidayDto> loadFromDb() {
|
return getList().stream()
|
||||||
return List.of();
|
.filter(holiday -> years.contains(extractYear(holiday)))
|
||||||
}
|
.toList();
|
||||||
|
}
|
||||||
|
|
||||||
private String extractYear(HolidayDto holidayDto) {
|
protected List<HolidayDto> loadFromDb() {
|
||||||
String date = holidayDto.getHolidayDate();
|
return List.of();
|
||||||
return date != null && date.length() >= 4 ? date.substring(0, 4) : "";
|
}
|
||||||
}
|
|
||||||
|
private String extractYear(HolidayDto holidayDto) {
|
||||||
|
String date = holidayDto.getHolidayDate();
|
||||||
|
return date != null && date.length() >= 4 ? date.substring(0, 4) : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Generated
|
||||||
@Generated
|
public DatagoHolidayCache(final DatagoExtentionApiClient datagoExtentionApiClient) {
|
||||||
public DatagoHolidayCache(final DatagoExtentionApiClient datagoExtentionApiClient) {
|
this.datagoExtentionApiClient = datagoExtentionApiClient;
|
||||||
this.datagoExtentionApiClient = datagoExtentionApiClient;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,22 @@
|
|||||||
package com.kri.p6.ncrc.pairing.common.consts;
|
package com.kri.p6.ncrc.pairing.common.consts;
|
||||||
|
|
||||||
public final class PairingConstant {
|
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;
|
package com.kri.p6.ncrc.pairing.common.enums;
|
||||||
|
|
||||||
public enum ExperienceType {
|
public enum ExperienceType {
|
||||||
EXPERIENCED,
|
EXPERIENCED,
|
||||||
NEW;
|
NEW;
|
||||||
|
|
||||||
// $FF: synthetic method
|
// $FF: synthetic method
|
||||||
private static ExperienceType[] $values() {
|
private static ExperienceType[] $values() {
|
||||||
return new ExperienceType[]{EXPERIENCED, NEW};
|
return new ExperienceType[]{EXPERIENCED, NEW};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package com.kri.p6.ncrc.pairing.common.enums;
|
package com.kri.p6.ncrc.pairing.common.enums;
|
||||||
|
|
||||||
public enum Gender {
|
public enum Gender {
|
||||||
FEMALE,
|
FEMALE,
|
||||||
MALE;
|
MALE;
|
||||||
|
|
||||||
// $FF: synthetic method
|
// $FF: synthetic method
|
||||||
private static Gender[] $values() {
|
private static Gender[] $values() {
|
||||||
return new Gender[]{FEMALE, MALE};
|
return new Gender[]{FEMALE, MALE};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package com.kri.p6.ncrc.pairing.common.enums;
|
package com.kri.p6.ncrc.pairing.common.enums;
|
||||||
|
|
||||||
public enum MemberRole {
|
public enum MemberRole {
|
||||||
FIELD,
|
FIELD,
|
||||||
EXTERNAL;
|
EXTERNAL;
|
||||||
|
|
||||||
// $FF: synthetic method
|
// $FF: synthetic method
|
||||||
private static MemberRole[] $values() {
|
private static MemberRole[] $values() {
|
||||||
return new MemberRole[]{FIELD, EXTERNAL};
|
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.http.ExternalApiResponse;
|
||||||
import com.kri.common.feature.web.BusinessException;
|
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.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.Items;
|
||||||
import com.kri.p6.ncrc.pairing.common.external.datago.DatagoHolidayApiResponseDto.Response;
|
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.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -18,34 +18,39 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class DatagoExtentionApiClient {
|
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) {
|
private final ExternalApiClient externalApiClient = new ExternalApiClient();
|
||||||
String baseUrl = "http://apis.data.go.kr/B090041/openapi/service/SpcdeInfoService/getRestDeInfo";
|
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||||
String url = String.format("%s?ServiceKey=%s&pageNo=1&_type=json&numOfRows=1000&solYear=%s", baseUrl, serviceKey, year);
|
@Value("${kri.auth.servicekey}")
|
||||||
Map<String, String> headers = new HashMap();
|
private String serviceKey;
|
||||||
|
|
||||||
try {
|
public List<HolidayDto> getHoliDayList(String year) {
|
||||||
ExternalApiResponse response = externalApiClient.get(url, headers);
|
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()) {
|
try {
|
||||||
DatagoHolidayApiResponseDto apiResponse = objectMapper.readValue(response.getBody(), DatagoHolidayApiResponseDto.class);
|
ExternalApiResponse response = externalApiClient.get(url, headers);
|
||||||
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();
|
if (response != null && response.getBody() != null && !response.getBody().isBlank()) {
|
||||||
} else {
|
DatagoHolidayApiResponseDto apiResponse = objectMapper.readValue(response.getBody(),
|
||||||
return Collections.emptyList();
|
DatagoHolidayApiResponseDto.class);
|
||||||
}
|
List<DatagoHolidayItemDto> items = Optional.ofNullable(apiResponse)
|
||||||
} catch (Exception e) {
|
.map(DatagoHolidayApiResponseDto::getResponse)
|
||||||
throw BusinessException.internalError("DATAGO_HOLIDAY_API_FAILED", "국공휴일 정보를 조회하는 중 오류가 발생했습니다: " + e.getMessage());
|
.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;
|
package com.kri.p6.ncrc.pairing.common.external.datago;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Feature;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat.Feature;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
@JsonIgnoreProperties(
|
@JsonIgnoreProperties(
|
||||||
ignoreUnknown = true
|
ignoreUnknown = true
|
||||||
)
|
)
|
||||||
public class DatagoHolidayApiResponseDto {
|
public class DatagoHolidayApiResponseDto {
|
||||||
private Response response;
|
|
||||||
|
|
||||||
@Generated
|
private Response response;
|
||||||
public Response getResponse() {
|
|
||||||
return this.response;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResponse(final Response response) {
|
public Response getResponse() {
|
||||||
this.response = response;
|
return this.response;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnoreProperties(
|
@Generated
|
||||||
|
public void setResponse(final Response response) {
|
||||||
|
this.response = response;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(
|
||||||
ignoreUnknown = true
|
ignoreUnknown = true
|
||||||
)
|
)
|
||||||
public static class Response {
|
public static class Response {
|
||||||
private Header header;
|
|
||||||
private Body body;
|
|
||||||
|
|
||||||
@Generated
|
private Header header;
|
||||||
public Header getHeader() {
|
private Body body;
|
||||||
return this.header;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Body getBody() {
|
public Header getHeader() {
|
||||||
return this.body;
|
return this.header;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setHeader(final Header header) {
|
public Body getBody() {
|
||||||
this.header = header;
|
return this.body;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setBody(final Body body) {
|
public void setHeader(final Header header) {
|
||||||
this.body = body;
|
this.header = header;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@JsonIgnoreProperties(
|
@Generated
|
||||||
|
public void setBody(final Body body) {
|
||||||
|
this.body = body;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(
|
||||||
ignoreUnknown = true
|
ignoreUnknown = true
|
||||||
)
|
)
|
||||||
public static class Header {
|
public static class Header {
|
||||||
private String resultCode;
|
|
||||||
private String resultMsg;
|
|
||||||
|
|
||||||
@Generated
|
private String resultCode;
|
||||||
public String getResultCode() {
|
private String resultMsg;
|
||||||
return this.resultCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getResultMsg() {
|
public String getResultCode() {
|
||||||
return this.resultMsg;
|
return this.resultCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResultCode(final String resultCode) {
|
public String getResultMsg() {
|
||||||
this.resultCode = resultCode;
|
return this.resultMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResultMsg(final String resultMsg) {
|
public void setResultCode(final String resultCode) {
|
||||||
this.resultMsg = resultMsg;
|
this.resultCode = resultCode;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@JsonIgnoreProperties(
|
@Generated
|
||||||
|
public void setResultMsg(final String resultMsg) {
|
||||||
|
this.resultMsg = resultMsg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(
|
||||||
ignoreUnknown = true
|
ignoreUnknown = true
|
||||||
)
|
)
|
||||||
public static class Body {
|
public static class Body {
|
||||||
private Integer numOfRows;
|
|
||||||
private Integer pageNo;
|
|
||||||
private Integer totalCount;
|
|
||||||
private Items items;
|
|
||||||
|
|
||||||
@Generated
|
private Integer numOfRows;
|
||||||
public Integer getNumOfRows() {
|
private Integer pageNo;
|
||||||
return this.numOfRows;
|
private Integer totalCount;
|
||||||
}
|
private Items items;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Integer getPageNo() {
|
public Integer getNumOfRows() {
|
||||||
return this.pageNo;
|
return this.numOfRows;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Integer getTotalCount() {
|
public Integer getPageNo() {
|
||||||
return this.totalCount;
|
return this.pageNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Items getItems() {
|
public Integer getTotalCount() {
|
||||||
return this.items;
|
return this.totalCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setNumOfRows(final Integer numOfRows) {
|
public Items getItems() {
|
||||||
this.numOfRows = numOfRows;
|
return this.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPageNo(final Integer pageNo) {
|
public void setNumOfRows(final Integer numOfRows) {
|
||||||
this.pageNo = pageNo;
|
this.numOfRows = numOfRows;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setTotalCount(final Integer totalCount) {
|
public void setPageNo(final Integer pageNo) {
|
||||||
this.totalCount = totalCount;
|
this.pageNo = pageNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setItems(final Items items) {
|
public void setTotalCount(final Integer totalCount) {
|
||||||
this.items = items;
|
this.totalCount = totalCount;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@JsonIgnoreProperties(
|
@Generated
|
||||||
|
public void setItems(final Items items) {
|
||||||
|
this.items = items;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(
|
||||||
ignoreUnknown = true
|
ignoreUnknown = true
|
||||||
)
|
)
|
||||||
public static class Items {
|
public static class Items {
|
||||||
@JsonProperty("item")
|
|
||||||
@JsonFormat(
|
|
||||||
with = {Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY}
|
|
||||||
)
|
|
||||||
private List<DatagoHolidayItemDto> item;
|
|
||||||
|
|
||||||
@Generated
|
@JsonProperty("item")
|
||||||
public List<DatagoHolidayItemDto> getItem() {
|
@JsonFormat(
|
||||||
return this.item;
|
with = {Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY}
|
||||||
}
|
)
|
||||||
|
private List<DatagoHolidayItemDto> item;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setItem(final List<DatagoHolidayItemDto> item) {
|
public List<DatagoHolidayItemDto> getItem() {
|
||||||
this.item = item;
|
return this.item;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static class DatagoHolidayItemDto {
|
@Generated
|
||||||
private String dateKind;
|
public void setItem(final List<DatagoHolidayItemDto> item) {
|
||||||
private String dateName;
|
this.item = item;
|
||||||
private String isHoliday;
|
}
|
||||||
private String locdate;
|
}
|
||||||
private Integer seq;
|
|
||||||
|
|
||||||
@Generated
|
public static class DatagoHolidayItemDto {
|
||||||
public String getDateKind() {
|
|
||||||
return this.dateKind;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
private String dateKind;
|
||||||
public String getDateName() {
|
private String dateName;
|
||||||
return this.dateName;
|
private String isHoliday;
|
||||||
}
|
private String locdate;
|
||||||
|
private Integer seq;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getIsHoliday() {
|
public String getDateKind() {
|
||||||
return this.isHoliday;
|
return this.dateKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getLocdate() {
|
public String getDateName() {
|
||||||
return this.locdate;
|
return this.dateName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Integer getSeq() {
|
public String getIsHoliday() {
|
||||||
return this.seq;
|
return this.isHoliday;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDateKind(final String dateKind) {
|
public String getLocdate() {
|
||||||
this.dateKind = dateKind;
|
return this.locdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDateName(final String dateName) {
|
public Integer getSeq() {
|
||||||
this.dateName = dateName;
|
return this.seq;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setIsHoliday(final String isHoliday) {
|
public void setDateKind(final String dateKind) {
|
||||||
this.isHoliday = isHoliday;
|
this.dateKind = dateKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setLocdate(final String locdate) {
|
public void setDateName(final String dateName) {
|
||||||
this.locdate = locdate;
|
this.dateName = dateName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setSeq(final Integer seq) {
|
public void setIsHoliday(final String isHoliday) {
|
||||||
this.seq = seq;
|
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;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class HolidayDto {
|
public class HolidayDto {
|
||||||
private String holidayDate;
|
|
||||||
private String holidayName;
|
|
||||||
|
|
||||||
public static HolidayDto of(String holidayDate, String holidayName) {
|
private String holidayDate;
|
||||||
return builder().holidayDate(holidayDate).holidayName(holidayName).build();
|
private String holidayName;
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
public static HolidayDto of(String holidayDate, String holidayName) {
|
||||||
public static HolidayDtoBuilder builder() {
|
return builder().holidayDate(holidayDate).holidayName(holidayName).build();
|
||||||
return new HolidayDtoBuilder();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getHolidayDate() {
|
public static HolidayDtoBuilder builder() {
|
||||||
return this.holidayDate;
|
return new HolidayDtoBuilder();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getHolidayName() {
|
public String getHolidayDate() {
|
||||||
return this.holidayName;
|
return this.holidayDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public HolidayDto() {
|
public String getHolidayName() {
|
||||||
}
|
return this.holidayName;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public HolidayDto(final String holidayDate, final String holidayName) {
|
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;
|
this.holidayDate = holidayDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public HolidayDtoBuilder holidayName(final String holidayName) {
|
||||||
this.holidayName = holidayName;
|
this.holidayName = holidayName;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static class HolidayDtoBuilder {
|
public HolidayDto build() {
|
||||||
@Generated
|
return new HolidayDto(this.holidayDate, this.holidayName);
|
||||||
private String holidayDate;
|
}
|
||||||
@Generated
|
|
||||||
private String holidayName;
|
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
HolidayDtoBuilder() {
|
public String toString() {
|
||||||
}
|
return "HolidayDto.HolidayDtoBuilder(holidayDate=" + this.holidayDate + ", holidayName="
|
||||||
|
+ this.holidayName + ")";
|
||||||
@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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,14 +2,18 @@ package com.kri.p6.ncrc.pairing.common.util;
|
|||||||
|
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import lombok.Generated;
|
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
|
||||||
public final class ExcelResponseBuilder {
|
public final class ExcelResponseBuilder {
|
||||||
public static ResponseEntity<byte[]> buildExcelResponse(String fileName, byte[] bytes) {
|
|
||||||
String var10000 = URLEncoder.encode(fileName, StandardCharsets.UTF_8);
|
public static ResponseEntity<byte[]> buildExcelResponse(String fileName, byte[] bytes) {
|
||||||
String contentDisposition = "attachment; filename*=UTF-8''" + var10000.replace("+", "%20");
|
String var10000 = URLEncoder.encode(fileName, StandardCharsets.UTF_8);
|
||||||
return ((ResponseEntity.BodyBuilder)ResponseEntity.ok().header("Content-Disposition", new String[]{contentDisposition})).contentType(MediaType.parseMediaType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")).body(bytes);
|
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
|
@Configuration
|
||||||
public class OrToolsConfig {
|
public class OrToolsConfig {
|
||||||
@PostConstruct
|
|
||||||
public void init() {
|
@PostConstruct
|
||||||
Loader.loadNativeLibraries();
|
public void init() {
|
||||||
}
|
Loader.loadNativeLibraries();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,256 +4,263 @@ import lombok.Generated;
|
|||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
|
||||||
@ConfigurationProperties(
|
@ConfigurationProperties(
|
||||||
prefix = "pairing"
|
prefix = "pairing"
|
||||||
)
|
)
|
||||||
public class PairingProperties {
|
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
|
private Excel excel = new Excel();
|
||||||
public Excel getExcel() {
|
private Code code = new Code();
|
||||||
return this.excel;
|
private Rule rule = new Rule();
|
||||||
}
|
private Preference preference = new Preference();
|
||||||
|
private Objective objective = new Objective();
|
||||||
|
private Solver solver = new Solver();
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Code getCode() {
|
public Excel getExcel() {
|
||||||
return this.code;
|
return this.excel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Rule getRule() {
|
public Code getCode() {
|
||||||
return this.rule;
|
return this.code;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Preference getPreference() {
|
public Rule getRule() {
|
||||||
return this.preference;
|
return this.rule;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Objective getObjective() {
|
public Preference getPreference() {
|
||||||
return this.objective;
|
return this.preference;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public Solver getSolver() {
|
public Objective getObjective() {
|
||||||
return this.solver;
|
return this.objective;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setExcel(final Excel excel) {
|
public Solver getSolver() {
|
||||||
this.excel = excel;
|
return this.solver;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setCode(final Code code) {
|
public void setExcel(final Excel excel) {
|
||||||
this.code = code;
|
this.excel = excel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setRule(final Rule rule) {
|
public void setCode(final Code code) {
|
||||||
this.rule = rule;
|
this.code = code;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPreference(final Preference preference) {
|
public void setRule(final Rule rule) {
|
||||||
this.preference = preference;
|
this.rule = rule;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setObjective(final Objective objective) {
|
public void setPreference(final Preference preference) {
|
||||||
this.objective = objective;
|
this.preference = preference;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setSolver(final Solver solver) {
|
public void setObjective(final Objective objective) {
|
||||||
this.solver = solver;
|
this.objective = objective;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Excel {
|
@Generated
|
||||||
private int headerRowIndex = 1;
|
public void setSolver(final Solver solver) {
|
||||||
|
this.solver = solver;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
public static class Excel {
|
||||||
public int getHeaderRowIndex() {
|
|
||||||
return this.headerRowIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
private int headerRowIndex = 1;
|
||||||
public void setHeaderRowIndex(final int headerRowIndex) {
|
|
||||||
this.headerRowIndex = headerRowIndex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class Code {
|
@Generated
|
||||||
private int regionCodeLength = 2;
|
public int getHeaderRowIndex() {
|
||||||
private int residenceCodeLength = 5;
|
return this.headerRowIndex;
|
||||||
private int residenceMatchPrefixLength = 3;
|
}
|
||||||
private String anyRegionCode = "00";
|
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int getRegionCodeLength() {
|
public void setHeaderRowIndex(final int headerRowIndex) {
|
||||||
return this.regionCodeLength;
|
this.headerRowIndex = headerRowIndex;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
public static class Code {
|
||||||
public int getResidenceCodeLength() {
|
|
||||||
return this.residenceCodeLength;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
private int regionCodeLength = 2;
|
||||||
public int getResidenceMatchPrefixLength() {
|
private int residenceCodeLength = 5;
|
||||||
return this.residenceMatchPrefixLength;
|
private int residenceMatchPrefixLength = 3;
|
||||||
}
|
private String anyRegionCode = "00";
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAnyRegionCode() {
|
public int getRegionCodeLength() {
|
||||||
return this.anyRegionCode;
|
return this.regionCodeLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setRegionCodeLength(final int regionCodeLength) {
|
public int getResidenceCodeLength() {
|
||||||
this.regionCodeLength = regionCodeLength;
|
return this.residenceCodeLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResidenceCodeLength(final int residenceCodeLength) {
|
public int getResidenceMatchPrefixLength() {
|
||||||
this.residenceCodeLength = residenceCodeLength;
|
return this.residenceMatchPrefixLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResidenceMatchPrefixLength(final int residenceMatchPrefixLength) {
|
public String getAnyRegionCode() {
|
||||||
this.residenceMatchPrefixLength = residenceMatchPrefixLength;
|
return this.anyRegionCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAnyRegionCode(final String anyRegionCode) {
|
public void setRegionCodeLength(final int regionCodeLength) {
|
||||||
this.anyRegionCode = anyRegionCode;
|
this.regionCodeLength = regionCodeLength;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static class Rule {
|
@Generated
|
||||||
private int maxCentersPerPairPerDay = 3;
|
public void setResidenceCodeLength(final int residenceCodeLength) {
|
||||||
private int maxCounterpartsPerMember = 2;
|
this.residenceCodeLength = residenceCodeLength;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int getMaxCentersPerPairPerDay() {
|
public void setResidenceMatchPrefixLength(final int residenceMatchPrefixLength) {
|
||||||
return this.maxCentersPerPairPerDay;
|
this.residenceMatchPrefixLength = residenceMatchPrefixLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int getMaxCounterpartsPerMember() {
|
public void setAnyRegionCode(final String anyRegionCode) {
|
||||||
return this.maxCounterpartsPerMember;
|
this.anyRegionCode = anyRegionCode;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
public static class Rule {
|
||||||
public void setMaxCentersPerPairPerDay(final int maxCentersPerPairPerDay) {
|
|
||||||
this.maxCentersPerPairPerDay = maxCentersPerPairPerDay;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
private int maxCentersPerPairPerDay = 3;
|
||||||
public void setMaxCounterpartsPerMember(final int maxCounterpartsPerMember) {
|
private int maxCounterpartsPerMember = 2;
|
||||||
this.maxCounterpartsPerMember = maxCounterpartsPerMember;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class Preference {
|
@Generated
|
||||||
private int anywhereRank = 0;
|
public int getMaxCentersPerPairPerDay() {
|
||||||
private int ignoredRank = 99;
|
return this.maxCentersPerPairPerDay;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int getAnywhereRank() {
|
public int getMaxCounterpartsPerMember() {
|
||||||
return this.anywhereRank;
|
return this.maxCounterpartsPerMember;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int getIgnoredRank() {
|
public void setMaxCentersPerPairPerDay(final int maxCentersPerPairPerDay) {
|
||||||
return this.ignoredRank;
|
this.maxCentersPerPairPerDay = maxCentersPerPairPerDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAnywhereRank(final int anywhereRank) {
|
public void setMaxCounterpartsPerMember(final int maxCounterpartsPerMember) {
|
||||||
this.anywhereRank = anywhereRank;
|
this.maxCounterpartsPerMember = maxCounterpartsPerMember;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
public static class Preference {
|
||||||
public void setIgnoredRank(final int ignoredRank) {
|
|
||||||
this.ignoredRank = ignoredRank;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class Objective {
|
private int anywhereRank = 0;
|
||||||
private long assignmentWeight = 1000000L;
|
private int ignoredRank = 99;
|
||||||
private long preferenceBaseWeight = 10000L;
|
|
||||||
private long preferenceRankPenalty = 100L;
|
|
||||||
private long residenceMatchWeight = 1000L;
|
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public long getAssignmentWeight() {
|
public int getAnywhereRank() {
|
||||||
return this.assignmentWeight;
|
return this.anywhereRank;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public long getPreferenceBaseWeight() {
|
public int getIgnoredRank() {
|
||||||
return this.preferenceBaseWeight;
|
return this.ignoredRank;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public long getPreferenceRankPenalty() {
|
public void setAnywhereRank(final int anywhereRank) {
|
||||||
return this.preferenceRankPenalty;
|
this.anywhereRank = anywhereRank;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public long getResidenceMatchWeight() {
|
public void setIgnoredRank(final int ignoredRank) {
|
||||||
return this.residenceMatchWeight;
|
this.ignoredRank = ignoredRank;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
public static class Objective {
|
||||||
public void setAssignmentWeight(final long assignmentWeight) {
|
|
||||||
this.assignmentWeight = assignmentWeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
private long assignmentWeight = 1000000L;
|
||||||
public void setPreferenceBaseWeight(final long preferenceBaseWeight) {
|
private long preferenceBaseWeight = 10000L;
|
||||||
this.preferenceBaseWeight = preferenceBaseWeight;
|
private long preferenceRankPenalty = 100L;
|
||||||
}
|
private long residenceMatchWeight = 1000L;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPreferenceRankPenalty(final long preferenceRankPenalty) {
|
public long getAssignmentWeight() {
|
||||||
this.preferenceRankPenalty = preferenceRankPenalty;
|
return this.assignmentWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResidenceMatchWeight(final long residenceMatchWeight) {
|
public long getPreferenceBaseWeight() {
|
||||||
this.residenceMatchWeight = residenceMatchWeight;
|
return this.preferenceBaseWeight;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public static class Solver {
|
@Generated
|
||||||
private double maxTimeSeconds = (double)30.0F;
|
public long getPreferenceRankPenalty() {
|
||||||
private int numSearchWorkers = Math.max(1, Runtime.getRuntime().availableProcessors() - 1);
|
return this.preferenceRankPenalty;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public double getMaxTimeSeconds() {
|
public long getResidenceMatchWeight() {
|
||||||
return this.maxTimeSeconds;
|
return this.residenceMatchWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int getNumSearchWorkers() {
|
public void setAssignmentWeight(final long assignmentWeight) {
|
||||||
return this.numSearchWorkers;
|
this.assignmentWeight = assignmentWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setMaxTimeSeconds(final double maxTimeSeconds) {
|
public void setPreferenceBaseWeight(final long preferenceBaseWeight) {
|
||||||
this.maxTimeSeconds = maxTimeSeconds;
|
this.preferenceBaseWeight = preferenceBaseWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setNumSearchWorkers(final int numSearchWorkers) {
|
public void setPreferenceRankPenalty(final long preferenceRankPenalty) {
|
||||||
this.numSearchWorkers = numSearchWorkers;
|
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.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@@ -26,7 +24,7 @@ public class CacheAdminController {
|
|||||||
@Operation(summary = "국공휴일 캐시 조회")
|
@Operation(summary = "국공휴일 캐시 조회")
|
||||||
@GetMapping("/holiday/{year}")
|
@GetMapping("/holiday/{year}")
|
||||||
public List<HolidayDto> getHolidays(
|
public List<HolidayDto> getHolidays(
|
||||||
@PathVariable("year") String year
|
@PathVariable String year
|
||||||
) {
|
) {
|
||||||
if (year.length() != 4) {
|
if (year.length() != 4) {
|
||||||
throw BusinessException.badRequest("INVALID_YEAR_FORMAT", "년도 형식이 올바르지 않습니다.");
|
throw BusinessException.badRequest("INVALID_YEAR_FORMAT", "년도 형식이 올바르지 않습니다.");
|
||||||
|
|||||||
@@ -19,36 +19,39 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping({"/api/v1/pairing"})
|
@RequestMapping({"/api/v1/pairing"})
|
||||||
@Tag(
|
@Tag(
|
||||||
name = "Pairing",
|
name = "Pairing",
|
||||||
description = "위원/센터 매칭 API"
|
description = "위원/센터 매칭 API"
|
||||||
)
|
)
|
||||||
public class PairingController {
|
public class PairingController {
|
||||||
private final PairingService pairingService;
|
|
||||||
private final PairingExcelService pairingExcelService;
|
|
||||||
|
|
||||||
@PostMapping({"/run"})
|
private final PairingService pairingService;
|
||||||
@Operation(
|
private final PairingExcelService pairingExcelService;
|
||||||
|
|
||||||
|
@PostMapping({"/run"})
|
||||||
|
@Operation(
|
||||||
summary = "업로드된 파일로 위원과 센터를 매칭"
|
summary = "업로드된 파일로 위원과 센터를 매칭"
|
||||||
)
|
)
|
||||||
public ResponseEntity<byte[]> pairingMemberByCenter(@Parameter(description = "업로드 파일",required = true) @RequestPart("file") MultipartFile file) {
|
public ResponseEntity<byte[]> pairingMemberByCenter(
|
||||||
String fileName = file.getOriginalFilename() == null ? "pairing" : file.getOriginalFilename();
|
@Parameter(description = "업로드 파일", required = true) @RequestPart("file") MultipartFile file) {
|
||||||
|
String fileName = file.getOriginalFilename() == null ? "pairing" : file.getOriginalFilename();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
byte[] bytes = this.pairingService.pairingMemberByCenter(file);
|
byte[] bytes = this.pairingService.pairingMemberByCenter(file);
|
||||||
return ExcelResponseBuilder.buildExcelResponse(fileName + " 결과.xlsx", bytes);
|
return ExcelResponseBuilder.buildExcelResponse(fileName + " 결과.xlsx", bytes);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
if (e.getStatus() != HttpStatus.BAD_REQUEST) {
|
if (e.getStatus() != HttpStatus.BAD_REQUEST) {
|
||||||
throw e;
|
throw e;
|
||||||
} else {
|
} else {
|
||||||
byte[] bytes = this.pairingExcelService.writeValidationError(e.getCode(), e.getMessage());
|
byte[] bytes = this.pairingExcelService.writeValidationError(e.getCode(), e.getMessage());
|
||||||
return ExcelResponseBuilder.buildExcelResponse(fileName + " 오류.xlsx", bytes);
|
return ExcelResponseBuilder.buildExcelResponse(fileName + " 오류.xlsx", bytes);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public PairingController(final PairingService pairingService, final PairingExcelService pairingExcelService) {
|
public PairingController(final PairingService pairingService,
|
||||||
this.pairingService = pairingService;
|
final PairingExcelService pairingExcelService) {
|
||||||
this.pairingExcelService = pairingExcelService;
|
this.pairingService = pairingService;
|
||||||
}
|
this.pairingExcelService = pairingExcelService;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,94 +4,97 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class CenterAdjacentRegionExcelDto {
|
public class CenterAdjacentRegionExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "권역",
|
header = "권역",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String dispatchRegion;
|
private String dispatchRegion;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "인접지역 분류",
|
header = "인접지역 분류",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String adjacentRegionClassification;
|
private String adjacentRegionClassification;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getDispatchRegion() {
|
public String getDispatchRegion() {
|
||||||
return this.dispatchRegion;
|
return this.dispatchRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAdjacentRegionClassification() {
|
public String getAdjacentRegionClassification() {
|
||||||
return this.adjacentRegionClassification;
|
return this.adjacentRegionClassification;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDispatchRegion(final String dispatchRegion) {
|
public void setDispatchRegion(final String dispatchRegion) {
|
||||||
this.dispatchRegion = dispatchRegion;
|
this.dispatchRegion = dispatchRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
||||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof CenterAdjacentRegionExcelDto)) {
|
} else if (!(o instanceof CenterAdjacentRegionExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
CenterAdjacentRegionExcelDto other = (CenterAdjacentRegionExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
CenterAdjacentRegionExcelDto other = (CenterAdjacentRegionExcelDto)o;
|
Object this$dispatchRegion = this.getDispatchRegion();
|
||||||
if (!other.canEqual(this)) {
|
Object other$dispatchRegion = other.getDispatchRegion();
|
||||||
|
if (this$dispatchRegion == null) {
|
||||||
|
if (other$dispatchRegion != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$dispatchRegion = this.getDispatchRegion();
|
} else if (!this$dispatchRegion.equals(other$dispatchRegion)) {
|
||||||
Object other$dispatchRegion = other.getDispatchRegion();
|
return false;
|
||||||
if (this$dispatchRegion == null) {
|
}
|
||||||
if (other$dispatchRegion != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$dispatchRegion.equals(other$dispatchRegion)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||||
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
||||||
if (this$adjacentRegionClassification == null) {
|
if (this$adjacentRegionClassification == null) {
|
||||||
if (other$adjacentRegionClassification != null) {
|
if (other$adjacentRegionClassification != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof CenterAdjacentRegionExcelDto;
|
return other instanceof CenterAdjacentRegionExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $dispatchRegion = this.getDispatchRegion();
|
Object $dispatchRegion = this.getDispatchRegion();
|
||||||
result = result * 59 + ($dispatchRegion == null ? 43 : $dispatchRegion.hashCode());
|
result = result * 59 + ($dispatchRegion == null ? 43 : $dispatchRegion.hashCode());
|
||||||
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||||
result = result * 59 + ($adjacentRegionClassification == null ? 43 : $adjacentRegionClassification.hashCode());
|
result = result * 59 + ($adjacentRegionClassification == null ? 43
|
||||||
return result;
|
: $adjacentRegionClassification.hashCode());
|
||||||
}
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getDispatchRegion();
|
String var10000 = this.getDispatchRegion();
|
||||||
return "CenterAdjacentRegionExcelDto(dispatchRegion=" + var10000 + ", adjacentRegionClassification=" + this.getAdjacentRegionClassification() + ")";
|
return "CenterAdjacentRegionExcelDto(dispatchRegion=" + var10000
|
||||||
}
|
+ ", adjacentRegionClassification=" + this.getAdjacentRegionClassification() + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,234 +4,240 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class CenterExcelDto {
|
public class CenterExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "id",
|
header = "id",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String id;
|
private String id;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "지자체 id",
|
header = "지자체 id",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String municipalityId;
|
private String municipalityId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "여성 위원만",
|
header = "여성 위원만",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String womenOnly;
|
private String womenOnly;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "인접지역 분류",
|
header = "인접지역 분류",
|
||||||
order = 3,
|
order = 3,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String adjacentRegionClassification;
|
private String adjacentRegionClassification;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 시작일",
|
header = "진행 시작일",
|
||||||
order = 4,
|
order = 4,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String availableStartDate;
|
private String availableStartDate;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 종료일",
|
header = "진행 종료일",
|
||||||
order = 5,
|
order = 5,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String availableEndDate;
|
private String availableEndDate;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 불가 일자",
|
header = "진행 불가 일자",
|
||||||
order = 6,
|
order = 6,
|
||||||
width = 35
|
width = 35
|
||||||
)
|
)
|
||||||
private String unavailableDates;
|
private String unavailableDates;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return this.id;
|
return this.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getMunicipalityId() {
|
public String getMunicipalityId() {
|
||||||
return this.municipalityId;
|
return this.municipalityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getWomenOnly() {
|
public String getWomenOnly() {
|
||||||
return this.womenOnly;
|
return this.womenOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAdjacentRegionClassification() {
|
public String getAdjacentRegionClassification() {
|
||||||
return this.adjacentRegionClassification;
|
return this.adjacentRegionClassification;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAvailableStartDate() {
|
public String getAvailableStartDate() {
|
||||||
return this.availableStartDate;
|
return this.availableStartDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAvailableEndDate() {
|
public String getAvailableEndDate() {
|
||||||
return this.availableEndDate;
|
return this.availableEndDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getUnavailableDates() {
|
public String getUnavailableDates() {
|
||||||
return this.unavailableDates;
|
return this.unavailableDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setId(final String id) {
|
public void setId(final String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setMunicipalityId(final String municipalityId) {
|
public void setMunicipalityId(final String municipalityId) {
|
||||||
this.municipalityId = municipalityId;
|
this.municipalityId = municipalityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setWomenOnly(final String womenOnly) {
|
public void setWomenOnly(final String womenOnly) {
|
||||||
this.womenOnly = womenOnly;
|
this.womenOnly = womenOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
public void setAdjacentRegionClassification(final String adjacentRegionClassification) {
|
||||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAvailableStartDate(final String availableStartDate) {
|
public void setAvailableStartDate(final String availableStartDate) {
|
||||||
this.availableStartDate = availableStartDate;
|
this.availableStartDate = availableStartDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAvailableEndDate(final String availableEndDate) {
|
public void setAvailableEndDate(final String availableEndDate) {
|
||||||
this.availableEndDate = availableEndDate;
|
this.availableEndDate = availableEndDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setUnavailableDates(final String unavailableDates) {
|
public void setUnavailableDates(final String unavailableDates) {
|
||||||
this.unavailableDates = unavailableDates;
|
this.unavailableDates = unavailableDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof CenterExcelDto)) {
|
} else if (!(o instanceof CenterExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
CenterExcelDto other = (CenterExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
CenterExcelDto other = (CenterExcelDto)o;
|
Object this$id = this.getId();
|
||||||
if (!other.canEqual(this)) {
|
Object other$id = other.getId();
|
||||||
|
if (this$id == null) {
|
||||||
|
if (other$id != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$id = this.getId();
|
} else if (!this$id.equals(other$id)) {
|
||||||
Object other$id = other.getId();
|
return false;
|
||||||
if (this$id == null) {
|
}
|
||||||
if (other$id != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$id.equals(other$id)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$municipalityId = this.getMunicipalityId();
|
Object this$municipalityId = this.getMunicipalityId();
|
||||||
Object other$municipalityId = other.getMunicipalityId();
|
Object other$municipalityId = other.getMunicipalityId();
|
||||||
if (this$municipalityId == null) {
|
if (this$municipalityId == null) {
|
||||||
if (other$municipalityId != null) {
|
if (other$municipalityId != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$womenOnly = this.getWomenOnly();
|
Object this$womenOnly = this.getWomenOnly();
|
||||||
Object other$womenOnly = other.getWomenOnly();
|
Object other$womenOnly = other.getWomenOnly();
|
||||||
if (this$womenOnly == null) {
|
if (this$womenOnly == null) {
|
||||||
if (other$womenOnly != null) {
|
if (other$womenOnly != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$womenOnly.equals(other$womenOnly)) {
|
} else if (!this$womenOnly.equals(other$womenOnly)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
Object this$adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||||
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
Object other$adjacentRegionClassification = other.getAdjacentRegionClassification();
|
||||||
if (this$adjacentRegionClassification == null) {
|
if (this$adjacentRegionClassification == null) {
|
||||||
if (other$adjacentRegionClassification != null) {
|
if (other$adjacentRegionClassification != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
} else if (!this$adjacentRegionClassification.equals(other$adjacentRegionClassification)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$availableStartDate = this.getAvailableStartDate();
|
Object this$availableStartDate = this.getAvailableStartDate();
|
||||||
Object other$availableStartDate = other.getAvailableStartDate();
|
Object other$availableStartDate = other.getAvailableStartDate();
|
||||||
if (this$availableStartDate == null) {
|
if (this$availableStartDate == null) {
|
||||||
if (other$availableStartDate != null) {
|
if (other$availableStartDate != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$availableEndDate = this.getAvailableEndDate();
|
Object this$availableEndDate = this.getAvailableEndDate();
|
||||||
Object other$availableEndDate = other.getAvailableEndDate();
|
Object other$availableEndDate = other.getAvailableEndDate();
|
||||||
if (this$availableEndDate == null) {
|
if (this$availableEndDate == null) {
|
||||||
if (other$availableEndDate != null) {
|
if (other$availableEndDate != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$unavailableDates = this.getUnavailableDates();
|
Object this$unavailableDates = this.getUnavailableDates();
|
||||||
Object other$unavailableDates = other.getUnavailableDates();
|
Object other$unavailableDates = other.getUnavailableDates();
|
||||||
if (this$unavailableDates == null) {
|
if (this$unavailableDates == null) {
|
||||||
if (other$unavailableDates != null) {
|
if (other$unavailableDates != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof CenterExcelDto;
|
return other instanceof CenterExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $id = this.getId();
|
Object $id = this.getId();
|
||||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||||
Object $municipalityId = this.getMunicipalityId();
|
Object $municipalityId = this.getMunicipalityId();
|
||||||
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
||||||
Object $womenOnly = this.getWomenOnly();
|
Object $womenOnly = this.getWomenOnly();
|
||||||
result = result * 59 + ($womenOnly == null ? 43 : $womenOnly.hashCode());
|
result = result * 59 + ($womenOnly == null ? 43 : $womenOnly.hashCode());
|
||||||
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
Object $adjacentRegionClassification = this.getAdjacentRegionClassification();
|
||||||
result = result * 59 + ($adjacentRegionClassification == null ? 43 : $adjacentRegionClassification.hashCode());
|
result = result * 59 + ($adjacentRegionClassification == null ? 43
|
||||||
Object $availableStartDate = this.getAvailableStartDate();
|
: $adjacentRegionClassification.hashCode());
|
||||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
Object $availableStartDate = this.getAvailableStartDate();
|
||||||
Object $availableEndDate = this.getAvailableEndDate();
|
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
Object $availableEndDate = this.getAvailableEndDate();
|
||||||
Object $unavailableDates = this.getUnavailableDates();
|
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
Object $unavailableDates = this.getUnavailableDates();
|
||||||
return result;
|
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||||
}
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getId();
|
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() + ")";
|
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;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class MemberExcelDto {
|
public class MemberExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "id",
|
header = "id",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String id;
|
private String id;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "성별",
|
header = "성별",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 10
|
width = 10
|
||||||
)
|
)
|
||||||
private String gender;
|
private String gender;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "경력여부",
|
header = "경력여부",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String experience;
|
private String experience;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "현장/외부 구분",
|
header = "현장/외부 구분",
|
||||||
order = 3,
|
order = 3,
|
||||||
width = 18
|
width = 18
|
||||||
)
|
)
|
||||||
private String role;
|
private String role;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 시작일",
|
header = "진행 시작일",
|
||||||
order = 4,
|
order = 4,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String availableStartDate;
|
private String availableStartDate;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 종료일",
|
header = "진행 종료일",
|
||||||
order = 5,
|
order = 5,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String availableEndDate;
|
private String availableEndDate;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 불가 일자",
|
header = "진행 불가 일자",
|
||||||
order = 6,
|
order = 6,
|
||||||
width = 35
|
width = 35
|
||||||
)
|
)
|
||||||
private String unavailableDates;
|
private String unavailableDates;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "활동지역",
|
header = "활동지역",
|
||||||
order = 7,
|
order = 7,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String activityRegion;
|
private String activityRegion;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "23년 진행 센터",
|
header = "23년 진행 센터",
|
||||||
order = 8,
|
order = 8,
|
||||||
width = 25
|
width = 25
|
||||||
)
|
)
|
||||||
private String historyCenters;
|
private String historyCenters;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "거주지",
|
header = "거주지",
|
||||||
order = 9,
|
order = 9,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String residenceCode;
|
private String residenceCode;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "선호 지역1",
|
header = "선호 지역1",
|
||||||
order = 10,
|
order = 10,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String preferenceRegion1;
|
private String preferenceRegion1;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "선호 지역2",
|
header = "선호 지역2",
|
||||||
order = 11,
|
order = 11,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String preferenceRegion2;
|
private String preferenceRegion2;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "선호 지역3",
|
header = "선호 지역3",
|
||||||
order = 12,
|
order = 12,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String preferenceRegion3;
|
private String preferenceRegion3;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "선호 지역4",
|
header = "선호 지역4",
|
||||||
order = 13,
|
order = 13,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String preferenceRegion4;
|
private String preferenceRegion4;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return this.id;
|
return this.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getGender() {
|
public String getGender() {
|
||||||
return this.gender;
|
return this.gender;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getExperience() {
|
public String getExperience() {
|
||||||
return this.experience;
|
return this.experience;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getRole() {
|
public String getRole() {
|
||||||
return this.role;
|
return this.role;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAvailableStartDate() {
|
public String getAvailableStartDate() {
|
||||||
return this.availableStartDate;
|
return this.availableStartDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAvailableEndDate() {
|
public String getAvailableEndDate() {
|
||||||
return this.availableEndDate;
|
return this.availableEndDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getUnavailableDates() {
|
public String getUnavailableDates() {
|
||||||
return this.unavailableDates;
|
return this.unavailableDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getActivityRegion() {
|
public String getActivityRegion() {
|
||||||
return this.activityRegion;
|
return this.activityRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getHistoryCenters() {
|
public String getHistoryCenters() {
|
||||||
return this.historyCenters;
|
return this.historyCenters;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getResidenceCode() {
|
public String getResidenceCode() {
|
||||||
return this.residenceCode;
|
return this.residenceCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getPreferenceRegion1() {
|
public String getPreferenceRegion1() {
|
||||||
return this.preferenceRegion1;
|
return this.preferenceRegion1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getPreferenceRegion2() {
|
public String getPreferenceRegion2() {
|
||||||
return this.preferenceRegion2;
|
return this.preferenceRegion2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getPreferenceRegion3() {
|
public String getPreferenceRegion3() {
|
||||||
return this.preferenceRegion3;
|
return this.preferenceRegion3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getPreferenceRegion4() {
|
public String getPreferenceRegion4() {
|
||||||
return this.preferenceRegion4;
|
return this.preferenceRegion4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setId(final String id) {
|
public void setId(final String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setGender(final String gender) {
|
public void setGender(final String gender) {
|
||||||
this.gender = gender;
|
this.gender = gender;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setExperience(final String experience) {
|
public void setExperience(final String experience) {
|
||||||
this.experience = experience;
|
this.experience = experience;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setRole(final String role) {
|
public void setRole(final String role) {
|
||||||
this.role = role;
|
this.role = role;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAvailableStartDate(final String availableStartDate) {
|
public void setAvailableStartDate(final String availableStartDate) {
|
||||||
this.availableStartDate = availableStartDate;
|
this.availableStartDate = availableStartDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAvailableEndDate(final String availableEndDate) {
|
public void setAvailableEndDate(final String availableEndDate) {
|
||||||
this.availableEndDate = availableEndDate;
|
this.availableEndDate = availableEndDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setUnavailableDates(final String unavailableDates) {
|
public void setUnavailableDates(final String unavailableDates) {
|
||||||
this.unavailableDates = unavailableDates;
|
this.unavailableDates = unavailableDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setActivityRegion(final String activityRegion) {
|
public void setActivityRegion(final String activityRegion) {
|
||||||
this.activityRegion = activityRegion;
|
this.activityRegion = activityRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setHistoryCenters(final String historyCenters) {
|
public void setHistoryCenters(final String historyCenters) {
|
||||||
this.historyCenters = historyCenters;
|
this.historyCenters = historyCenters;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResidenceCode(final String residenceCode) {
|
public void setResidenceCode(final String residenceCode) {
|
||||||
this.residenceCode = residenceCode;
|
this.residenceCode = residenceCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPreferenceRegion1(final String preferenceRegion1) {
|
public void setPreferenceRegion1(final String preferenceRegion1) {
|
||||||
this.preferenceRegion1 = preferenceRegion1;
|
this.preferenceRegion1 = preferenceRegion1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPreferenceRegion2(final String preferenceRegion2) {
|
public void setPreferenceRegion2(final String preferenceRegion2) {
|
||||||
this.preferenceRegion2 = preferenceRegion2;
|
this.preferenceRegion2 = preferenceRegion2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPreferenceRegion3(final String preferenceRegion3) {
|
public void setPreferenceRegion3(final String preferenceRegion3) {
|
||||||
this.preferenceRegion3 = preferenceRegion3;
|
this.preferenceRegion3 = preferenceRegion3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPreferenceRegion4(final String preferenceRegion4) {
|
public void setPreferenceRegion4(final String preferenceRegion4) {
|
||||||
this.preferenceRegion4 = preferenceRegion4;
|
this.preferenceRegion4 = preferenceRegion4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof MemberExcelDto)) {
|
} else if (!(o instanceof MemberExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
MemberExcelDto other = (MemberExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
MemberExcelDto other = (MemberExcelDto)o;
|
Object this$id = this.getId();
|
||||||
if (!other.canEqual(this)) {
|
Object other$id = other.getId();
|
||||||
|
if (this$id == null) {
|
||||||
|
if (other$id != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$id = this.getId();
|
} else if (!this$id.equals(other$id)) {
|
||||||
Object other$id = other.getId();
|
return false;
|
||||||
if (this$id == null) {
|
}
|
||||||
if (other$id != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$id.equals(other$id)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$gender = this.getGender();
|
Object this$gender = this.getGender();
|
||||||
Object other$gender = other.getGender();
|
Object other$gender = other.getGender();
|
||||||
if (this$gender == null) {
|
if (this$gender == null) {
|
||||||
if (other$gender != null) {
|
if (other$gender != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$gender.equals(other$gender)) {
|
} else if (!this$gender.equals(other$gender)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$experience = this.getExperience();
|
Object this$experience = this.getExperience();
|
||||||
Object other$experience = other.getExperience();
|
Object other$experience = other.getExperience();
|
||||||
if (this$experience == null) {
|
if (this$experience == null) {
|
||||||
if (other$experience != null) {
|
if (other$experience != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$experience.equals(other$experience)) {
|
} else if (!this$experience.equals(other$experience)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$role = this.getRole();
|
Object this$role = this.getRole();
|
||||||
Object other$role = other.getRole();
|
Object other$role = other.getRole();
|
||||||
if (this$role == null) {
|
if (this$role == null) {
|
||||||
if (other$role != null) {
|
if (other$role != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$role.equals(other$role)) {
|
} else if (!this$role.equals(other$role)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$availableStartDate = this.getAvailableStartDate();
|
Object this$availableStartDate = this.getAvailableStartDate();
|
||||||
Object other$availableStartDate = other.getAvailableStartDate();
|
Object other$availableStartDate = other.getAvailableStartDate();
|
||||||
if (this$availableStartDate == null) {
|
if (this$availableStartDate == null) {
|
||||||
if (other$availableStartDate != null) {
|
if (other$availableStartDate != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$availableEndDate = this.getAvailableEndDate();
|
Object this$availableEndDate = this.getAvailableEndDate();
|
||||||
Object other$availableEndDate = other.getAvailableEndDate();
|
Object other$availableEndDate = other.getAvailableEndDate();
|
||||||
if (this$availableEndDate == null) {
|
if (this$availableEndDate == null) {
|
||||||
if (other$availableEndDate != null) {
|
if (other$availableEndDate != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$unavailableDates = this.getUnavailableDates();
|
Object this$unavailableDates = this.getUnavailableDates();
|
||||||
Object other$unavailableDates = other.getUnavailableDates();
|
Object other$unavailableDates = other.getUnavailableDates();
|
||||||
if (this$unavailableDates == null) {
|
if (this$unavailableDates == null) {
|
||||||
if (other$unavailableDates != null) {
|
if (other$unavailableDates != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$activityRegion = this.getActivityRegion();
|
Object this$activityRegion = this.getActivityRegion();
|
||||||
Object other$activityRegion = other.getActivityRegion();
|
Object other$activityRegion = other.getActivityRegion();
|
||||||
if (this$activityRegion == null) {
|
if (this$activityRegion == null) {
|
||||||
if (other$activityRegion != null) {
|
if (other$activityRegion != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$activityRegion.equals(other$activityRegion)) {
|
} else if (!this$activityRegion.equals(other$activityRegion)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$historyCenters = this.getHistoryCenters();
|
Object this$historyCenters = this.getHistoryCenters();
|
||||||
Object other$historyCenters = other.getHistoryCenters();
|
Object other$historyCenters = other.getHistoryCenters();
|
||||||
if (this$historyCenters == null) {
|
if (this$historyCenters == null) {
|
||||||
if (other$historyCenters != null) {
|
if (other$historyCenters != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$historyCenters.equals(other$historyCenters)) {
|
} else if (!this$historyCenters.equals(other$historyCenters)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$residenceCode = this.getResidenceCode();
|
Object this$residenceCode = this.getResidenceCode();
|
||||||
Object other$residenceCode = other.getResidenceCode();
|
Object other$residenceCode = other.getResidenceCode();
|
||||||
if (this$residenceCode == null) {
|
if (this$residenceCode == null) {
|
||||||
if (other$residenceCode != null) {
|
if (other$residenceCode != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$residenceCode.equals(other$residenceCode)) {
|
} else if (!this$residenceCode.equals(other$residenceCode)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$preferenceRegion1 = this.getPreferenceRegion1();
|
Object this$preferenceRegion1 = this.getPreferenceRegion1();
|
||||||
Object other$preferenceRegion1 = other.getPreferenceRegion1();
|
Object other$preferenceRegion1 = other.getPreferenceRegion1();
|
||||||
if (this$preferenceRegion1 == null) {
|
if (this$preferenceRegion1 == null) {
|
||||||
if (other$preferenceRegion1 != null) {
|
if (other$preferenceRegion1 != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$preferenceRegion1.equals(other$preferenceRegion1)) {
|
} else if (!this$preferenceRegion1.equals(other$preferenceRegion1)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$preferenceRegion2 = this.getPreferenceRegion2();
|
Object this$preferenceRegion2 = this.getPreferenceRegion2();
|
||||||
Object other$preferenceRegion2 = other.getPreferenceRegion2();
|
Object other$preferenceRegion2 = other.getPreferenceRegion2();
|
||||||
if (this$preferenceRegion2 == null) {
|
if (this$preferenceRegion2 == null) {
|
||||||
if (other$preferenceRegion2 != null) {
|
if (other$preferenceRegion2 != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$preferenceRegion2.equals(other$preferenceRegion2)) {
|
} else if (!this$preferenceRegion2.equals(other$preferenceRegion2)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$preferenceRegion3 = this.getPreferenceRegion3();
|
Object this$preferenceRegion3 = this.getPreferenceRegion3();
|
||||||
Object other$preferenceRegion3 = other.getPreferenceRegion3();
|
Object other$preferenceRegion3 = other.getPreferenceRegion3();
|
||||||
if (this$preferenceRegion3 == null) {
|
if (this$preferenceRegion3 == null) {
|
||||||
if (other$preferenceRegion3 != null) {
|
if (other$preferenceRegion3 != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$preferenceRegion3.equals(other$preferenceRegion3)) {
|
} else if (!this$preferenceRegion3.equals(other$preferenceRegion3)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$preferenceRegion4 = this.getPreferenceRegion4();
|
Object this$preferenceRegion4 = this.getPreferenceRegion4();
|
||||||
Object other$preferenceRegion4 = other.getPreferenceRegion4();
|
Object other$preferenceRegion4 = other.getPreferenceRegion4();
|
||||||
if (this$preferenceRegion4 == null) {
|
if (this$preferenceRegion4 == null) {
|
||||||
if (other$preferenceRegion4 != null) {
|
if (other$preferenceRegion4 != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$preferenceRegion4.equals(other$preferenceRegion4)) {
|
} else if (!this$preferenceRegion4.equals(other$preferenceRegion4)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof MemberExcelDto;
|
return other instanceof MemberExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $id = this.getId();
|
Object $id = this.getId();
|
||||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||||
Object $gender = this.getGender();
|
Object $gender = this.getGender();
|
||||||
result = result * 59 + ($gender == null ? 43 : $gender.hashCode());
|
result = result * 59 + ($gender == null ? 43 : $gender.hashCode());
|
||||||
Object $experience = this.getExperience();
|
Object $experience = this.getExperience();
|
||||||
result = result * 59 + ($experience == null ? 43 : $experience.hashCode());
|
result = result * 59 + ($experience == null ? 43 : $experience.hashCode());
|
||||||
Object $role = this.getRole();
|
Object $role = this.getRole();
|
||||||
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
||||||
Object $availableStartDate = this.getAvailableStartDate();
|
Object $availableStartDate = this.getAvailableStartDate();
|
||||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||||
Object $availableEndDate = this.getAvailableEndDate();
|
Object $availableEndDate = this.getAvailableEndDate();
|
||||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||||
Object $unavailableDates = this.getUnavailableDates();
|
Object $unavailableDates = this.getUnavailableDates();
|
||||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||||
Object $activityRegion = this.getActivityRegion();
|
Object $activityRegion = this.getActivityRegion();
|
||||||
result = result * 59 + ($activityRegion == null ? 43 : $activityRegion.hashCode());
|
result = result * 59 + ($activityRegion == null ? 43 : $activityRegion.hashCode());
|
||||||
Object $historyCenters = this.getHistoryCenters();
|
Object $historyCenters = this.getHistoryCenters();
|
||||||
result = result * 59 + ($historyCenters == null ? 43 : $historyCenters.hashCode());
|
result = result * 59 + ($historyCenters == null ? 43 : $historyCenters.hashCode());
|
||||||
Object $residenceCode = this.getResidenceCode();
|
Object $residenceCode = this.getResidenceCode();
|
||||||
result = result * 59 + ($residenceCode == null ? 43 : $residenceCode.hashCode());
|
result = result * 59 + ($residenceCode == null ? 43 : $residenceCode.hashCode());
|
||||||
Object $preferenceRegion1 = this.getPreferenceRegion1();
|
Object $preferenceRegion1 = this.getPreferenceRegion1();
|
||||||
result = result * 59 + ($preferenceRegion1 == null ? 43 : $preferenceRegion1.hashCode());
|
result = result * 59 + ($preferenceRegion1 == null ? 43 : $preferenceRegion1.hashCode());
|
||||||
Object $preferenceRegion2 = this.getPreferenceRegion2();
|
Object $preferenceRegion2 = this.getPreferenceRegion2();
|
||||||
result = result * 59 + ($preferenceRegion2 == null ? 43 : $preferenceRegion2.hashCode());
|
result = result * 59 + ($preferenceRegion2 == null ? 43 : $preferenceRegion2.hashCode());
|
||||||
Object $preferenceRegion3 = this.getPreferenceRegion3();
|
Object $preferenceRegion3 = this.getPreferenceRegion3();
|
||||||
result = result * 59 + ($preferenceRegion3 == null ? 43 : $preferenceRegion3.hashCode());
|
result = result * 59 + ($preferenceRegion3 == null ? 43 : $preferenceRegion3.hashCode());
|
||||||
Object $preferenceRegion4 = this.getPreferenceRegion4();
|
Object $preferenceRegion4 = this.getPreferenceRegion4();
|
||||||
result = result * 59 + ($preferenceRegion4 == null ? 43 : $preferenceRegion4.hashCode());
|
result = result * 59 + ($preferenceRegion4 == null ? 43 : $preferenceRegion4.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getId();
|
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() + ")";
|
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;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class MemberRegionCodeExcelDto {
|
public class MemberRegionCodeExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "시도",
|
header = "시도",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String sido;
|
private String sido;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "시군구",
|
header = "시군구",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String sigungu;
|
private String sigungu;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "권역코드",
|
header = "권역코드",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String regionCode;
|
private String regionCode;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "세부권역코드(중간 1자리)",
|
header = "세부권역코드(중간 1자리)",
|
||||||
order = 3,
|
order = 3,
|
||||||
width = 25
|
width = 25
|
||||||
)
|
)
|
||||||
private String detailRegionCode;
|
private String detailRegionCode;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "세부지역코드(마지막2자리)",
|
header = "세부지역코드(마지막2자리)",
|
||||||
order = 4,
|
order = 4,
|
||||||
width = 25
|
width = 25
|
||||||
)
|
)
|
||||||
private String detailAreaCode;
|
private String detailAreaCode;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "지역 코드",
|
header = "지역 코드",
|
||||||
order = 5,
|
order = 5,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String fullRegionCode;
|
private String fullRegionCode;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getSido() {
|
public String getSido() {
|
||||||
return this.sido;
|
return this.sido;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getSigungu() {
|
public String getSigungu() {
|
||||||
return this.sigungu;
|
return this.sigungu;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getRegionCode() {
|
public String getRegionCode() {
|
||||||
return this.regionCode;
|
return this.regionCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getDetailRegionCode() {
|
public String getDetailRegionCode() {
|
||||||
return this.detailRegionCode;
|
return this.detailRegionCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getDetailAreaCode() {
|
public String getDetailAreaCode() {
|
||||||
return this.detailAreaCode;
|
return this.detailAreaCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getFullRegionCode() {
|
public String getFullRegionCode() {
|
||||||
return this.fullRegionCode;
|
return this.fullRegionCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setSido(final String sido) {
|
public void setSido(final String sido) {
|
||||||
this.sido = sido;
|
this.sido = sido;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setSigungu(final String sigungu) {
|
public void setSigungu(final String sigungu) {
|
||||||
this.sigungu = sigungu;
|
this.sigungu = sigungu;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setRegionCode(final String regionCode) {
|
public void setRegionCode(final String regionCode) {
|
||||||
this.regionCode = regionCode;
|
this.regionCode = regionCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDetailRegionCode(final String detailRegionCode) {
|
public void setDetailRegionCode(final String detailRegionCode) {
|
||||||
this.detailRegionCode = detailRegionCode;
|
this.detailRegionCode = detailRegionCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDetailAreaCode(final String detailAreaCode) {
|
public void setDetailAreaCode(final String detailAreaCode) {
|
||||||
this.detailAreaCode = detailAreaCode;
|
this.detailAreaCode = detailAreaCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setFullRegionCode(final String fullRegionCode) {
|
public void setFullRegionCode(final String fullRegionCode) {
|
||||||
this.fullRegionCode = fullRegionCode;
|
this.fullRegionCode = fullRegionCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof MemberRegionCodeExcelDto)) {
|
} else if (!(o instanceof MemberRegionCodeExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
MemberRegionCodeExcelDto other = (MemberRegionCodeExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
MemberRegionCodeExcelDto other = (MemberRegionCodeExcelDto)o;
|
Object this$sido = this.getSido();
|
||||||
if (!other.canEqual(this)) {
|
Object other$sido = other.getSido();
|
||||||
|
if (this$sido == null) {
|
||||||
|
if (other$sido != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$sido = this.getSido();
|
} else if (!this$sido.equals(other$sido)) {
|
||||||
Object other$sido = other.getSido();
|
return false;
|
||||||
if (this$sido == null) {
|
}
|
||||||
if (other$sido != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$sido.equals(other$sido)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$sigungu = this.getSigungu();
|
Object this$sigungu = this.getSigungu();
|
||||||
Object other$sigungu = other.getSigungu();
|
Object other$sigungu = other.getSigungu();
|
||||||
if (this$sigungu == null) {
|
if (this$sigungu == null) {
|
||||||
if (other$sigungu != null) {
|
if (other$sigungu != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$sigungu.equals(other$sigungu)) {
|
} else if (!this$sigungu.equals(other$sigungu)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$regionCode = this.getRegionCode();
|
Object this$regionCode = this.getRegionCode();
|
||||||
Object other$regionCode = other.getRegionCode();
|
Object other$regionCode = other.getRegionCode();
|
||||||
if (this$regionCode == null) {
|
if (this$regionCode == null) {
|
||||||
if (other$regionCode != null) {
|
if (other$regionCode != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$regionCode.equals(other$regionCode)) {
|
} else if (!this$regionCode.equals(other$regionCode)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$detailRegionCode = this.getDetailRegionCode();
|
Object this$detailRegionCode = this.getDetailRegionCode();
|
||||||
Object other$detailRegionCode = other.getDetailRegionCode();
|
Object other$detailRegionCode = other.getDetailRegionCode();
|
||||||
if (this$detailRegionCode == null) {
|
if (this$detailRegionCode == null) {
|
||||||
if (other$detailRegionCode != null) {
|
if (other$detailRegionCode != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$detailRegionCode.equals(other$detailRegionCode)) {
|
} else if (!this$detailRegionCode.equals(other$detailRegionCode)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$detailAreaCode = this.getDetailAreaCode();
|
Object this$detailAreaCode = this.getDetailAreaCode();
|
||||||
Object other$detailAreaCode = other.getDetailAreaCode();
|
Object other$detailAreaCode = other.getDetailAreaCode();
|
||||||
if (this$detailAreaCode == null) {
|
if (this$detailAreaCode == null) {
|
||||||
if (other$detailAreaCode != null) {
|
if (other$detailAreaCode != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$detailAreaCode.equals(other$detailAreaCode)) {
|
} else if (!this$detailAreaCode.equals(other$detailAreaCode)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$fullRegionCode = this.getFullRegionCode();
|
Object this$fullRegionCode = this.getFullRegionCode();
|
||||||
Object other$fullRegionCode = other.getFullRegionCode();
|
Object other$fullRegionCode = other.getFullRegionCode();
|
||||||
if (this$fullRegionCode == null) {
|
if (this$fullRegionCode == null) {
|
||||||
if (other$fullRegionCode != null) {
|
if (other$fullRegionCode != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$fullRegionCode.equals(other$fullRegionCode)) {
|
} else if (!this$fullRegionCode.equals(other$fullRegionCode)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof MemberRegionCodeExcelDto;
|
return other instanceof MemberRegionCodeExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $sido = this.getSido();
|
Object $sido = this.getSido();
|
||||||
result = result * 59 + ($sido == null ? 43 : $sido.hashCode());
|
result = result * 59 + ($sido == null ? 43 : $sido.hashCode());
|
||||||
Object $sigungu = this.getSigungu();
|
Object $sigungu = this.getSigungu();
|
||||||
result = result * 59 + ($sigungu == null ? 43 : $sigungu.hashCode());
|
result = result * 59 + ($sigungu == null ? 43 : $sigungu.hashCode());
|
||||||
Object $regionCode = this.getRegionCode();
|
Object $regionCode = this.getRegionCode();
|
||||||
result = result * 59 + ($regionCode == null ? 43 : $regionCode.hashCode());
|
result = result * 59 + ($regionCode == null ? 43 : $regionCode.hashCode());
|
||||||
Object $detailRegionCode = this.getDetailRegionCode();
|
Object $detailRegionCode = this.getDetailRegionCode();
|
||||||
result = result * 59 + ($detailRegionCode == null ? 43 : $detailRegionCode.hashCode());
|
result = result * 59 + ($detailRegionCode == null ? 43 : $detailRegionCode.hashCode());
|
||||||
Object $detailAreaCode = this.getDetailAreaCode();
|
Object $detailAreaCode = this.getDetailAreaCode();
|
||||||
result = result * 59 + ($detailAreaCode == null ? 43 : $detailAreaCode.hashCode());
|
result = result * 59 + ($detailAreaCode == null ? 43 : $detailAreaCode.hashCode());
|
||||||
Object $fullRegionCode = this.getFullRegionCode();
|
Object $fullRegionCode = this.getFullRegionCode();
|
||||||
result = result * 59 + ($fullRegionCode == null ? 43 : $fullRegionCode.hashCode());
|
result = result * 59 + ($fullRegionCode == null ? 43 : $fullRegionCode.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getSido();
|
String var10000 = this.getSido();
|
||||||
return "MemberRegionCodeExcelDto(sido=" + var10000 + ", sigungu=" + this.getSigungu() + ", regionCode=" + this.getRegionCode() + ", detailRegionCode=" + this.getDetailRegionCode() + ", detailAreaCode=" + this.getDetailAreaCode() + ", fullRegionCode=" + this.getFullRegionCode() + ")";
|
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;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class MunicipalityExcelDto {
|
public class MunicipalityExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "지자체 id",
|
header = "지자체 id",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String id;
|
private String id;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 시작일",
|
header = "진행 시작일",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String availableStartDate;
|
private String availableStartDate;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 종료일",
|
header = "진행 종료일",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String availableEndDate;
|
private String availableEndDate;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "진행 불가 일자",
|
header = "진행 불가 일자",
|
||||||
order = 3,
|
order = 3,
|
||||||
width = 35
|
width = 35
|
||||||
)
|
)
|
||||||
private String unavailableDates;
|
private String unavailableDates;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return this.id;
|
return this.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAvailableStartDate() {
|
public String getAvailableStartDate() {
|
||||||
return this.availableStartDate;
|
return this.availableStartDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAvailableEndDate() {
|
public String getAvailableEndDate() {
|
||||||
return this.availableEndDate;
|
return this.availableEndDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getUnavailableDates() {
|
public String getUnavailableDates() {
|
||||||
return this.unavailableDates;
|
return this.unavailableDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setId(final String id) {
|
public void setId(final String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAvailableStartDate(final String availableStartDate) {
|
public void setAvailableStartDate(final String availableStartDate) {
|
||||||
this.availableStartDate = availableStartDate;
|
this.availableStartDate = availableStartDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAvailableEndDate(final String availableEndDate) {
|
public void setAvailableEndDate(final String availableEndDate) {
|
||||||
this.availableEndDate = availableEndDate;
|
this.availableEndDate = availableEndDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setUnavailableDates(final String unavailableDates) {
|
public void setUnavailableDates(final String unavailableDates) {
|
||||||
this.unavailableDates = unavailableDates;
|
this.unavailableDates = unavailableDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof MunicipalityExcelDto)) {
|
} else if (!(o instanceof MunicipalityExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
MunicipalityExcelDto other = (MunicipalityExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
MunicipalityExcelDto other = (MunicipalityExcelDto)o;
|
Object this$id = this.getId();
|
||||||
if (!other.canEqual(this)) {
|
Object other$id = other.getId();
|
||||||
|
if (this$id == null) {
|
||||||
|
if (other$id != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$id = this.getId();
|
} else if (!this$id.equals(other$id)) {
|
||||||
Object other$id = other.getId();
|
return false;
|
||||||
if (this$id == null) {
|
}
|
||||||
if (other$id != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$id.equals(other$id)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$availableStartDate = this.getAvailableStartDate();
|
Object this$availableStartDate = this.getAvailableStartDate();
|
||||||
Object other$availableStartDate = other.getAvailableStartDate();
|
Object other$availableStartDate = other.getAvailableStartDate();
|
||||||
if (this$availableStartDate == null) {
|
if (this$availableStartDate == null) {
|
||||||
if (other$availableStartDate != null) {
|
if (other$availableStartDate != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
} else if (!this$availableStartDate.equals(other$availableStartDate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$availableEndDate = this.getAvailableEndDate();
|
Object this$availableEndDate = this.getAvailableEndDate();
|
||||||
Object other$availableEndDate = other.getAvailableEndDate();
|
Object other$availableEndDate = other.getAvailableEndDate();
|
||||||
if (this$availableEndDate == null) {
|
if (this$availableEndDate == null) {
|
||||||
if (other$availableEndDate != null) {
|
if (other$availableEndDate != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
} else if (!this$availableEndDate.equals(other$availableEndDate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$unavailableDates = this.getUnavailableDates();
|
Object this$unavailableDates = this.getUnavailableDates();
|
||||||
Object other$unavailableDates = other.getUnavailableDates();
|
Object other$unavailableDates = other.getUnavailableDates();
|
||||||
if (this$unavailableDates == null) {
|
if (this$unavailableDates == null) {
|
||||||
if (other$unavailableDates != null) {
|
if (other$unavailableDates != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
} else if (!this$unavailableDates.equals(other$unavailableDates)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof MunicipalityExcelDto;
|
return other instanceof MunicipalityExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $id = this.getId();
|
Object $id = this.getId();
|
||||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||||
Object $availableStartDate = this.getAvailableStartDate();
|
Object $availableStartDate = this.getAvailableStartDate();
|
||||||
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
result = result * 59 + ($availableStartDate == null ? 43 : $availableStartDate.hashCode());
|
||||||
Object $availableEndDate = this.getAvailableEndDate();
|
Object $availableEndDate = this.getAvailableEndDate();
|
||||||
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
result = result * 59 + ($availableEndDate == null ? 43 : $availableEndDate.hashCode());
|
||||||
Object $unavailableDates = this.getUnavailableDates();
|
Object $unavailableDates = this.getUnavailableDates();
|
||||||
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
result = result * 59 + ($unavailableDates == null ? 43 : $unavailableDates.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getId();
|
String var10000 = this.getId();
|
||||||
return "MunicipalityExcelDto(id=" + var10000 + ", availableStartDate=" + this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate() + ", unavailableDates=" + this.getUnavailableDates() + ")";
|
return "MunicipalityExcelDto(id=" + var10000 + ", availableStartDate="
|
||||||
}
|
+ this.getAvailableStartDate() + ", availableEndDate=" + this.getAvailableEndDate()
|
||||||
|
+ ", unavailableDates=" + this.getUnavailableDates() + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,122 +4,138 @@ import java.util.List;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PairingWorkbookData {
|
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
|
private final List<MemberExcelDto> members;
|
||||||
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<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;
|
this.members = members;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingWorkbookDataBuilder municipalities(
|
||||||
|
final List<MunicipalityExcelDto> municipalities) {
|
||||||
this.municipalities = municipalities;
|
this.municipalities = municipalities;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingWorkbookDataBuilder centers(final List<CenterExcelDto> centers) {
|
||||||
this.centers = centers;
|
this.centers = centers;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingWorkbookDataBuilder memberRegionCodes(
|
||||||
|
final List<MemberRegionCodeExcelDto> memberRegionCodes) {
|
||||||
this.memberRegionCodes = memberRegionCodes;
|
this.memberRegionCodes = memberRegionCodes;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingWorkbookDataBuilder centerAdjacentRegions(
|
||||||
|
final List<CenterAdjacentRegionExcelDto> centerAdjacentRegions) {
|
||||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingWorkbookDataBuilder preferenceMatchRules(
|
||||||
|
final List<PreferenceMatchExcelDto> preferenceMatchRules) {
|
||||||
this.preferenceMatchRules = preferenceMatchRules;
|
this.preferenceMatchRules = preferenceMatchRules;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static PairingWorkbookDataBuilder builder() {
|
public PairingWorkbookData build() {
|
||||||
return new PairingWorkbookDataBuilder();
|
return new PairingWorkbookData(this.members, this.municipalities, this.centers,
|
||||||
}
|
this.memberRegionCodes, this.centerAdjacentRegions, this.preferenceMatchRules);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public List<MemberExcelDto> getMembers() {
|
public String toString() {
|
||||||
return this.members;
|
String var10000 = String.valueOf(this.members);
|
||||||
}
|
return "PairingWorkbookData.PairingWorkbookDataBuilder(members=" + var10000
|
||||||
|
+ ", municipalities=" + String.valueOf(this.municipalities) + ", centers="
|
||||||
@Generated
|
+ String.valueOf(this.centers) + ", memberRegionCodes=" + String.valueOf(
|
||||||
public List<MunicipalityExcelDto> getMunicipalities() {
|
this.memberRegionCodes) + ", centerAdjacentRegions=" + String.valueOf(
|
||||||
return this.municipalities;
|
this.centerAdjacentRegions) + ", preferenceMatchRules=" + String.valueOf(
|
||||||
}
|
this.preferenceMatchRules) + ")";
|
||||||
|
}
|
||||||
@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) + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,122 +4,127 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PreferenceMatchExcelDto {
|
public class PreferenceMatchExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "매칭 순위",
|
header = "매칭 순위",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String priority;
|
private String priority;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "현장위원",
|
header = "현장위원",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String fieldMemberPreferenceRank;
|
private String fieldMemberPreferenceRank;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "외부위원",
|
header = "외부위원",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String externalMemberPreferenceRank;
|
private String externalMemberPreferenceRank;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getPriority() {
|
public String getPriority() {
|
||||||
return this.priority;
|
return this.priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getFieldMemberPreferenceRank() {
|
public String getFieldMemberPreferenceRank() {
|
||||||
return this.fieldMemberPreferenceRank;
|
return this.fieldMemberPreferenceRank;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getExternalMemberPreferenceRank() {
|
public String getExternalMemberPreferenceRank() {
|
||||||
return this.externalMemberPreferenceRank;
|
return this.externalMemberPreferenceRank;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setPriority(final String priority) {
|
public void setPriority(final String priority) {
|
||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setFieldMemberPreferenceRank(final String fieldMemberPreferenceRank) {
|
public void setFieldMemberPreferenceRank(final String fieldMemberPreferenceRank) {
|
||||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setExternalMemberPreferenceRank(final String externalMemberPreferenceRank) {
|
public void setExternalMemberPreferenceRank(final String externalMemberPreferenceRank) {
|
||||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof PreferenceMatchExcelDto)) {
|
} else if (!(o instanceof PreferenceMatchExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
PreferenceMatchExcelDto other = (PreferenceMatchExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
PreferenceMatchExcelDto other = (PreferenceMatchExcelDto)o;
|
Object this$priority = this.getPriority();
|
||||||
if (!other.canEqual(this)) {
|
Object other$priority = other.getPriority();
|
||||||
|
if (this$priority == null) {
|
||||||
|
if (other$priority != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$priority = this.getPriority();
|
} else if (!this$priority.equals(other$priority)) {
|
||||||
Object other$priority = other.getPriority();
|
return false;
|
||||||
if (this$priority == null) {
|
}
|
||||||
if (other$priority != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$priority.equals(other$priority)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
Object this$fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
||||||
Object other$fieldMemberPreferenceRank = other.getFieldMemberPreferenceRank();
|
Object other$fieldMemberPreferenceRank = other.getFieldMemberPreferenceRank();
|
||||||
if (this$fieldMemberPreferenceRank == null) {
|
if (this$fieldMemberPreferenceRank == null) {
|
||||||
if (other$fieldMemberPreferenceRank != null) {
|
if (other$fieldMemberPreferenceRank != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$fieldMemberPreferenceRank.equals(other$fieldMemberPreferenceRank)) {
|
} else if (!this$fieldMemberPreferenceRank.equals(other$fieldMemberPreferenceRank)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
Object this$externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
||||||
Object other$externalMemberPreferenceRank = other.getExternalMemberPreferenceRank();
|
Object other$externalMemberPreferenceRank = other.getExternalMemberPreferenceRank();
|
||||||
if (this$externalMemberPreferenceRank == null) {
|
if (this$externalMemberPreferenceRank == null) {
|
||||||
if (other$externalMemberPreferenceRank != null) {
|
if (other$externalMemberPreferenceRank != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$externalMemberPreferenceRank.equals(other$externalMemberPreferenceRank)) {
|
} else if (!this$externalMemberPreferenceRank.equals(other$externalMemberPreferenceRank)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof PreferenceMatchExcelDto;
|
return other instanceof PreferenceMatchExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $priority = this.getPriority();
|
Object $priority = this.getPriority();
|
||||||
result = result * 59 + ($priority == null ? 43 : $priority.hashCode());
|
result = result * 59 + ($priority == null ? 43 : $priority.hashCode());
|
||||||
Object $fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
Object $fieldMemberPreferenceRank = this.getFieldMemberPreferenceRank();
|
||||||
result = result * 59 + ($fieldMemberPreferenceRank == null ? 43 : $fieldMemberPreferenceRank.hashCode());
|
result = result * 59 + ($fieldMemberPreferenceRank == null ? 43
|
||||||
Object $externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
: $fieldMemberPreferenceRank.hashCode());
|
||||||
result = result * 59 + ($externalMemberPreferenceRank == null ? 43 : $externalMemberPreferenceRank.hashCode());
|
Object $externalMemberPreferenceRank = this.getExternalMemberPreferenceRank();
|
||||||
return result;
|
result = result * 59 + ($externalMemberPreferenceRank == null ? 43
|
||||||
}
|
: $externalMemberPreferenceRank.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getPriority();
|
String var10000 = this.getPriority();
|
||||||
return "PreferenceMatchExcelDto(priority=" + var10000 + ", fieldMemberPreferenceRank=" + this.getFieldMemberPreferenceRank() + ", externalMemberPreferenceRank=" + this.getExternalMemberPreferenceRank() + ")";
|
return "PreferenceMatchExcelDto(priority=" + var10000 + ", fieldMemberPreferenceRank="
|
||||||
}
|
+ this.getFieldMemberPreferenceRank() + ", externalMemberPreferenceRank="
|
||||||
|
+ this.getExternalMemberPreferenceRank() + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,336 +4,349 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class ABPairExcelDto {
|
public class ABPairExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "AB 그룹",
|
header = "AB 그룹",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String groupId;
|
private String groupId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "A 현장위원 id",
|
header = "A 현장위원 id",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 18
|
width = 18
|
||||||
)
|
)
|
||||||
private String aFieldMemberId;
|
private String aFieldMemberId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "A 외부위원 id",
|
header = "A 외부위원 id",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 18
|
width = 18
|
||||||
)
|
)
|
||||||
private String aExternalMemberId;
|
private String aExternalMemberId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "B 현장위원 id",
|
header = "B 현장위원 id",
|
||||||
order = 3,
|
order = 3,
|
||||||
width = 18
|
width = 18
|
||||||
)
|
)
|
||||||
private String bFieldMemberId;
|
private String bFieldMemberId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "B 외부위원 id",
|
header = "B 외부위원 id",
|
||||||
order = 4,
|
order = 4,
|
||||||
width = 18
|
width = 18
|
||||||
)
|
)
|
||||||
private String bExternalMemberId;
|
private String bExternalMemberId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "공유 파견 권역",
|
header = "공유 파견 권역",
|
||||||
order = 5,
|
order = 5,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String sharedDispatchRegion;
|
private String sharedDispatchRegion;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "공유 인접지역 분류",
|
header = "공유 인접지역 분류",
|
||||||
order = 6,
|
order = 6,
|
||||||
width = 18
|
width = 18
|
||||||
)
|
)
|
||||||
private String sharedAdjacentRegionClassification;
|
private String sharedAdjacentRegionClassification;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "A 배정일",
|
header = "A 배정일",
|
||||||
order = 7,
|
order = 7,
|
||||||
width = 25
|
width = 25
|
||||||
)
|
)
|
||||||
private String aAssignmentDates;
|
private String aAssignmentDates;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "B 배정일",
|
header = "B 배정일",
|
||||||
order = 8,
|
order = 8,
|
||||||
width = 25
|
width = 25
|
||||||
)
|
)
|
||||||
private String bAssignmentDates;
|
private String bAssignmentDates;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "날짜 겹침 여부",
|
header = "날짜 겹침 여부",
|
||||||
order = 9,
|
order = 9,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String dateOverlapped;
|
private String dateOverlapped;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getGroupId() {
|
public String getGroupId() {
|
||||||
return this.groupId;
|
return this.groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAFieldMemberId() {
|
public String getAFieldMemberId() {
|
||||||
return this.aFieldMemberId;
|
return this.aFieldMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAExternalMemberId() {
|
public String getAExternalMemberId() {
|
||||||
return this.aExternalMemberId;
|
return this.aExternalMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getBFieldMemberId() {
|
public String getBFieldMemberId() {
|
||||||
return this.bFieldMemberId;
|
return this.bFieldMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getBExternalMemberId() {
|
public String getBExternalMemberId() {
|
||||||
return this.bExternalMemberId;
|
return this.bExternalMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getSharedDispatchRegion() {
|
public String getSharedDispatchRegion() {
|
||||||
return this.sharedDispatchRegion;
|
return this.sharedDispatchRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getSharedAdjacentRegionClassification() {
|
public String getSharedAdjacentRegionClassification() {
|
||||||
return this.sharedAdjacentRegionClassification;
|
return this.sharedAdjacentRegionClassification;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getAAssignmentDates() {
|
public String getAAssignmentDates() {
|
||||||
return this.aAssignmentDates;
|
return this.aAssignmentDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getBAssignmentDates() {
|
public String getBAssignmentDates() {
|
||||||
return this.bAssignmentDates;
|
return this.bAssignmentDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getDateOverlapped() {
|
public String getDateOverlapped() {
|
||||||
return this.dateOverlapped;
|
return this.dateOverlapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setGroupId(final String groupId) {
|
public void setGroupId(final String groupId) {
|
||||||
this.groupId = groupId;
|
this.groupId = groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAFieldMemberId(final String aFieldMemberId) {
|
public void setAFieldMemberId(final String aFieldMemberId) {
|
||||||
this.aFieldMemberId = aFieldMemberId;
|
this.aFieldMemberId = aFieldMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAExternalMemberId(final String aExternalMemberId) {
|
public void setAExternalMemberId(final String aExternalMemberId) {
|
||||||
this.aExternalMemberId = aExternalMemberId;
|
this.aExternalMemberId = aExternalMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setBFieldMemberId(final String bFieldMemberId) {
|
public void setBFieldMemberId(final String bFieldMemberId) {
|
||||||
this.bFieldMemberId = bFieldMemberId;
|
this.bFieldMemberId = bFieldMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setBExternalMemberId(final String bExternalMemberId) {
|
public void setBExternalMemberId(final String bExternalMemberId) {
|
||||||
this.bExternalMemberId = bExternalMemberId;
|
this.bExternalMemberId = bExternalMemberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setSharedDispatchRegion(final String sharedDispatchRegion) {
|
public void setSharedDispatchRegion(final String sharedDispatchRegion) {
|
||||||
this.sharedDispatchRegion = sharedDispatchRegion;
|
this.sharedDispatchRegion = sharedDispatchRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setSharedAdjacentRegionClassification(final String sharedAdjacentRegionClassification) {
|
public void setSharedAdjacentRegionClassification(
|
||||||
this.sharedAdjacentRegionClassification = sharedAdjacentRegionClassification;
|
final String sharedAdjacentRegionClassification) {
|
||||||
}
|
this.sharedAdjacentRegionClassification = sharedAdjacentRegionClassification;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setAAssignmentDates(final String aAssignmentDates) {
|
public void setAAssignmentDates(final String aAssignmentDates) {
|
||||||
this.aAssignmentDates = aAssignmentDates;
|
this.aAssignmentDates = aAssignmentDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setBAssignmentDates(final String bAssignmentDates) {
|
public void setBAssignmentDates(final String bAssignmentDates) {
|
||||||
this.bAssignmentDates = bAssignmentDates;
|
this.bAssignmentDates = bAssignmentDates;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDateOverlapped(final String dateOverlapped) {
|
public void setDateOverlapped(final String dateOverlapped) {
|
||||||
this.dateOverlapped = dateOverlapped;
|
this.dateOverlapped = dateOverlapped;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof ABPairExcelDto)) {
|
} else if (!(o instanceof ABPairExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
ABPairExcelDto other = (ABPairExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
ABPairExcelDto other = (ABPairExcelDto)o;
|
Object this$groupId = this.getGroupId();
|
||||||
if (!other.canEqual(this)) {
|
Object other$groupId = other.getGroupId();
|
||||||
|
if (this$groupId == null) {
|
||||||
|
if (other$groupId != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$groupId = this.getGroupId();
|
} else if (!this$groupId.equals(other$groupId)) {
|
||||||
Object other$groupId = other.getGroupId();
|
return false;
|
||||||
if (this$groupId == null) {
|
}
|
||||||
if (other$groupId != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$groupId.equals(other$groupId)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$aFieldMemberId = this.getAFieldMemberId();
|
Object this$aFieldMemberId = this.getAFieldMemberId();
|
||||||
Object other$aFieldMemberId = other.getAFieldMemberId();
|
Object other$aFieldMemberId = other.getAFieldMemberId();
|
||||||
if (this$aFieldMemberId == null) {
|
if (this$aFieldMemberId == null) {
|
||||||
if (other$aFieldMemberId != null) {
|
if (other$aFieldMemberId != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$aFieldMemberId.equals(other$aFieldMemberId)) {
|
} else if (!this$aFieldMemberId.equals(other$aFieldMemberId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$aExternalMemberId = this.getAExternalMemberId();
|
Object this$aExternalMemberId = this.getAExternalMemberId();
|
||||||
Object other$aExternalMemberId = other.getAExternalMemberId();
|
Object other$aExternalMemberId = other.getAExternalMemberId();
|
||||||
if (this$aExternalMemberId == null) {
|
if (this$aExternalMemberId == null) {
|
||||||
if (other$aExternalMemberId != null) {
|
if (other$aExternalMemberId != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$aExternalMemberId.equals(other$aExternalMemberId)) {
|
} else if (!this$aExternalMemberId.equals(other$aExternalMemberId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$bFieldMemberId = this.getBFieldMemberId();
|
Object this$bFieldMemberId = this.getBFieldMemberId();
|
||||||
Object other$bFieldMemberId = other.getBFieldMemberId();
|
Object other$bFieldMemberId = other.getBFieldMemberId();
|
||||||
if (this$bFieldMemberId == null) {
|
if (this$bFieldMemberId == null) {
|
||||||
if (other$bFieldMemberId != null) {
|
if (other$bFieldMemberId != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$bFieldMemberId.equals(other$bFieldMemberId)) {
|
} else if (!this$bFieldMemberId.equals(other$bFieldMemberId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$bExternalMemberId = this.getBExternalMemberId();
|
Object this$bExternalMemberId = this.getBExternalMemberId();
|
||||||
Object other$bExternalMemberId = other.getBExternalMemberId();
|
Object other$bExternalMemberId = other.getBExternalMemberId();
|
||||||
if (this$bExternalMemberId == null) {
|
if (this$bExternalMemberId == null) {
|
||||||
if (other$bExternalMemberId != null) {
|
if (other$bExternalMemberId != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$bExternalMemberId.equals(other$bExternalMemberId)) {
|
} else if (!this$bExternalMemberId.equals(other$bExternalMemberId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$sharedDispatchRegion = this.getSharedDispatchRegion();
|
Object this$sharedDispatchRegion = this.getSharedDispatchRegion();
|
||||||
Object other$sharedDispatchRegion = other.getSharedDispatchRegion();
|
Object other$sharedDispatchRegion = other.getSharedDispatchRegion();
|
||||||
if (this$sharedDispatchRegion == null) {
|
if (this$sharedDispatchRegion == null) {
|
||||||
if (other$sharedDispatchRegion != null) {
|
if (other$sharedDispatchRegion != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$sharedDispatchRegion.equals(other$sharedDispatchRegion)) {
|
} else if (!this$sharedDispatchRegion.equals(other$sharedDispatchRegion)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
Object this$sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
||||||
Object other$sharedAdjacentRegionClassification = other.getSharedAdjacentRegionClassification();
|
Object other$sharedAdjacentRegionClassification = other.getSharedAdjacentRegionClassification();
|
||||||
if (this$sharedAdjacentRegionClassification == null) {
|
if (this$sharedAdjacentRegionClassification == null) {
|
||||||
if (other$sharedAdjacentRegionClassification != null) {
|
if (other$sharedAdjacentRegionClassification != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$sharedAdjacentRegionClassification.equals(other$sharedAdjacentRegionClassification)) {
|
} else if (!this$sharedAdjacentRegionClassification.equals(
|
||||||
return false;
|
other$sharedAdjacentRegionClassification)) {
|
||||||
}
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Object this$aAssignmentDates = this.getAAssignmentDates();
|
Object this$aAssignmentDates = this.getAAssignmentDates();
|
||||||
Object other$aAssignmentDates = other.getAAssignmentDates();
|
Object other$aAssignmentDates = other.getAAssignmentDates();
|
||||||
if (this$aAssignmentDates == null) {
|
if (this$aAssignmentDates == null) {
|
||||||
if (other$aAssignmentDates != null) {
|
if (other$aAssignmentDates != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$aAssignmentDates.equals(other$aAssignmentDates)) {
|
} else if (!this$aAssignmentDates.equals(other$aAssignmentDates)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$bAssignmentDates = this.getBAssignmentDates();
|
Object this$bAssignmentDates = this.getBAssignmentDates();
|
||||||
Object other$bAssignmentDates = other.getBAssignmentDates();
|
Object other$bAssignmentDates = other.getBAssignmentDates();
|
||||||
if (this$bAssignmentDates == null) {
|
if (this$bAssignmentDates == null) {
|
||||||
if (other$bAssignmentDates != null) {
|
if (other$bAssignmentDates != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$bAssignmentDates.equals(other$bAssignmentDates)) {
|
} else if (!this$bAssignmentDates.equals(other$bAssignmentDates)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$dateOverlapped = this.getDateOverlapped();
|
Object this$dateOverlapped = this.getDateOverlapped();
|
||||||
Object other$dateOverlapped = other.getDateOverlapped();
|
Object other$dateOverlapped = other.getDateOverlapped();
|
||||||
if (this$dateOverlapped == null) {
|
if (this$dateOverlapped == null) {
|
||||||
if (other$dateOverlapped != null) {
|
if (other$dateOverlapped != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$dateOverlapped.equals(other$dateOverlapped)) {
|
} else if (!this$dateOverlapped.equals(other$dateOverlapped)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof ABPairExcelDto;
|
return other instanceof ABPairExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $groupId = this.getGroupId();
|
Object $groupId = this.getGroupId();
|
||||||
result = result * 59 + ($groupId == null ? 43 : $groupId.hashCode());
|
result = result * 59 + ($groupId == null ? 43 : $groupId.hashCode());
|
||||||
Object $aFieldMemberId = this.getAFieldMemberId();
|
Object $aFieldMemberId = this.getAFieldMemberId();
|
||||||
result = result * 59 + ($aFieldMemberId == null ? 43 : $aFieldMemberId.hashCode());
|
result = result * 59 + ($aFieldMemberId == null ? 43 : $aFieldMemberId.hashCode());
|
||||||
Object $aExternalMemberId = this.getAExternalMemberId();
|
Object $aExternalMemberId = this.getAExternalMemberId();
|
||||||
result = result * 59 + ($aExternalMemberId == null ? 43 : $aExternalMemberId.hashCode());
|
result = result * 59 + ($aExternalMemberId == null ? 43 : $aExternalMemberId.hashCode());
|
||||||
Object $bFieldMemberId = this.getBFieldMemberId();
|
Object $bFieldMemberId = this.getBFieldMemberId();
|
||||||
result = result * 59 + ($bFieldMemberId == null ? 43 : $bFieldMemberId.hashCode());
|
result = result * 59 + ($bFieldMemberId == null ? 43 : $bFieldMemberId.hashCode());
|
||||||
Object $bExternalMemberId = this.getBExternalMemberId();
|
Object $bExternalMemberId = this.getBExternalMemberId();
|
||||||
result = result * 59 + ($bExternalMemberId == null ? 43 : $bExternalMemberId.hashCode());
|
result = result * 59 + ($bExternalMemberId == null ? 43 : $bExternalMemberId.hashCode());
|
||||||
Object $sharedDispatchRegion = this.getSharedDispatchRegion();
|
Object $sharedDispatchRegion = this.getSharedDispatchRegion();
|
||||||
result = result * 59 + ($sharedDispatchRegion == null ? 43 : $sharedDispatchRegion.hashCode());
|
result = result * 59 + ($sharedDispatchRegion == null ? 43 : $sharedDispatchRegion.hashCode());
|
||||||
Object $sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
Object $sharedAdjacentRegionClassification = this.getSharedAdjacentRegionClassification();
|
||||||
result = result * 59 + ($sharedAdjacentRegionClassification == null ? 43 : $sharedAdjacentRegionClassification.hashCode());
|
result = result * 59 + ($sharedAdjacentRegionClassification == null ? 43
|
||||||
Object $aAssignmentDates = this.getAAssignmentDates();
|
: $sharedAdjacentRegionClassification.hashCode());
|
||||||
result = result * 59 + ($aAssignmentDates == null ? 43 : $aAssignmentDates.hashCode());
|
Object $aAssignmentDates = this.getAAssignmentDates();
|
||||||
Object $bAssignmentDates = this.getBAssignmentDates();
|
result = result * 59 + ($aAssignmentDates == null ? 43 : $aAssignmentDates.hashCode());
|
||||||
result = result * 59 + ($bAssignmentDates == null ? 43 : $bAssignmentDates.hashCode());
|
Object $bAssignmentDates = this.getBAssignmentDates();
|
||||||
Object $dateOverlapped = this.getDateOverlapped();
|
result = result * 59 + ($bAssignmentDates == null ? 43 : $bAssignmentDates.hashCode());
|
||||||
result = result * 59 + ($dateOverlapped == null ? 43 : $dateOverlapped.hashCode());
|
Object $dateOverlapped = this.getDateOverlapped();
|
||||||
return result;
|
result = result * 59 + ($dateOverlapped == null ? 43 : $dateOverlapped.hashCode());
|
||||||
}
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getGroupId();
|
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() + ")";
|
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
|
@Generated
|
||||||
public ABPairExcelDto() {
|
public ABPairExcelDto() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@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) {
|
public ABPairExcelDto(final String groupId, final String aFieldMemberId,
|
||||||
this.groupId = groupId;
|
final String aExternalMemberId, final String bFieldMemberId, final String bExternalMemberId,
|
||||||
this.aFieldMemberId = aFieldMemberId;
|
final String sharedDispatchRegion, final String sharedAdjacentRegionClassification,
|
||||||
this.aExternalMemberId = aExternalMemberId;
|
final String aAssignmentDates, final String bAssignmentDates, final String dateOverlapped) {
|
||||||
this.bFieldMemberId = bFieldMemberId;
|
this.groupId = groupId;
|
||||||
this.bExternalMemberId = bExternalMemberId;
|
this.aFieldMemberId = aFieldMemberId;
|
||||||
this.sharedDispatchRegion = sharedDispatchRegion;
|
this.aExternalMemberId = aExternalMemberId;
|
||||||
this.sharedAdjacentRegionClassification = sharedAdjacentRegionClassification;
|
this.bFieldMemberId = bFieldMemberId;
|
||||||
this.aAssignmentDates = aAssignmentDates;
|
this.bExternalMemberId = bExternalMemberId;
|
||||||
this.bAssignmentDates = bAssignmentDates;
|
this.sharedDispatchRegion = sharedDispatchRegion;
|
||||||
this.dateOverlapped = dateOverlapped;
|
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;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class CandidateSummaryExcelDto {
|
public class CandidateSummaryExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "항목",
|
header = "항목",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 30
|
width = 30
|
||||||
)
|
)
|
||||||
private String name;
|
private String name;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "값",
|
header = "값",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 20
|
width = 20
|
||||||
)
|
)
|
||||||
private String value;
|
private String value;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "설명",
|
header = "설명",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 50
|
width = 50
|
||||||
)
|
)
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
return this.value;
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return this.description;
|
return this.description;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setName(final String name) {
|
public void setName(final String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setValue(final String value) {
|
public void setValue(final String value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDescription(final String description) {
|
public void setDescription(final String description) {
|
||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof CandidateSummaryExcelDto)) {
|
} else if (!(o instanceof CandidateSummaryExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
CandidateSummaryExcelDto other = (CandidateSummaryExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
CandidateSummaryExcelDto other = (CandidateSummaryExcelDto)o;
|
Object this$name = this.getName();
|
||||||
if (!other.canEqual(this)) {
|
Object other$name = other.getName();
|
||||||
|
if (this$name == null) {
|
||||||
|
if (other$name != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$name = this.getName();
|
} else if (!this$name.equals(other$name)) {
|
||||||
Object other$name = other.getName();
|
return false;
|
||||||
if (this$name == null) {
|
}
|
||||||
if (other$name != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$name.equals(other$name)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$value = this.getValue();
|
Object this$value = this.getValue();
|
||||||
Object other$value = other.getValue();
|
Object other$value = other.getValue();
|
||||||
if (this$value == null) {
|
if (this$value == null) {
|
||||||
if (other$value != null) {
|
if (other$value != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$value.equals(other$value)) {
|
} else if (!this$value.equals(other$value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$description = this.getDescription();
|
Object this$description = this.getDescription();
|
||||||
Object other$description = other.getDescription();
|
Object other$description = other.getDescription();
|
||||||
if (this$description == null) {
|
if (this$description == null) {
|
||||||
if (other$description != null) {
|
if (other$description != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$description.equals(other$description)) {
|
} else if (!this$description.equals(other$description)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof CandidateSummaryExcelDto;
|
return other instanceof CandidateSummaryExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $name = this.getName();
|
Object $name = this.getName();
|
||||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||||
Object $value = this.getValue();
|
Object $value = this.getValue();
|
||||||
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
||||||
Object $description = this.getDescription();
|
Object $description = this.getDescription();
|
||||||
result = result * 59 + ($description == null ? 43 : $description.hashCode());
|
result = result * 59 + ($description == null ? 43 : $description.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getName();
|
String var10000 = this.getName();
|
||||||
return "CandidateSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue() + ", description=" + this.getDescription() + ")";
|
return "CandidateSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue()
|
||||||
}
|
+ ", description=" + this.getDescription() + ")";
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public CandidateSummaryExcelDto() {
|
public CandidateSummaryExcelDto() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public CandidateSummaryExcelDto(final String name, final String value, final String description) {
|
public CandidateSummaryExcelDto(final String name, final String value, final String description) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.value = value;
|
this.value = value;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,104 +4,105 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PairingSummaryExcelDto {
|
public class PairingSummaryExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "항목",
|
header = "항목",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 25
|
width = 25
|
||||||
)
|
)
|
||||||
private String name;
|
private String name;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "값",
|
header = "값",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 20
|
width = 20
|
||||||
)
|
)
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getValue() {
|
public String getValue() {
|
||||||
return this.value;
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setName(final String name) {
|
public void setName(final String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setValue(final String value) {
|
public void setValue(final String value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof PairingSummaryExcelDto)) {
|
} else if (!(o instanceof PairingSummaryExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
PairingSummaryExcelDto other = (PairingSummaryExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
PairingSummaryExcelDto other = (PairingSummaryExcelDto)o;
|
Object this$name = this.getName();
|
||||||
if (!other.canEqual(this)) {
|
Object other$name = other.getName();
|
||||||
|
if (this$name == null) {
|
||||||
|
if (other$name != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$name = this.getName();
|
} else if (!this$name.equals(other$name)) {
|
||||||
Object other$name = other.getName();
|
return false;
|
||||||
if (this$name == null) {
|
}
|
||||||
if (other$name != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$name.equals(other$name)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$value = this.getValue();
|
Object this$value = this.getValue();
|
||||||
Object other$value = other.getValue();
|
Object other$value = other.getValue();
|
||||||
if (this$value == null) {
|
if (this$value == null) {
|
||||||
if (other$value != null) {
|
if (other$value != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$value.equals(other$value)) {
|
} else if (!this$value.equals(other$value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof PairingSummaryExcelDto;
|
return other instanceof PairingSummaryExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $name = this.getName();
|
Object $name = this.getName();
|
||||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||||
Object $value = this.getValue();
|
Object $value = this.getValue();
|
||||||
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
result = result * 59 + ($value == null ? 43 : $value.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getName();
|
String var10000 = this.getName();
|
||||||
return "PairingSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue() + ")";
|
return "PairingSummaryExcelDto(name=" + var10000 + ", value=" + this.getValue() + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public PairingSummaryExcelDto() {
|
public PairingSummaryExcelDto() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public PairingSummaryExcelDto(final String name, final String value) {
|
public PairingSummaryExcelDto(final String name, final String value) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,133 +4,135 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class RuleViolationExcelDto {
|
public class RuleViolationExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "검사 항목",
|
header = "검사 항목",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 35
|
width = 35
|
||||||
)
|
)
|
||||||
private String ruleName;
|
private String ruleName;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "결과",
|
header = "결과",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 12
|
width = 12
|
||||||
)
|
)
|
||||||
private String result;
|
private String result;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "상세",
|
header = "상세",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 80
|
width = 80
|
||||||
)
|
)
|
||||||
private String detail;
|
private String detail;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getRuleName() {
|
public String getRuleName() {
|
||||||
return this.ruleName;
|
return this.ruleName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getResult() {
|
public String getResult() {
|
||||||
return this.result;
|
return this.result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getDetail() {
|
public String getDetail() {
|
||||||
return this.detail;
|
return this.detail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setRuleName(final String ruleName) {
|
public void setRuleName(final String ruleName) {
|
||||||
this.ruleName = ruleName;
|
this.ruleName = ruleName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setResult(final String result) {
|
public void setResult(final String result) {
|
||||||
this.result = result;
|
this.result = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setDetail(final String detail) {
|
public void setDetail(final String detail) {
|
||||||
this.detail = detail;
|
this.detail = detail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof RuleViolationExcelDto)) {
|
} else if (!(o instanceof RuleViolationExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
RuleViolationExcelDto other = (RuleViolationExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
RuleViolationExcelDto other = (RuleViolationExcelDto)o;
|
Object this$ruleName = this.getRuleName();
|
||||||
if (!other.canEqual(this)) {
|
Object other$ruleName = other.getRuleName();
|
||||||
|
if (this$ruleName == null) {
|
||||||
|
if (other$ruleName != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$ruleName = this.getRuleName();
|
} else if (!this$ruleName.equals(other$ruleName)) {
|
||||||
Object other$ruleName = other.getRuleName();
|
return false;
|
||||||
if (this$ruleName == null) {
|
}
|
||||||
if (other$ruleName != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$ruleName.equals(other$ruleName)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$result = this.getResult();
|
Object this$result = this.getResult();
|
||||||
Object other$result = other.getResult();
|
Object other$result = other.getResult();
|
||||||
if (this$result == null) {
|
if (this$result == null) {
|
||||||
if (other$result != null) {
|
if (other$result != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$result.equals(other$result)) {
|
} else if (!this$result.equals(other$result)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$detail = this.getDetail();
|
Object this$detail = this.getDetail();
|
||||||
Object other$detail = other.getDetail();
|
Object other$detail = other.getDetail();
|
||||||
if (this$detail == null) {
|
if (this$detail == null) {
|
||||||
if (other$detail != null) {
|
if (other$detail != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$detail.equals(other$detail)) {
|
} else if (!this$detail.equals(other$detail)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof RuleViolationExcelDto;
|
return other instanceof RuleViolationExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $ruleName = this.getRuleName();
|
Object $ruleName = this.getRuleName();
|
||||||
result = result * 59 + ($ruleName == null ? 43 : $ruleName.hashCode());
|
result = result * 59 + ($ruleName == null ? 43 : $ruleName.hashCode());
|
||||||
Object $result = this.getResult();
|
Object $result = this.getResult();
|
||||||
result = result * 59 + ($result == null ? 43 : $result.hashCode());
|
result = result * 59 + ($result == null ? 43 : $result.hashCode());
|
||||||
Object $detail = this.getDetail();
|
Object $detail = this.getDetail();
|
||||||
result = result * 59 + ($detail == null ? 43 : $detail.hashCode());
|
result = result * 59 + ($detail == null ? 43 : $detail.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getRuleName();
|
String var10000 = this.getRuleName();
|
||||||
return "RuleViolationExcelDto(ruleName=" + var10000 + ", result=" + this.getResult() + ", detail=" + this.getDetail() + ")";
|
return "RuleViolationExcelDto(ruleName=" + var10000 + ", result=" + this.getResult()
|
||||||
}
|
+ ", detail=" + this.getDetail() + ")";
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public RuleViolationExcelDto() {
|
public RuleViolationExcelDto() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public RuleViolationExcelDto(final String ruleName, final String result, final String detail) {
|
public RuleViolationExcelDto(final String ruleName, final String result, final String detail) {
|
||||||
this.ruleName = ruleName;
|
this.ruleName = ruleName;
|
||||||
this.result = result;
|
this.result = result;
|
||||||
this.detail = detail;
|
this.detail = detail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,133 +4,136 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class UnassignedCenterExcelDto {
|
public class UnassignedCenterExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "센터 id",
|
header = "센터 id",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String centerId;
|
private String centerId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "지자체 id",
|
header = "지자체 id",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String municipalityId;
|
private String municipalityId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "사유",
|
header = "사유",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 40
|
width = 40
|
||||||
)
|
)
|
||||||
private String reason;
|
private String reason;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getCenterId() {
|
public String getCenterId() {
|
||||||
return this.centerId;
|
return this.centerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getMunicipalityId() {
|
public String getMunicipalityId() {
|
||||||
return this.municipalityId;
|
return this.municipalityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getReason() {
|
public String getReason() {
|
||||||
return this.reason;
|
return this.reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setCenterId(final String centerId) {
|
public void setCenterId(final String centerId) {
|
||||||
this.centerId = centerId;
|
this.centerId = centerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setMunicipalityId(final String municipalityId) {
|
public void setMunicipalityId(final String municipalityId) {
|
||||||
this.municipalityId = municipalityId;
|
this.municipalityId = municipalityId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setReason(final String reason) {
|
public void setReason(final String reason) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof UnassignedCenterExcelDto)) {
|
} else if (!(o instanceof UnassignedCenterExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
UnassignedCenterExcelDto other = (UnassignedCenterExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
UnassignedCenterExcelDto other = (UnassignedCenterExcelDto)o;
|
Object this$centerId = this.getCenterId();
|
||||||
if (!other.canEqual(this)) {
|
Object other$centerId = other.getCenterId();
|
||||||
|
if (this$centerId == null) {
|
||||||
|
if (other$centerId != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$centerId = this.getCenterId();
|
} else if (!this$centerId.equals(other$centerId)) {
|
||||||
Object other$centerId = other.getCenterId();
|
return false;
|
||||||
if (this$centerId == null) {
|
}
|
||||||
if (other$centerId != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$centerId.equals(other$centerId)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$municipalityId = this.getMunicipalityId();
|
Object this$municipalityId = this.getMunicipalityId();
|
||||||
Object other$municipalityId = other.getMunicipalityId();
|
Object other$municipalityId = other.getMunicipalityId();
|
||||||
if (this$municipalityId == null) {
|
if (this$municipalityId == null) {
|
||||||
if (other$municipalityId != null) {
|
if (other$municipalityId != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
} else if (!this$municipalityId.equals(other$municipalityId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$reason = this.getReason();
|
Object this$reason = this.getReason();
|
||||||
Object other$reason = other.getReason();
|
Object other$reason = other.getReason();
|
||||||
if (this$reason == null) {
|
if (this$reason == null) {
|
||||||
if (other$reason != null) {
|
if (other$reason != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$reason.equals(other$reason)) {
|
} else if (!this$reason.equals(other$reason)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof UnassignedCenterExcelDto;
|
return other instanceof UnassignedCenterExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $centerId = this.getCenterId();
|
Object $centerId = this.getCenterId();
|
||||||
result = result * 59 + ($centerId == null ? 43 : $centerId.hashCode());
|
result = result * 59 + ($centerId == null ? 43 : $centerId.hashCode());
|
||||||
Object $municipalityId = this.getMunicipalityId();
|
Object $municipalityId = this.getMunicipalityId();
|
||||||
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
result = result * 59 + ($municipalityId == null ? 43 : $municipalityId.hashCode());
|
||||||
Object $reason = this.getReason();
|
Object $reason = this.getReason();
|
||||||
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getCenterId();
|
String var10000 = this.getCenterId();
|
||||||
return "UnassignedCenterExcelDto(centerId=" + var10000 + ", municipalityId=" + this.getMunicipalityId() + ", reason=" + this.getReason() + ")";
|
return "UnassignedCenterExcelDto(centerId=" + var10000 + ", municipalityId="
|
||||||
}
|
+ this.getMunicipalityId() + ", reason=" + this.getReason() + ")";
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public UnassignedCenterExcelDto() {
|
public UnassignedCenterExcelDto() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public UnassignedCenterExcelDto(final String centerId, final String municipalityId, final String reason) {
|
public UnassignedCenterExcelDto(final String centerId, final String municipalityId,
|
||||||
this.centerId = centerId;
|
final String reason) {
|
||||||
this.municipalityId = municipalityId;
|
this.centerId = centerId;
|
||||||
this.reason = reason;
|
this.municipalityId = municipalityId;
|
||||||
}
|
this.reason = reason;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,133 +4,135 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class UnusedMemberExcelDto {
|
public class UnusedMemberExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "위원 id",
|
header = "위원 id",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String memberId;
|
private String memberId;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "현장/외부 구분",
|
header = "현장/외부 구분",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String role;
|
private String role;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "사유",
|
header = "사유",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 40
|
width = 40
|
||||||
)
|
)
|
||||||
private String reason;
|
private String reason;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getMemberId() {
|
public String getMemberId() {
|
||||||
return this.memberId;
|
return this.memberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getRole() {
|
public String getRole() {
|
||||||
return this.role;
|
return this.role;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getReason() {
|
public String getReason() {
|
||||||
return this.reason;
|
return this.reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setMemberId(final String memberId) {
|
public void setMemberId(final String memberId) {
|
||||||
this.memberId = memberId;
|
this.memberId = memberId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setRole(final String role) {
|
public void setRole(final String role) {
|
||||||
this.role = role;
|
this.role = role;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setReason(final String reason) {
|
public void setReason(final String reason) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof UnusedMemberExcelDto)) {
|
} else if (!(o instanceof UnusedMemberExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
UnusedMemberExcelDto other = (UnusedMemberExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
UnusedMemberExcelDto other = (UnusedMemberExcelDto)o;
|
Object this$memberId = this.getMemberId();
|
||||||
if (!other.canEqual(this)) {
|
Object other$memberId = other.getMemberId();
|
||||||
|
if (this$memberId == null) {
|
||||||
|
if (other$memberId != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$memberId = this.getMemberId();
|
} else if (!this$memberId.equals(other$memberId)) {
|
||||||
Object other$memberId = other.getMemberId();
|
return false;
|
||||||
if (this$memberId == null) {
|
}
|
||||||
if (other$memberId != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$memberId.equals(other$memberId)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$role = this.getRole();
|
Object this$role = this.getRole();
|
||||||
Object other$role = other.getRole();
|
Object other$role = other.getRole();
|
||||||
if (this$role == null) {
|
if (this$role == null) {
|
||||||
if (other$role != null) {
|
if (other$role != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$role.equals(other$role)) {
|
} else if (!this$role.equals(other$role)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$reason = this.getReason();
|
Object this$reason = this.getReason();
|
||||||
Object other$reason = other.getReason();
|
Object other$reason = other.getReason();
|
||||||
if (this$reason == null) {
|
if (this$reason == null) {
|
||||||
if (other$reason != null) {
|
if (other$reason != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$reason.equals(other$reason)) {
|
} else if (!this$reason.equals(other$reason)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof UnusedMemberExcelDto;
|
return other instanceof UnusedMemberExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $memberId = this.getMemberId();
|
Object $memberId = this.getMemberId();
|
||||||
result = result * 59 + ($memberId == null ? 43 : $memberId.hashCode());
|
result = result * 59 + ($memberId == null ? 43 : $memberId.hashCode());
|
||||||
Object $role = this.getRole();
|
Object $role = this.getRole();
|
||||||
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
result = result * 59 + ($role == null ? 43 : $role.hashCode());
|
||||||
Object $reason = this.getReason();
|
Object $reason = this.getReason();
|
||||||
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
result = result * 59 + ($reason == null ? 43 : $reason.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getMemberId();
|
String var10000 = this.getMemberId();
|
||||||
return "UnusedMemberExcelDto(memberId=" + var10000 + ", role=" + this.getRole() + ", reason=" + this.getReason() + ")";
|
return "UnusedMemberExcelDto(memberId=" + var10000 + ", role=" + this.getRole() + ", reason="
|
||||||
}
|
+ this.getReason() + ")";
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public UnusedMemberExcelDto() {
|
public UnusedMemberExcelDto() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public UnusedMemberExcelDto(final String memberId, final String role, final String reason) {
|
public UnusedMemberExcelDto(final String memberId, final String role, final String reason) {
|
||||||
this.memberId = memberId;
|
this.memberId = memberId;
|
||||||
this.role = role;
|
this.role = role;
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,133 +4,135 @@ import com.kri.common.feature.excel.ExcelColumn;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class ValidationErrorExcelDto {
|
public class ValidationErrorExcelDto {
|
||||||
@ExcelColumn(
|
|
||||||
|
@ExcelColumn(
|
||||||
header = "오류 코드",
|
header = "오류 코드",
|
||||||
order = 0,
|
order = 0,
|
||||||
width = 25
|
width = 25
|
||||||
)
|
)
|
||||||
private String code;
|
private String code;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "오류 메시지",
|
header = "오류 메시지",
|
||||||
order = 1,
|
order = 1,
|
||||||
width = 80
|
width = 80
|
||||||
)
|
)
|
||||||
private String message;
|
private String message;
|
||||||
@ExcelColumn(
|
@ExcelColumn(
|
||||||
header = "구분",
|
header = "구분",
|
||||||
order = 2,
|
order = 2,
|
||||||
width = 15
|
width = 15
|
||||||
)
|
)
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getCode() {
|
public String getCode() {
|
||||||
return this.code;
|
return this.code;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return this.message;
|
return this.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return this.type;
|
return this.type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setCode(final String code) {
|
public void setCode(final String code) {
|
||||||
this.code = code;
|
this.code = code;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setMessage(final String message) {
|
public void setMessage(final String message) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public void setType(final String type) {
|
public void setType(final String type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public boolean equals(final Object o) {
|
public boolean equals(final Object o) {
|
||||||
if (o == this) {
|
if (o == this) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!(o instanceof ValidationErrorExcelDto)) {
|
} else if (!(o instanceof ValidationErrorExcelDto)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
ValidationErrorExcelDto other = (ValidationErrorExcelDto) o;
|
||||||
|
if (!other.canEqual(this)) {
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
ValidationErrorExcelDto other = (ValidationErrorExcelDto)o;
|
Object this$code = this.getCode();
|
||||||
if (!other.canEqual(this)) {
|
Object other$code = other.getCode();
|
||||||
|
if (this$code == null) {
|
||||||
|
if (other$code != null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
}
|
||||||
Object this$code = this.getCode();
|
} else if (!this$code.equals(other$code)) {
|
||||||
Object other$code = other.getCode();
|
return false;
|
||||||
if (this$code == null) {
|
}
|
||||||
if (other$code != null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else if (!this$code.equals(other$code)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Object this$message = this.getMessage();
|
Object this$message = this.getMessage();
|
||||||
Object other$message = other.getMessage();
|
Object other$message = other.getMessage();
|
||||||
if (this$message == null) {
|
if (this$message == null) {
|
||||||
if (other$message != null) {
|
if (other$message != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$message.equals(other$message)) {
|
} else if (!this$message.equals(other$message)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object this$type = this.getType();
|
Object this$type = this.getType();
|
||||||
Object other$type = other.getType();
|
Object other$type = other.getType();
|
||||||
if (this$type == null) {
|
if (this$type == null) {
|
||||||
if (other$type != null) {
|
if (other$type != null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!this$type.equals(other$type)) {
|
} else if (!this$type.equals(other$type)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
protected boolean canEqual(final Object other) {
|
protected boolean canEqual(final Object other) {
|
||||||
return other instanceof ValidationErrorExcelDto;
|
return other instanceof ValidationErrorExcelDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int PRIME = 59;
|
int PRIME = 59;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
Object $code = this.getCode();
|
Object $code = this.getCode();
|
||||||
result = result * 59 + ($code == null ? 43 : $code.hashCode());
|
result = result * 59 + ($code == null ? 43 : $code.hashCode());
|
||||||
Object $message = this.getMessage();
|
Object $message = this.getMessage();
|
||||||
result = result * 59 + ($message == null ? 43 : $message.hashCode());
|
result = result * 59 + ($message == null ? 43 : $message.hashCode());
|
||||||
Object $type = this.getType();
|
Object $type = this.getType();
|
||||||
result = result * 59 + ($type == null ? 43 : $type.hashCode());
|
result = result * 59 + ($type == null ? 43 : $type.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String var10000 = this.getCode();
|
String var10000 = this.getCode();
|
||||||
return "ValidationErrorExcelDto(code=" + var10000 + ", message=" + this.getMessage() + ", type=" + this.getType() + ")";
|
return "ValidationErrorExcelDto(code=" + var10000 + ", message=" + this.getMessage() + ", type="
|
||||||
}
|
+ this.getType() + ")";
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public ValidationErrorExcelDto() {
|
public ValidationErrorExcelDto() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public ValidationErrorExcelDto(final String code, final String message, final String type) {
|
public ValidationErrorExcelDto(final String code, final String message, final String type) {
|
||||||
this.code = code;
|
this.code = code;
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,106 +3,114 @@ package com.kri.p6.ncrc.pairing.model;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class ABPairMatch {
|
public class ABPairMatch {
|
||||||
private final String groupId;
|
|
||||||
private final String fieldMemberId;
|
|
||||||
private final String externalMemberId;
|
|
||||||
private final String counterpartFieldMemberId;
|
|
||||||
private final String counterpartExternalMemberId;
|
|
||||||
|
|
||||||
@Generated
|
private final String groupId;
|
||||||
ABPairMatch(final String groupId, final String fieldMemberId, final String externalMemberId, final String counterpartFieldMemberId, final String counterpartExternalMemberId) {
|
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;
|
this.groupId = groupId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public ABPairMatchBuilder fieldMemberId(final String fieldMemberId) {
|
||||||
this.fieldMemberId = fieldMemberId;
|
this.fieldMemberId = fieldMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public ABPairMatchBuilder externalMemberId(final String externalMemberId) {
|
||||||
this.externalMemberId = externalMemberId;
|
this.externalMemberId = externalMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public ABPairMatchBuilder counterpartFieldMemberId(final String counterpartFieldMemberId) {
|
||||||
this.counterpartFieldMemberId = counterpartFieldMemberId;
|
this.counterpartFieldMemberId = counterpartFieldMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public ABPairMatchBuilder counterpartExternalMemberId(
|
||||||
|
final String counterpartExternalMemberId) {
|
||||||
this.counterpartExternalMemberId = counterpartExternalMemberId;
|
this.counterpartExternalMemberId = counterpartExternalMemberId;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static ABPairMatchBuilder builder() {
|
public ABPairMatch build() {
|
||||||
return new ABPairMatchBuilder();
|
return new ABPairMatch(this.groupId, this.fieldMemberId, this.externalMemberId,
|
||||||
}
|
this.counterpartFieldMemberId, this.counterpartExternalMemberId);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getGroupId() {
|
public String toString() {
|
||||||
return this.groupId;
|
return "ABPairMatch.ABPairMatchBuilder(groupId=" + this.groupId + ", fieldMemberId="
|
||||||
}
|
+ this.fieldMemberId + ", externalMemberId=" + this.externalMemberId
|
||||||
|
+ ", counterpartFieldMemberId=" + this.counterpartFieldMemberId
|
||||||
@Generated
|
+ ", counterpartExternalMemberId=" + this.counterpartExternalMemberId + ")";
|
||||||
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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,197 +4,216 @@ import java.time.LocalDate;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class AssignmentCandidate {
|
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
|
private final String fieldMemberId;
|
||||||
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 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;
|
this.fieldMemberId = fieldMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||||
this.externalMemberId = externalMemberId;
|
this.externalMemberId = externalMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder centerId(final String centerId) {
|
||||||
this.centerId = centerId;
|
this.centerId = centerId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder municipalityId(final String municipalityId) {
|
||||||
this.municipalityId = municipalityId;
|
this.municipalityId = municipalityId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder date(final LocalDate date) {
|
||||||
this.date = date;
|
this.date = date;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder dispatchRegion(final String dispatchRegion) {
|
||||||
this.dispatchRegion = dispatchRegion;
|
this.dispatchRegion = dispatchRegion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder adjacentRegionClassification(
|
||||||
|
final String adjacentRegionClassification) {
|
||||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder preferencePriority(final int preferencePriority) {
|
||||||
this.preferencePriority = preferencePriority;
|
this.preferencePriority = preferencePriority;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder fieldMemberPreferenceRank(
|
||||||
|
final int fieldMemberPreferenceRank) {
|
||||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder externalMemberPreferenceRank(
|
||||||
|
final int externalMemberPreferenceRank) {
|
||||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public AssignmentCandidateBuilder residenceMatchScore(final int residenceMatchScore) {
|
||||||
this.residenceMatchScore = residenceMatchScore;
|
this.residenceMatchScore = residenceMatchScore;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static AssignmentCandidateBuilder builder() {
|
public AssignmentCandidate build() {
|
||||||
return new AssignmentCandidateBuilder();
|
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
|
@Generated
|
||||||
public String getFieldMemberId() {
|
public String toString() {
|
||||||
return this.fieldMemberId;
|
String var10000 = this.fieldMemberId;
|
||||||
}
|
return "AssignmentCandidate.AssignmentCandidateBuilder(fieldMemberId=" + var10000
|
||||||
|
+ ", externalMemberId=" + this.externalMemberId + ", centerId=" + this.centerId
|
||||||
@Generated
|
+ ", municipalityId=" + this.municipalityId + ", date=" + String.valueOf(this.date)
|
||||||
public String getExternalMemberId() {
|
+ ", dispatchRegion=" + this.dispatchRegion + ", adjacentRegionClassification="
|
||||||
return this.externalMemberId;
|
+ this.adjacentRegionClassification + ", preferencePriority=" + this.preferencePriority
|
||||||
}
|
+ ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank
|
||||||
|
+ ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank
|
||||||
@Generated
|
+ ", residenceMatchScore=" + this.residenceMatchScore + ")";
|
||||||
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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,137 +5,147 @@ import java.util.Set;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class Center {
|
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
|
private final String id;
|
||||||
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 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;
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public CenterBuilder municipalityId(final String municipalityId) {
|
||||||
this.municipalityId = municipalityId;
|
this.municipalityId = municipalityId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public CenterBuilder womenOnly(final boolean womenOnly) {
|
||||||
this.womenOnly = womenOnly;
|
this.womenOnly = womenOnly;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public CenterBuilder adjacentRegionClassification(final String adjacentRegionClassification) {
|
||||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public CenterBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||||
this.availableStartDate = availableStartDate;
|
this.availableStartDate = availableStartDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public CenterBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||||
this.availableEndDate = availableEndDate;
|
this.availableEndDate = availableEndDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public CenterBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||||
this.unavailableDates = unavailableDates;
|
this.unavailableDates = unavailableDates;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static CenterBuilder builder() {
|
public Center build() {
|
||||||
return new CenterBuilder();
|
return new Center(this.id, this.municipalityId, this.womenOnly,
|
||||||
}
|
this.adjacentRegionClassification, this.availableStartDate, this.availableEndDate,
|
||||||
|
this.unavailableDates);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getId() {
|
public String toString() {
|
||||||
return this.id;
|
String var10000 = this.id;
|
||||||
}
|
return "Center.CenterBuilder(id=" + var10000 + ", municipalityId=" + this.municipalityId
|
||||||
|
+ ", womenOnly=" + this.womenOnly + ", adjacentRegionClassification="
|
||||||
@Generated
|
+ this.adjacentRegionClassification + ", availableStartDate=" + String.valueOf(
|
||||||
public String getMunicipalityId() {
|
this.availableStartDate) + ", availableEndDate=" + String.valueOf(this.availableEndDate)
|
||||||
return this.municipalityId;
|
+ ", unavailableDates=" + String.valueOf(this.unavailableDates) + ")";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@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) + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,61 +3,66 @@ package com.kri.p6.ncrc.pairing.model;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class CenterAdjacentRegion {
|
public class CenterAdjacentRegion {
|
||||||
private final String dispatchRegion;
|
|
||||||
private final String adjacentRegionClassification;
|
|
||||||
|
|
||||||
@Generated
|
private final String dispatchRegion;
|
||||||
CenterAdjacentRegion(final String dispatchRegion, final String adjacentRegionClassification) {
|
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;
|
this.dispatchRegion = dispatchRegion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public CenterAdjacentRegionBuilder adjacentRegionClassification(
|
||||||
|
final String adjacentRegionClassification) {
|
||||||
this.adjacentRegionClassification = adjacentRegionClassification;
|
this.adjacentRegionClassification = adjacentRegionClassification;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static CenterAdjacentRegionBuilder builder() {
|
public CenterAdjacentRegion build() {
|
||||||
return new CenterAdjacentRegionBuilder();
|
return new CenterAdjacentRegion(this.dispatchRegion, this.adjacentRegionClassification);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getDispatchRegion() {
|
public String toString() {
|
||||||
return this.dispatchRegion;
|
return "CenterAdjacentRegion.CenterAdjacentRegionBuilder(dispatchRegion="
|
||||||
}
|
+ this.dispatchRegion + ", adjacentRegionClassification="
|
||||||
|
+ this.adjacentRegionClassification + ")";
|
||||||
@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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,121 +3,133 @@ package com.kri.p6.ncrc.pairing.model;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class DispatchRegionCandidate {
|
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
|
private final String fieldMemberId;
|
||||||
DispatchRegionCandidate(final String fieldMemberId, final String externalMemberId, final String dispatchRegion, final int preferencePriority, final int fieldMemberPreferenceRank, final int externalMemberPreferenceRank) {
|
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;
|
this.fieldMemberId = fieldMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public DispatchRegionCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||||
this.externalMemberId = externalMemberId;
|
this.externalMemberId = externalMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public DispatchRegionCandidateBuilder dispatchRegion(final String dispatchRegion) {
|
||||||
this.dispatchRegion = dispatchRegion;
|
this.dispatchRegion = dispatchRegion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public DispatchRegionCandidateBuilder preferencePriority(final int preferencePriority) {
|
||||||
this.preferencePriority = preferencePriority;
|
this.preferencePriority = preferencePriority;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public DispatchRegionCandidateBuilder fieldMemberPreferenceRank(
|
||||||
|
final int fieldMemberPreferenceRank) {
|
||||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public DispatchRegionCandidateBuilder externalMemberPreferenceRank(
|
||||||
|
final int externalMemberPreferenceRank) {
|
||||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static DispatchRegionCandidateBuilder builder() {
|
public DispatchRegionCandidate build() {
|
||||||
return new DispatchRegionCandidateBuilder();
|
return new DispatchRegionCandidate(this.fieldMemberId, this.externalMemberId,
|
||||||
}
|
this.dispatchRegion, this.preferencePriority, this.fieldMemberPreferenceRank,
|
||||||
|
this.externalMemberPreferenceRank);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getFieldMemberId() {
|
public String toString() {
|
||||||
return this.fieldMemberId;
|
return "DispatchRegionCandidate.DispatchRegionCandidateBuilder(fieldMemberId="
|
||||||
}
|
+ this.fieldMemberId + ", externalMemberId=" + this.externalMemberId + ", dispatchRegion="
|
||||||
|
+ this.dispatchRegion + ", preferencePriority=" + this.preferencePriority
|
||||||
@Generated
|
+ ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank
|
||||||
public String getExternalMemberId() {
|
+ ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank + ")";
|
||||||
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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,197 +9,212 @@ import java.util.Set;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class Member {
|
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
|
private final String id;
|
||||||
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 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;
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder gender(final Gender gender) {
|
||||||
this.gender = gender;
|
this.gender = gender;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder experienceType(final ExperienceType experienceType) {
|
||||||
this.experienceType = experienceType;
|
this.experienceType = experienceType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder role(final MemberRole role) {
|
||||||
this.role = role;
|
this.role = role;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||||
this.availableStartDate = availableStartDate;
|
this.availableStartDate = availableStartDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||||
this.availableEndDate = availableEndDate;
|
this.availableEndDate = availableEndDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||||
this.unavailableDates = unavailableDates;
|
this.unavailableDates = unavailableDates;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder activityRegion(final String activityRegion) {
|
||||||
this.activityRegion = activityRegion;
|
this.activityRegion = activityRegion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder historyCenterIds(final Set<String> historyCenterIds) {
|
||||||
this.historyCenterIds = historyCenterIds;
|
this.historyCenterIds = historyCenterIds;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder residenceCode(final String residenceCode) {
|
||||||
this.residenceCode = residenceCode;
|
this.residenceCode = residenceCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberBuilder preferenceRegions(final List<String> preferenceRegions) {
|
||||||
this.preferenceRegions = preferenceRegions;
|
this.preferenceRegions = preferenceRegions;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static MemberBuilder builder() {
|
public Member build() {
|
||||||
return new MemberBuilder();
|
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
|
@Generated
|
||||||
public String getId() {
|
public String toString() {
|
||||||
return this.id;
|
String var10000 = this.id;
|
||||||
}
|
return "Member.MemberBuilder(id=" + var10000 + ", gender=" + String.valueOf(this.gender)
|
||||||
|
+ ", experienceType=" + String.valueOf(this.experienceType) + ", role=" + String.valueOf(
|
||||||
@Generated
|
this.role) + ", availableStartDate=" + String.valueOf(this.availableStartDate)
|
||||||
public Gender getGender() {
|
+ ", availableEndDate=" + String.valueOf(this.availableEndDate) + ", unavailableDates="
|
||||||
return this.gender;
|
+ String.valueOf(this.unavailableDates) + ", activityRegion=" + this.activityRegion
|
||||||
}
|
+ ", historyCenterIds=" + String.valueOf(this.historyCenterIds) + ", residenceCode="
|
||||||
|
+ this.residenceCode + ", preferenceRegions=" + String.valueOf(this.preferenceRegions)
|
||||||
@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) + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,121 +3,128 @@ package com.kri.p6.ncrc.pairing.model;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class MemberRegionCode {
|
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
|
private final String sido;
|
||||||
MemberRegionCode(final String sido, final String sigungu, final String regionCode, final String detailRegionCode, final String detailAreaCode, final String fullRegionCode) {
|
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;
|
this.sido = sido;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberRegionCodeBuilder sigungu(final String sigungu) {
|
||||||
this.sigungu = sigungu;
|
this.sigungu = sigungu;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberRegionCodeBuilder regionCode(final String regionCode) {
|
||||||
this.regionCode = regionCode;
|
this.regionCode = regionCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberRegionCodeBuilder detailRegionCode(final String detailRegionCode) {
|
||||||
this.detailRegionCode = detailRegionCode;
|
this.detailRegionCode = detailRegionCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberRegionCodeBuilder detailAreaCode(final String detailAreaCode) {
|
||||||
this.detailAreaCode = detailAreaCode;
|
this.detailAreaCode = detailAreaCode;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MemberRegionCodeBuilder fullRegionCode(final String fullRegionCode) {
|
||||||
this.fullRegionCode = fullRegionCode;
|
this.fullRegionCode = fullRegionCode;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static MemberRegionCodeBuilder builder() {
|
public MemberRegionCode build() {
|
||||||
return new MemberRegionCodeBuilder();
|
return new MemberRegionCode(this.sido, this.sigungu, this.regionCode, this.detailRegionCode,
|
||||||
}
|
this.detailAreaCode, this.fullRegionCode);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getSido() {
|
public String toString() {
|
||||||
return this.sido;
|
return "MemberRegionCode.MemberRegionCodeBuilder(sido=" + this.sido + ", sigungu="
|
||||||
}
|
+ this.sigungu + ", regionCode=" + this.regionCode + ", detailRegionCode="
|
||||||
|
+ this.detailRegionCode + ", detailAreaCode=" + this.detailAreaCode + ", fullRegionCode="
|
||||||
@Generated
|
+ this.fullRegionCode + ")";
|
||||||
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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,92 +5,99 @@ import java.util.Set;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class Municipality {
|
public class Municipality {
|
||||||
private final String id;
|
|
||||||
private final LocalDate availableStartDate;
|
|
||||||
private final LocalDate availableEndDate;
|
|
||||||
private final Set<LocalDate> unavailableDates;
|
|
||||||
|
|
||||||
@Generated
|
private final String id;
|
||||||
Municipality(final String id, final LocalDate availableStartDate, final LocalDate availableEndDate, final Set<LocalDate> unavailableDates) {
|
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;
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MunicipalityBuilder availableStartDate(final LocalDate availableStartDate) {
|
||||||
this.availableStartDate = availableStartDate;
|
this.availableStartDate = availableStartDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MunicipalityBuilder availableEndDate(final LocalDate availableEndDate) {
|
||||||
this.availableEndDate = availableEndDate;
|
this.availableEndDate = availableEndDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public MunicipalityBuilder unavailableDates(final Set<LocalDate> unavailableDates) {
|
||||||
this.unavailableDates = unavailableDates;
|
this.unavailableDates = unavailableDates;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static MunicipalityBuilder builder() {
|
public Municipality build() {
|
||||||
return new MunicipalityBuilder();
|
return new Municipality(this.id, this.availableStartDate, this.availableEndDate,
|
||||||
}
|
this.unavailableDates);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getId() {
|
public String toString() {
|
||||||
return this.id;
|
String var10000 = this.id;
|
||||||
}
|
return "Municipality.MunicipalityBuilder(id=" + var10000 + ", availableStartDate="
|
||||||
|
+ String.valueOf(this.availableStartDate) + ", availableEndDate=" + String.valueOf(
|
||||||
@Generated
|
this.availableEndDate) + ", unavailableDates=" + String.valueOf(this.unavailableDates)
|
||||||
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) + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,76 +3,81 @@ package com.kri.p6.ncrc.pairing.model;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PairCandidate {
|
public class PairCandidate {
|
||||||
private final String fieldMemberId;
|
|
||||||
private final String externalMemberId;
|
|
||||||
private final int residenceMatchScore;
|
|
||||||
|
|
||||||
@Generated
|
private final String fieldMemberId;
|
||||||
PairCandidate(final String fieldMemberId, final String externalMemberId, final int residenceMatchScore) {
|
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;
|
this.fieldMemberId = fieldMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairCandidateBuilder externalMemberId(final String externalMemberId) {
|
||||||
this.externalMemberId = externalMemberId;
|
this.externalMemberId = externalMemberId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairCandidateBuilder residenceMatchScore(final int residenceMatchScore) {
|
||||||
this.residenceMatchScore = residenceMatchScore;
|
this.residenceMatchScore = residenceMatchScore;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static PairCandidateBuilder builder() {
|
public PairCandidate build() {
|
||||||
return new PairCandidateBuilder();
|
return new PairCandidate(this.fieldMemberId, this.externalMemberId, this.residenceMatchScore);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public String getFieldMemberId() {
|
public String toString() {
|
||||||
return this.fieldMemberId;
|
return "PairCandidate.PairCandidateBuilder(fieldMemberId=" + this.fieldMemberId
|
||||||
}
|
+ ", externalMemberId=" + this.externalMemberId + ", residenceMatchScore="
|
||||||
|
+ this.residenceMatchScore + ")";
|
||||||
@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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,92 +6,104 @@ import java.util.Set;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PairingCandidates {
|
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
|
private final List<PairCandidate> pairCandidates;
|
||||||
PairingCandidates(final List<PairCandidate> pairCandidates, final List<DispatchRegionCandidate> dispatchRegionCandidates, final List<AssignmentCandidate> assignmentCandidates, final Map<String, Set<String>> unassignedCenterReasons) {
|
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;
|
this.pairCandidates = pairCandidates;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingCandidatesBuilder dispatchRegionCandidates(
|
||||||
|
final List<DispatchRegionCandidate> dispatchRegionCandidates) {
|
||||||
this.dispatchRegionCandidates = dispatchRegionCandidates;
|
this.dispatchRegionCandidates = dispatchRegionCandidates;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingCandidatesBuilder assignmentCandidates(
|
||||||
|
final List<AssignmentCandidate> assignmentCandidates) {
|
||||||
this.assignmentCandidates = assignmentCandidates;
|
this.assignmentCandidates = assignmentCandidates;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingCandidatesBuilder unassignedCenterReasons(
|
||||||
|
final Map<String, Set<String>> unassignedCenterReasons) {
|
||||||
this.unassignedCenterReasons = unassignedCenterReasons;
|
this.unassignedCenterReasons = unassignedCenterReasons;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static PairingCandidatesBuilder builder() {
|
public PairingCandidates build() {
|
||||||
return new PairingCandidatesBuilder();
|
return new PairingCandidates(this.pairCandidates, this.dispatchRegionCandidates,
|
||||||
}
|
this.assignmentCandidates, this.unassignedCenterReasons);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public List<PairCandidate> getPairCandidates() {
|
public String toString() {
|
||||||
return this.pairCandidates;
|
String var10000 = String.valueOf(this.pairCandidates);
|
||||||
}
|
return "PairingCandidates.PairingCandidatesBuilder(pairCandidates=" + var10000
|
||||||
|
+ ", dispatchRegionCandidates=" + String.valueOf(this.dispatchRegionCandidates)
|
||||||
@Generated
|
+ ", assignmentCandidates=" + String.valueOf(this.assignmentCandidates)
|
||||||
public List<DispatchRegionCandidate> getDispatchRegionCandidates() {
|
+ ", unassignedCenterReasons=" + String.valueOf(this.unassignedCenterReasons) + ")";
|
||||||
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) + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,137 +6,152 @@ import java.util.Set;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PairingData {
|
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
|
private final List<Member> members;
|
||||||
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<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;
|
this.members = members;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingDataBuilder municipalities(final List<Municipality> municipalities) {
|
||||||
this.municipalities = municipalities;
|
this.municipalities = municipalities;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingDataBuilder centers(final List<Center> centers) {
|
||||||
this.centers = centers;
|
this.centers = centers;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingDataBuilder memberRegionCodes(final List<MemberRegionCode> memberRegionCodes) {
|
||||||
this.memberRegionCodes = memberRegionCodes;
|
this.memberRegionCodes = memberRegionCodes;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingDataBuilder centerAdjacentRegions(
|
||||||
|
final List<CenterAdjacentRegion> centerAdjacentRegions) {
|
||||||
this.centerAdjacentRegions = centerAdjacentRegions;
|
this.centerAdjacentRegions = centerAdjacentRegions;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingDataBuilder preferenceMatchRules(
|
||||||
|
final List<PreferenceMatchRule> preferenceMatchRules) {
|
||||||
this.preferenceMatchRules = preferenceMatchRules;
|
this.preferenceMatchRules = preferenceMatchRules;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingDataBuilder commonUnavailableDates(final Set<LocalDate> commonUnavailableDates) {
|
||||||
this.commonUnavailableDates = commonUnavailableDates;
|
this.commonUnavailableDates = commonUnavailableDates;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static PairingDataBuilder builder() {
|
public PairingData build() {
|
||||||
return new PairingDataBuilder();
|
return new PairingData(this.members, this.municipalities, this.centers,
|
||||||
}
|
this.memberRegionCodes, this.centerAdjacentRegions, this.preferenceMatchRules,
|
||||||
|
this.commonUnavailableDates);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public List<Member> getMembers() {
|
public String toString() {
|
||||||
return this.members;
|
String var10000 = String.valueOf(this.members);
|
||||||
}
|
return "PairingData.PairingDataBuilder(members=" + var10000 + ", municipalities="
|
||||||
|
+ String.valueOf(this.municipalities) + ", centers=" + String.valueOf(this.centers)
|
||||||
@Generated
|
+ ", memberRegionCodes=" + String.valueOf(this.memberRegionCodes)
|
||||||
public List<Municipality> getMunicipalities() {
|
+ ", centerAdjacentRegions=" + String.valueOf(this.centerAdjacentRegions)
|
||||||
return this.municipalities;
|
+ ", preferenceMatchRules=" + String.valueOf(this.preferenceMatchRules)
|
||||||
}
|
+ ", commonUnavailableDates=" + String.valueOf(this.commonUnavailableDates) + ")";
|
||||||
|
}
|
||||||
@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) + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,152 +12,169 @@ import java.util.List;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PairingResult {
|
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
|
private final List<AssignmentResultExcelDto> assignments;
|
||||||
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<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;
|
this.assignments = assignments;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingResultBuilder unassignedCenters(
|
||||||
|
final List<UnassignedCenterExcelDto> unassignedCenters) {
|
||||||
this.unassignedCenters = unassignedCenters;
|
this.unassignedCenters = unassignedCenters;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingResultBuilder unusedMembers(final List<UnusedMemberExcelDto> unusedMembers) {
|
||||||
this.unusedMembers = unusedMembers;
|
this.unusedMembers = unusedMembers;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingResultBuilder summaries(final List<PairingSummaryExcelDto> summaries) {
|
||||||
this.summaries = summaries;
|
this.summaries = summaries;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingResultBuilder abPairs(final List<ABPairExcelDto> abPairs) {
|
||||||
this.abPairs = abPairs;
|
this.abPairs = abPairs;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingResultBuilder candidateSummaries(
|
||||||
|
final List<CandidateSummaryExcelDto> candidateSummaries) {
|
||||||
this.candidateSummaries = candidateSummaries;
|
this.candidateSummaries = candidateSummaries;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingResultBuilder validationErrors(
|
||||||
|
final List<ValidationErrorExcelDto> validationErrors) {
|
||||||
this.validationErrors = validationErrors;
|
this.validationErrors = validationErrors;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PairingResultBuilder ruleViolations(final List<RuleViolationExcelDto> ruleViolations) {
|
||||||
this.ruleViolations = ruleViolations;
|
this.ruleViolations = ruleViolations;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static PairingResultBuilder builder() {
|
public PairingResult build() {
|
||||||
return new PairingResultBuilder();
|
return new PairingResult(this.assignments, this.unassignedCenters, this.unusedMembers,
|
||||||
}
|
this.summaries, this.abPairs, this.candidateSummaries, this.validationErrors,
|
||||||
|
this.ruleViolations);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public List<AssignmentResultExcelDto> getAssignments() {
|
public String toString() {
|
||||||
return this.assignments;
|
String var10000 = String.valueOf(this.assignments);
|
||||||
}
|
return "PairingResult.PairingResultBuilder(assignments=" + var10000 + ", unassignedCenters="
|
||||||
|
+ String.valueOf(this.unassignedCenters) + ", unusedMembers=" + String.valueOf(
|
||||||
@Generated
|
this.unusedMembers) + ", summaries=" + String.valueOf(this.summaries) + ", abPairs="
|
||||||
public List<UnassignedCenterExcelDto> getUnassignedCenters() {
|
+ String.valueOf(this.abPairs) + ", candidateSummaries=" + String.valueOf(
|
||||||
return this.unassignedCenters;
|
this.candidateSummaries) + ", validationErrors=" + String.valueOf(this.validationErrors)
|
||||||
}
|
+ ", ruleViolations=" + String.valueOf(this.ruleViolations) + ")";
|
||||||
|
}
|
||||||
@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) + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,76 +3,84 @@ package com.kri.p6.ncrc.pairing.model;
|
|||||||
import lombok.Generated;
|
import lombok.Generated;
|
||||||
|
|
||||||
public class PreferenceMatchRule {
|
public class PreferenceMatchRule {
|
||||||
private final int priority;
|
|
||||||
private final int fieldMemberPreferenceRank;
|
|
||||||
private final int externalMemberPreferenceRank;
|
|
||||||
|
|
||||||
@Generated
|
private final int priority;
|
||||||
PreferenceMatchRule(final int priority, final int fieldMemberPreferenceRank, final int externalMemberPreferenceRank) {
|
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;
|
this.priority = priority;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PreferenceMatchRuleBuilder fieldMemberPreferenceRank(
|
||||||
|
final int fieldMemberPreferenceRank) {
|
||||||
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
this.fieldMemberPreferenceRank = fieldMemberPreferenceRank;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Generated
|
||||||
|
public PreferenceMatchRuleBuilder externalMemberPreferenceRank(
|
||||||
|
final int externalMemberPreferenceRank) {
|
||||||
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
this.externalMemberPreferenceRank = externalMemberPreferenceRank;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public static PreferenceMatchRuleBuilder builder() {
|
public PreferenceMatchRule build() {
|
||||||
return new PreferenceMatchRuleBuilder();
|
return new PreferenceMatchRule(this.priority, this.fieldMemberPreferenceRank,
|
||||||
}
|
this.externalMemberPreferenceRank);
|
||||||
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public int getPriority() {
|
public String toString() {
|
||||||
return this.priority;
|
return "PreferenceMatchRule.PreferenceMatchRuleBuilder(priority=" + this.priority
|
||||||
}
|
+ ", fieldMemberPreferenceRank=" + this.fieldMemberPreferenceRank
|
||||||
|
+ ", externalMemberPreferenceRank=" + this.externalMemberPreferenceRank + ")";
|
||||||
@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 + ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
package com.kri.p6.ncrc.pairing.service;
|
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.config.PairingProperties;
|
||||||
import com.kri.p6.ncrc.pairing.model.AssignmentCandidate;
|
import com.kri.p6.ncrc.pairing.model.AssignmentCandidate;
|
||||||
import com.kri.p6.ncrc.pairing.model.Center;
|
import com.kri.p6.ncrc.pairing.model.Center;
|
||||||
import com.kri.p6.ncrc.pairing.model.CenterAdjacentRegion;
|
import com.kri.p6.ncrc.pairing.model.CenterAdjacentRegion;
|
||||||
import com.kri.p6.ncrc.pairing.model.DispatchRegionCandidate;
|
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.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.Municipality;
|
||||||
import com.kri.p6.ncrc.pairing.model.PairCandidate;
|
import com.kri.p6.ncrc.pairing.model.PairCandidate;
|
||||||
import com.kri.p6.ncrc.pairing.model.PairingCandidates;
|
import com.kri.p6.ncrc.pairing.model.PairingCandidates;
|
||||||
@@ -30,226 +30,294 @@ import org.springframework.stereotype.Service;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class PairingCandidateService {
|
public class PairingCandidateService {
|
||||||
private final PairingProperties pairingProperties;
|
|
||||||
|
|
||||||
public PairingCandidates generate(PairingData data) {
|
private final PairingProperties pairingProperties;
|
||||||
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 List<PairCandidate> createPairCandidates(List<Member> members) {
|
public PairingCandidates generate(PairingData data) {
|
||||||
List<Member> fieldMembers = members.stream().filter((member) -> member.getRole() == MemberRole.FIELD).toList();
|
List<PairCandidate> pairCandidates = this.createPairCandidates(data.getMembers());
|
||||||
List<Member> externalMembers = members.stream().filter((member) -> member.getRole() == MemberRole.EXTERNAL).toList();
|
List<DispatchRegionCandidate> dispatchRegionCandidates = this.createDispatchRegionCandidates(
|
||||||
List<PairCandidate> candidates = new ArrayList();
|
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) {
|
private List<PairCandidate> createPairCandidates(List<Member> members) {
|
||||||
for(Member externalMember : externalMembers) {
|
List<Member> fieldMembers = members.stream()
|
||||||
if (!this.isNewNewPair(fieldMember, externalMember) && this.hasDateOverlap(fieldMember, externalMember)) {
|
.filter((member) -> member.getRole() == MemberRole.FIELD).toList();
|
||||||
candidates.add(PairCandidate.builder().fieldMemberId(fieldMember.getId()).externalMemberId(externalMember.getId()).residenceMatchScore(this.calculateResidenceMatchScore(fieldMember, externalMember)).build());
|
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) {
|
private List<DispatchRegionCandidate> createDispatchRegionCandidates(PairingData data,
|
||||||
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
List<PairCandidate> pairCandidates) {
|
||||||
Set<String> dispatchRegions = (Set)data.getCenterAdjacentRegions().stream().map(CenterAdjacentRegion::getDispatchRegion).collect(Collectors.toSet());
|
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
||||||
List<DispatchRegionCandidate> candidates = new ArrayList();
|
Set<String> dispatchRegions = (Set) data.getCenterAdjacentRegions().stream()
|
||||||
|
.map(CenterAdjacentRegion::getDispatchRegion).collect(Collectors.toSet());
|
||||||
|
List<DispatchRegionCandidate> candidates = new ArrayList();
|
||||||
|
|
||||||
for(PairCandidate pairCandidate : pairCandidates) {
|
for (PairCandidate pairCandidate : pairCandidates) {
|
||||||
Member fieldMember = (Member)memberMap.get(pairCandidate.getFieldMemberId());
|
Member fieldMember = (Member) memberMap.get(pairCandidate.getFieldMemberId());
|
||||||
Member externalMember = (Member)memberMap.get(pairCandidate.getExternalMemberId());
|
Member externalMember = (Member) memberMap.get(pairCandidate.getExternalMemberId());
|
||||||
|
|
||||||
for(String dispatchRegion : dispatchRegions) {
|
for (String dispatchRegion : dispatchRegions) {
|
||||||
if (!this.isConflictRegion(fieldMember, externalMember, dispatchRegion)) {
|
if (!this.isConflictRegion(fieldMember, externalMember, dispatchRegion)) {
|
||||||
int fieldRank = this.findPreferenceRank(fieldMember, dispatchRegion);
|
int fieldRank = this.findPreferenceRank(fieldMember, dispatchRegion);
|
||||||
int externalRank = this.findPreferenceRank(externalMember, dispatchRegion);
|
int externalRank = this.findPreferenceRank(externalMember, dispatchRegion);
|
||||||
Optional<PreferenceMatchRule> matchRule = this.findPreferenceMatchRule(data.getPreferenceMatchRules(), fieldRank, externalRank);
|
Optional<PreferenceMatchRule> matchRule = this.findPreferenceMatchRule(
|
||||||
if (!matchRule.isEmpty()) {
|
data.getPreferenceMatchRules(), fieldRank, externalRank);
|
||||||
candidates.add(DispatchRegionCandidate.builder().fieldMemberId(fieldMember.getId()).externalMemberId(externalMember.getId()).dispatchRegion(dispatchRegion).preferencePriority(((PreferenceMatchRule)matchRule.get()).getPriority()).fieldMemberPreferenceRank(fieldRank).externalMemberPreferenceRank(externalRank).build());
|
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) {
|
private List<AssignmentCandidate> createAssignmentCandidates(PairingData data,
|
||||||
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
List<PairCandidate> pairCandidates, List<DispatchRegionCandidate> dispatchRegionCandidates,
|
||||||
Map<String, Municipality> municipalityMap = (Map)data.getMunicipalities().stream().collect(Collectors.toMap(Municipality::getId, Function.identity(), (left, right) -> left));
|
Map<String, Set<String>> unassignedCenterReasons) {
|
||||||
Map<String, PairCandidate> pairMap = (Map)pairCandidates.stream().collect(Collectors.toMap(this::pairKey, Function.identity(), (left, right) -> left));
|
Map<String, Member> memberMap = this.toMemberMap(data.getMembers());
|
||||||
Map<String, Set<String>> adjacentClassificationsByDispatchRegion = (Map)data.getCenterAdjacentRegions().stream().collect(Collectors.groupingBy(CenterAdjacentRegion::getDispatchRegion, Collectors.mapping(CenterAdjacentRegion::getAdjacentRegionClassification, Collectors.toSet())));
|
Map<String, Municipality> municipalityMap = (Map) data.getMunicipalities().stream()
|
||||||
List<AssignmentCandidate> candidates = new ArrayList();
|
.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) {
|
for (DispatchRegionCandidate dispatchCandidate : dispatchRegionCandidates) {
|
||||||
Member fieldMember = (Member)memberMap.get(dispatchCandidate.getFieldMemberId());
|
Member fieldMember = (Member) memberMap.get(dispatchCandidate.getFieldMemberId());
|
||||||
Member externalMember = (Member)memberMap.get(dispatchCandidate.getExternalMemberId());
|
Member externalMember = (Member) memberMap.get(dispatchCandidate.getExternalMemberId());
|
||||||
PairCandidate pairCandidate = (PairCandidate)pairMap.get(this.pairKey(dispatchCandidate.getFieldMemberId(), dispatchCandidate.getExternalMemberId()));
|
PairCandidate pairCandidate = (PairCandidate) pairMap.get(
|
||||||
Set<String> adjacentClassifications = (Set)adjacentClassificationsByDispatchRegion.getOrDefault(dispatchCandidate.getDispatchRegion(), Set.of());
|
this.pairKey(dispatchCandidate.getFieldMemberId(),
|
||||||
|
dispatchCandidate.getExternalMemberId()));
|
||||||
|
Set<String> adjacentClassifications = (Set) adjacentClassificationsByDispatchRegion.getOrDefault(
|
||||||
|
dispatchCandidate.getDispatchRegion(), Set.of());
|
||||||
|
|
||||||
for(Center center : data.getCenters()) {
|
for (Center center : data.getCenters()) {
|
||||||
if (!adjacentClassifications.contains(center.getAdjacentRegionClassification())) {
|
if (!adjacentClassifications.contains(center.getAdjacentRegionClassification())) {
|
||||||
this.addReason(unassignedCenterReasons, center.getId(), "파견 권역과 센터 인접지역 분류 불일치");
|
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 {
|
} else {
|
||||||
Municipality municipality = (Municipality)municipalityMap.get(center.getMunicipalityId());
|
candidates.add(AssignmentCandidate.builder().fieldMemberId(fieldMember.getId())
|
||||||
List<String> centerReasons = this.findCenterHardRuleReasons(fieldMember, externalMember, center);
|
.externalMemberId(externalMember.getId()).centerId(center.getId())
|
||||||
if (!centerReasons.isEmpty()) {
|
.municipalityId(center.getMunicipalityId()).date(firstAssignableDate)
|
||||||
centerReasons.forEach((reason) -> this.addReason(unassignedCenterReasons, center.getId(), reason));
|
.dispatchRegion(dispatchCandidate.getDispatchRegion())
|
||||||
} else {
|
.adjacentRegionClassification(center.getAdjacentRegionClassification())
|
||||||
LocalDate firstAssignableDate = this.findFirstAssignableDate(fieldMember, externalMember, municipality, center, this.commonUnavailableDates(data));
|
.preferencePriority(dispatchCandidate.getPreferencePriority())
|
||||||
if (firstAssignableDate == null) {
|
.fieldMemberPreferenceRank(dispatchCandidate.getFieldMemberPreferenceRank())
|
||||||
this.addReason(unassignedCenterReasons, center.getId(), "위원/지자체/센터 일정 또는 국공휴일 조건 불일치");
|
.externalMemberPreferenceRank(dispatchCandidate.getExternalMemberPreferenceRank())
|
||||||
} else {
|
.residenceMatchScore(
|
||||||
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());
|
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 -1;
|
||||||
return fieldMember.getExperienceType() == ExperienceType.NEW && externalMember.getExperienceType() == ExperienceType.NEW;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private boolean hasDateOverlap(Member fieldMember, Member externalMember) {
|
private Optional<PreferenceMatchRule> findPreferenceMatchRule(List<PreferenceMatchRule> rules,
|
||||||
LocalDate latestStart = this.max(fieldMember.getAvailableStartDate(), externalMember.getAvailableStartDate());
|
int fieldRank, int externalRank) {
|
||||||
LocalDate earliestEnd = this.min(fieldMember.getAvailableEndDate(), externalMember.getAvailableEndDate());
|
return fieldRank >= 0 && externalRank >= 0 ? rules.stream().filter(
|
||||||
return !latestStart.isAfter(earliestEnd);
|
(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) {
|
private boolean matchesPreferenceRank(int ruleRank, int memberRank) {
|
||||||
String fieldPrefix = this.prefix(fieldMember.getResidenceCode());
|
return ruleRank == this.ignoredPreferenceRank() || ruleRank == memberRank;
|
||||||
String externalPrefix = this.prefix(externalMember.getResidenceCode());
|
}
|
||||||
return fieldPrefix.equals(externalPrefix) ? 1 : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean isConflictRegion(Member fieldMember, Member externalMember, String dispatchRegion) {
|
private List<String> findCenterHardRuleReasons(Member fieldMember, Member externalMember,
|
||||||
return dispatchRegion.equals(fieldMember.getActivityRegion()) || dispatchRegion.equals(externalMember.getActivityRegion());
|
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) {
|
if (fieldMember.getHistoryCenterIds().contains(center.getId())
|
||||||
List<String> preferences = member.getPreferenceRegions();
|
|| externalMember.getHistoryCenterIds().contains(center.getId())) {
|
||||||
|
reasons.add("2023년 진행 센터 재배정 제외");
|
||||||
|
}
|
||||||
|
|
||||||
for(int i = 0; i < preferences.size(); ++i) {
|
return reasons;
|
||||||
String preference = (String)preferences.get(i);
|
}
|
||||||
if (dispatchRegion.equals(preference)) {
|
|
||||||
return i + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.anyRegionCode().equals(preference)) {
|
private LocalDate findFirstAssignableDate(Member fieldMember, Member externalMember,
|
||||||
return this.anywherePreferenceRank();
|
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) {
|
private boolean isAvailableOn(LocalDate date, Member fieldMember, Member externalMember,
|
||||||
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();
|
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) {
|
private Map<String, Set<String>> createInitialCenterReasonMap(PairingData data) {
|
||||||
return ruleRank == this.ignoredPreferenceRank() || ruleRank == memberRank;
|
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) {
|
private void addReason(Map<String, Set<String>> reasons, String centerId, String reason) {
|
||||||
List<String> reasons = new ArrayList();
|
((Set) reasons.computeIfAbsent(centerId, (key) -> new LinkedHashSet())).add(reason);
|
||||||
if (center.isWomenOnly() && (fieldMember.getGender() != Gender.FEMALE || externalMember.getGender() != Gender.FEMALE)) {
|
}
|
||||||
reasons.add("여성 전용 센터 조건 불충족");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fieldMember.getHistoryCenterIds().contains(center.getId()) || externalMember.getHistoryCenterIds().contains(center.getId())) {
|
private Set<LocalDate> commonUnavailableDates(PairingData data) {
|
||||||
reasons.add("2023년 진행 센터 재배정 제외");
|
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) {
|
private String pairKey(PairCandidate pairCandidate) {
|
||||||
LocalDate start = this.max(this.max(fieldMember.getAvailableStartDate(), externalMember.getAvailableStartDate()), this.max(municipality.getAvailableStartDate(), center.getAvailableStartDate()));
|
return this.pairKey(pairCandidate.getFieldMemberId(), pairCandidate.getExternalMemberId());
|
||||||
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 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) {
|
private String prefix(String value) {
|
||||||
return !fieldMember.getUnavailableDates().contains(date) && !externalMember.getUnavailableDates().contains(date) && !municipality.getUnavailableDates().contains(date) && !center.getUnavailableDates().contains(date) && !commonUnavailableDates.contains(date);
|
return value.substring(0, Math.min(this.residenceMatchPrefixLength(), value.length()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, Set<String>> createInitialCenterReasonMap(PairingData data) {
|
private String anyRegionCode() {
|
||||||
Map<String, Set<String>> reasons = new HashMap();
|
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||||
data.getCenters().forEach((center) -> reasons.put(center.getId(), new LinkedHashSet()));
|
}
|
||||||
return reasons;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addReason(Map<String, Set<String>> reasons, String centerId, String reason) {
|
private int anywherePreferenceRank() {
|
||||||
((Set)reasons.computeIfAbsent(centerId, (key) -> new LinkedHashSet())).add(reason);
|
return this.pairingProperties.getPreference().getAnywhereRank();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Set<LocalDate> commonUnavailableDates(PairingData data) {
|
private int ignoredPreferenceRank() {
|
||||||
return data.getCommonUnavailableDates() == null ? Set.of() : data.getCommonUnavailableDates();
|
return this.pairingProperties.getPreference().getIgnoredRank();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Map<String, Member> toMemberMap(List<Member> members) {
|
private int residenceMatchPrefixLength() {
|
||||||
return (Map)members.stream().collect(Collectors.toMap(Member::getId, Function.identity(), (left, right) -> left));
|
return this.pairingProperties.getCode().getResidenceMatchPrefixLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String pairKey(PairCandidate pairCandidate) {
|
private LocalDate max(LocalDate left, LocalDate right) {
|
||||||
return this.pairKey(pairCandidate.getFieldMemberId(), pairCandidate.getExternalMemberId());
|
return left.isAfter(right) ? left : right;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String pairKey(String fieldMemberId, String externalMemberId) {
|
private LocalDate min(LocalDate left, LocalDate right) {
|
||||||
return fieldMemberId + "|" + externalMemberId;
|
return left.isBefore(right) ? left : right;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String prefix(String value) {
|
@Generated
|
||||||
return value.substring(0, Math.min(this.residenceMatchPrefixLength(), value.length()));
|
public PairingCandidateService(final PairingProperties pairingProperties) {
|
||||||
}
|
this.pairingProperties = pairingProperties;
|
||||||
|
}
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,21 +3,21 @@ package com.kri.p6.ncrc.pairing.service;
|
|||||||
import com.kri.common.feature.excel.ExcelMapper;
|
import com.kri.common.feature.excel.ExcelMapper;
|
||||||
import com.kri.common.feature.web.BusinessException;
|
import com.kri.common.feature.web.BusinessException;
|
||||||
import com.kri.p6.ncrc.pairing.config.PairingProperties;
|
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.CenterAdjacentRegionExcelDto;
|
||||||
import com.kri.p6.ncrc.pairing.dto.excel.input.CenterExcelDto;
|
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.MemberExcelDto;
|
||||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MemberRegionCodeExcelDto;
|
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.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.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 com.kri.p6.ncrc.pairing.model.PairingResult;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -33,145 +33,173 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class PairingExcelService {
|
public class PairingExcelService {
|
||||||
private final PairingProperties pairingProperties;
|
|
||||||
|
|
||||||
public PairingWorkbookData read(MultipartFile file) {
|
private final PairingProperties pairingProperties;
|
||||||
if (file != null && !file.isEmpty()) {
|
|
||||||
try {
|
|
||||||
InputStream inputStream = file.getInputStream();
|
|
||||||
|
|
||||||
PairingWorkbookData var4;
|
public PairingWorkbookData read(MultipartFile file) {
|
||||||
try {
|
if (file != null && !file.isEmpty()) {
|
||||||
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) {
|
|
||||||
try {
|
try {
|
||||||
Workbook workbook = ExcelMapper.writeToWorkbook(result.getAssignments(), AssignmentResultExcelDto.class, "배정결과");
|
InputStream inputStream = file.getInputStream();
|
||||||
|
|
||||||
byte[] var4;
|
PairingWorkbookData var4;
|
||||||
try {
|
try {
|
||||||
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
Workbook workbook = WorkbookFactory.create(inputStream);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getUnassignedCenters(), UnassignedCenterExcelDto.class, "미배정센터", this.headerRowIndex());
|
var4 = PairingWorkbookData.builder()
|
||||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getUnusedMembers(), UnusedMemberExcelDto.class, "미사용위원", this.headerRowIndex());
|
.members(this.readSheet(workbook, MemberExcelDto.class, "위원정보"))
|
||||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getSummaries(), PairingSummaryExcelDto.class, "처리요약", this.headerRowIndex());
|
.municipalities(this.readSheet(workbook, MunicipalityExcelDto.class, "지자체 정보"))
|
||||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getAbPairs(), ABPairExcelDto.class, "AB페어목록", this.headerRowIndex());
|
.centers(this.readSheet(workbook, CenterExcelDto.class, "센터정보")).memberRegionCodes(
|
||||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getCandidateSummaries(), CandidateSummaryExcelDto.class, "후보요약", this.headerRowIndex());
|
this.readSheet(workbook, MemberRegionCodeExcelDto.class, "위원 지역 코드표"))
|
||||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getValidationErrors(), ValidationErrorExcelDto.class, "검증오류", this.headerRowIndex());
|
.centerAdjacentRegions(
|
||||||
ExcelMapper.appendSheetToWorkbook(workbook, result.getRuleViolations(), RuleViolationExcelDto.class, "규칙위반검사", this.headerRowIndex());
|
this.readSheet(workbook, CenterAdjacentRegionExcelDto.class, "센터 인접지역표"))
|
||||||
workbook.write(outputStream);
|
.preferenceMatchRules(
|
||||||
var4 = outputStream.toByteArray();
|
this.readSheet(workbook, PreferenceMatchExcelDto.class, "희망지역 매칭표")).build();
|
||||||
} catch (Throwable var8) {
|
} catch (Throwable var8) {
|
||||||
try {
|
|
||||||
outputStream.close();
|
|
||||||
} catch (Throwable var7) {
|
|
||||||
var8.addSuppressed(var7);
|
|
||||||
}
|
|
||||||
|
|
||||||
throw var8;
|
|
||||||
}
|
|
||||||
|
|
||||||
outputStream.close();
|
|
||||||
} catch (Throwable var9) {
|
|
||||||
if (workbook != null) {
|
if (workbook != null) {
|
||||||
try {
|
try {
|
||||||
workbook.close();
|
workbook.close();
|
||||||
} catch (Throwable var6) {
|
} catch (Throwable var7) {
|
||||||
var9.addSuppressed(var6);
|
var8.addSuppressed(var7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw var9;
|
throw var8;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (workbook != null) {
|
if (workbook != null) {
|
||||||
workbook.close();
|
workbook.close();
|
||||||
}
|
}
|
||||||
|
} catch (Throwable var9) {
|
||||||
|
if (inputStream != null) {
|
||||||
|
try {
|
||||||
|
inputStream.close();
|
||||||
|
} catch (Throwable var6) {
|
||||||
|
var9.addSuppressed(var6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return var4;
|
throw var9;
|
||||||
} catch (IOException e) {
|
}
|
||||||
throw BusinessException.badRequest("PAIRING_EXCEL_WRITE_FAILED", "결과 엑셀 파일을 생성하는 중 오류가 발생했습니다: " + e.getMessage());
|
|
||||||
|
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) {
|
public byte[] write(PairingResult result) {
|
||||||
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();
|
try {
|
||||||
return this.write(result);
|
Workbook workbook = ExcelMapper.writeToWorkbook(result.getAssignments(),
|
||||||
}
|
AssignmentResultExcelDto.class, "배정결과");
|
||||||
|
|
||||||
private <T> List<T> readSheet(Workbook workbook, Class<T> type, String sheetName) {
|
byte[] var4;
|
||||||
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 {
|
try {
|
||||||
field.setAccessible(true);
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
||||||
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
|
try {
|
||||||
public PairingExcelService(final PairingProperties pairingProperties) {
|
ExcelMapper.appendSheetToWorkbook(workbook, result.getUnassignedCenters(),
|
||||||
this.pairingProperties = pairingProperties;
|
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
|
@Service
|
||||||
public class PairingHolidayService {
|
public class PairingHolidayService {
|
||||||
private static final DateTimeFormatter DATAGO_DATE_FORMAT = DateTimeFormatter.ofPattern("yyyyMMdd");
|
|
||||||
private final DatagoHolidayCache datagoHolidayCache;
|
|
||||||
|
|
||||||
public PairingData applyHolidayUnavailableDates(PairingData data) {
|
private static final DateTimeFormatter DATAGO_DATE_FORMAT = DateTimeFormatter.ofPattern(
|
||||||
Set<String> years = this.collectYears(data);
|
"yyyyMMdd");
|
||||||
Set<LocalDate> holidays = this.datagoHolidayCache.getHolidays(years).stream().map(this::toHolidayDate).collect(Collectors.toSet());
|
private final DatagoHolidayCache datagoHolidayCache;
|
||||||
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 Set<String> collectYears(PairingData data) {
|
public PairingData applyHolidayUnavailableDates(PairingData data) {
|
||||||
Set<String> years = new HashSet();
|
Set<String> years = this.collectYears(data);
|
||||||
data.getMembers().forEach((member) -> this.addYears(years, member.getAvailableStartDate(), member.getAvailableEndDate()));
|
Set<LocalDate> holidays = this.datagoHolidayCache.getHolidays(years).stream()
|
||||||
data.getMunicipalities().forEach((municipality) -> this.addYears(years, municipality.getAvailableStartDate(), municipality.getAvailableEndDate()));
|
.map(this::toHolidayDate).collect(Collectors.toSet());
|
||||||
data.getCenters().forEach((center) -> this.addYears(years, center.getAvailableStartDate(), center.getAvailableEndDate()));
|
return PairingData.builder().members(data.getMembers()).municipalities(data.getMunicipalities())
|
||||||
return years;
|
.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) {
|
private Set<String> collectYears(PairingData data) {
|
||||||
for(int year = startDate.getYear(); year <= endDate.getYear(); ++year) {
|
Set<String> years = new HashSet();
|
||||||
years.add(String.valueOf(year));
|
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
|
private LocalDate toHolidayDate(HolidayDto holidayDto) {
|
||||||
public PairingHolidayService(final DatagoHolidayCache datagoHolidayCache) {
|
return LocalDate.parse(holidayDto.getHolidayDate(), DATAGO_DATE_FORMAT);
|
||||||
this.datagoHolidayCache = datagoHolidayCache;
|
}
|
||||||
}
|
|
||||||
|
@Generated
|
||||||
|
public PairingHolidayService(final DatagoHolidayCache datagoHolidayCache) {
|
||||||
|
this.datagoHolidayCache = datagoHolidayCache;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
package com.kri.p6.ncrc.pairing.service;
|
package com.kri.p6.ncrc.pairing.service;
|
||||||
|
|
||||||
import com.kri.common.feature.web.BusinessException;
|
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.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.CenterAdjacentRegionExcelDto;
|
||||||
import com.kri.p6.ncrc.pairing.dto.excel.input.CenterExcelDto;
|
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.MemberExcelDto;
|
||||||
import com.kri.p6.ncrc.pairing.dto.excel.input.MemberRegionCodeExcelDto;
|
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.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.input.PreferenceMatchExcelDto;
|
||||||
import com.kri.p6.ncrc.pairing.model.Center;
|
import com.kri.p6.ncrc.pairing.model.Center;
|
||||||
import com.kri.p6.ncrc.pairing.model.CenterAdjacentRegion;
|
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.Member;
|
||||||
import com.kri.p6.ncrc.pairing.model.MemberRegionCode;
|
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.Municipality;
|
||||||
import com.kri.p6.ncrc.pairing.model.PairingData;
|
import com.kri.p6.ncrc.pairing.model.PairingData;
|
||||||
import com.kri.p6.ncrc.pairing.model.PreferenceMatchRule;
|
import com.kri.p6.ncrc.pairing.model.PreferenceMatchRule;
|
||||||
@@ -32,174 +32,233 @@ import org.springframework.stereotype.Service;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class PairingNormalizeService {
|
public class PairingNormalizeService {
|
||||||
private final PairingProperties pairingProperties;
|
|
||||||
|
|
||||||
public PairingData normalize(PairingWorkbookData workbookData) {
|
private final PairingProperties pairingProperties;
|
||||||
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 Member toMember(MemberExcelDto row) {
|
public PairingData normalize(PairingWorkbookData workbookData) {
|
||||||
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();
|
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) {
|
private Member toMember(MemberExcelDto 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();
|
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) {
|
private Municipality toMunicipality(MunicipalityExcelDto 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();
|
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) {
|
private Center toCenter(CenterExcelDto row) {
|
||||||
String regionCode = this.normalizeCode(row.getRegionCode(), this.regionCodeLength(), "권역코드");
|
return Center.builder().id(this.required(row.getId(), "센터 id"))
|
||||||
String detailRegionCode = this.normalizeCode(row.getDetailRegionCode(), 1, "세부권역코드");
|
.municipalityId(this.required(row.getMunicipalityId(), "센터 지자체 id"))
|
||||||
String detailAreaCode = this.normalizeCode(row.getDetailAreaCode(), 2, "세부지역코드");
|
.womenOnly(this.parseBooleanFlag(row.getWomenOnly(), "센터 여성 위원만"))
|
||||||
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();
|
.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) {
|
private MemberRegionCode toMemberRegionCode(MemberRegionCodeExcelDto row) {
|
||||||
return CenterAdjacentRegion.builder().dispatchRegion(this.normalizeCode(row.getDispatchRegion(), this.regionCodeLength(), "센터 인접지역표 권역")).adjacentRegionClassification(this.required(row.getAdjacentRegionClassification(), "인접지역 분류")).build();
|
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) {
|
private CenterAdjacentRegion toCenterAdjacentRegion(CenterAdjacentRegionExcelDto row) {
|
||||||
return PreferenceMatchRule.builder().priority(this.parseInt(row.getPriority(), "매칭 순위")).fieldMemberPreferenceRank(this.parseInt(row.getFieldMemberPreferenceRank(), "현장위원 선호 순위")).externalMemberPreferenceRank(this.parseInt(row.getExternalMemberPreferenceRank(), "외부위원 선호 순위")).build();
|
return CenterAdjacentRegion.builder().dispatchRegion(
|
||||||
}
|
this.normalizeCode(row.getDispatchRegion(), this.regionCodeLength(), "센터 인접지역표 권역"))
|
||||||
|
.adjacentRegionClassification(
|
||||||
|
this.required(row.getAdjacentRegionClassification(), "인접지역 분류")).build();
|
||||||
|
}
|
||||||
|
|
||||||
private List<String> normalizePreferenceRegions(MemberExcelDto row) {
|
private PreferenceMatchRule toPreferenceMatchRule(PreferenceMatchExcelDto 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")));
|
return PreferenceMatchRule.builder().priority(this.parseInt(row.getPriority(), "매칭 순위"))
|
||||||
boolean anyRegionAppeared = false;
|
.fieldMemberPreferenceRank(this.parseInt(row.getFieldMemberPreferenceRank(), "현장위원 선호 순위"))
|
||||||
|
.externalMemberPreferenceRank(
|
||||||
|
this.parseInt(row.getExternalMemberPreferenceRank(), "외부위원 선호 순위")).build();
|
||||||
|
}
|
||||||
|
|
||||||
for(int i = 0; i < preferences.size(); ++i) {
|
private List<String> normalizePreferenceRegions(MemberExcelDto row) {
|
||||||
if (anyRegionAppeared) {
|
List<String> preferences = new ArrayList(Arrays.asList(
|
||||||
preferences.set(i, this.anyRegionCode());
|
this.normalizeCode(row.getPreferenceRegion1(), this.regionCodeLength(), "선호 지역1"),
|
||||||
} else if (this.anyRegionCode().equals(preferences.get(i))) {
|
this.normalizeCode(row.getPreferenceRegion2(), this.regionCodeLength(), "선호 지역2"),
|
||||||
anyRegionAppeared = true;
|
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) {
|
private Gender parseGender(String value) {
|
||||||
String cleaned = this.required(value, "성별");
|
String cleaned = this.required(value, "성별");
|
||||||
if ("여".equals(cleaned)) {
|
if ("여".equals(cleaned)) {
|
||||||
return Gender.FEMALE;
|
return Gender.FEMALE;
|
||||||
} else if ("남".equals(cleaned)) {
|
} else if ("남".equals(cleaned)) {
|
||||||
return Gender.MALE;
|
return Gender.MALE;
|
||||||
} else {
|
} else {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_GENDER", "성별 값이 올바르지 않습니다: " + value);
|
throw BusinessException.badRequest("PAIRING_INVALID_GENDER", "성별 값이 올바르지 않습니다: " + value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private ExperienceType parseExperienceType(String value) {
|
private ExperienceType parseExperienceType(String value) {
|
||||||
String cleaned = this.required(value, "경력여부");
|
String cleaned = this.required(value, "경력여부");
|
||||||
if ("경력".equals(cleaned)) {
|
if ("경력".equals(cleaned)) {
|
||||||
return ExperienceType.EXPERIENCED;
|
return ExperienceType.EXPERIENCED;
|
||||||
} else if ("신규".equals(cleaned)) {
|
} else if ("신규".equals(cleaned)) {
|
||||||
return ExperienceType.NEW;
|
return ExperienceType.NEW;
|
||||||
} else {
|
} else {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_EXPERIENCE", "경력여부 값이 올바르지 않습니다: " + value);
|
throw BusinessException.badRequest("PAIRING_INVALID_EXPERIENCE",
|
||||||
}
|
"경력여부 값이 올바르지 않습니다: " + value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private MemberRole parseMemberRole(String value) {
|
private MemberRole parseMemberRole(String value) {
|
||||||
String cleaned = this.required(value, "현장/외부 구분");
|
String cleaned = this.required(value, "현장/외부 구분");
|
||||||
if ("현장".equals(cleaned)) {
|
if ("현장".equals(cleaned)) {
|
||||||
return MemberRole.FIELD;
|
return MemberRole.FIELD;
|
||||||
} else if ("외부".equals(cleaned)) {
|
} else if ("외부".equals(cleaned)) {
|
||||||
return MemberRole.EXTERNAL;
|
return MemberRole.EXTERNAL;
|
||||||
} else {
|
} else {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_MEMBER_ROLE", "현장/외부 구분 값이 올바르지 않습니다: " + value);
|
throw BusinessException.badRequest("PAIRING_INVALID_MEMBER_ROLE",
|
||||||
}
|
"현장/외부 구분 값이 올바르지 않습니다: " + value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private boolean parseBooleanFlag(String value, String fieldName) {
|
private boolean parseBooleanFlag(String value, String fieldName) {
|
||||||
String cleaned = this.required(value, fieldName);
|
String cleaned = this.required(value, fieldName);
|
||||||
if ("1".equals(cleaned)) {
|
if ("1".equals(cleaned)) {
|
||||||
return true;
|
return true;
|
||||||
} else if ("0".equals(cleaned)) {
|
} else if ("0".equals(cleaned)) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_BOOLEAN_FLAG", fieldName + " 값은 0 또는 1이어야 합니다: " + value);
|
throw BusinessException.badRequest("PAIRING_INVALID_BOOLEAN_FLAG",
|
||||||
}
|
fieldName + " 값은 0 또는 1이어야 합니다: " + value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private LocalDate parseDate(String value, String fieldName) {
|
private LocalDate parseDate(String value, String fieldName) {
|
||||||
String cleaned = this.required(value, fieldName);
|
String cleaned = this.required(value, fieldName);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return LocalDate.parse(cleaned);
|
return LocalDate.parse(cleaned);
|
||||||
} catch (DateTimeParseException var5) {
|
} catch (DateTimeParseException var5) {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_DATE", fieldName + " 날짜 형식이 올바르지 않습니다: " + value);
|
throw BusinessException.badRequest("PAIRING_INVALID_DATE",
|
||||||
}
|
fieldName + " 날짜 형식이 올바르지 않습니다: " + value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private Set<LocalDate> parseDateSet(String value, String fieldName) {
|
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));
|
return (Set) this.parseCsv(value).stream().map((date) -> this.parseDate(date, fieldName))
|
||||||
}
|
.collect(Collectors.toCollection(LinkedHashSet::new));
|
||||||
|
}
|
||||||
|
|
||||||
private Set<String> parseCsv(String value) {
|
private Set<String> parseCsv(String value) {
|
||||||
String cleaned = this.clean(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)));
|
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) {
|
private int parseInt(String value, String fieldName) {
|
||||||
String cleaned = this.required(value, fieldName);
|
String cleaned = this.required(value, fieldName);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return Integer.parseInt(cleaned);
|
return Integer.parseInt(cleaned);
|
||||||
} catch (NumberFormatException var5) {
|
} catch (NumberFormatException var5) {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_NUMBER", fieldName + " 숫자 형식이 올바르지 않습니다: " + value);
|
throw BusinessException.badRequest("PAIRING_INVALID_NUMBER",
|
||||||
}
|
fieldName + " 숫자 형식이 올바르지 않습니다: " + value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private String normalizeCode(String value, int length, String fieldName) {
|
private String normalizeCode(String value, int length, String fieldName) {
|
||||||
String cleaned = this.required(value, fieldName);
|
String cleaned = this.required(value, fieldName);
|
||||||
if (cleaned.endsWith(".0")) {
|
if (cleaned.endsWith(".0")) {
|
||||||
cleaned = cleaned.substring(0, cleaned.length() - 2);
|
cleaned = cleaned.substring(0, cleaned.length() - 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!cleaned.matches("\\d+")) {
|
if (!cleaned.matches("\\d+")) {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_CODE", fieldName + " 코드는 숫자만 허용됩니다: " + value);
|
throw BusinessException.badRequest("PAIRING_INVALID_CODE",
|
||||||
} else if (cleaned.length() > length) {
|
fieldName + " 코드는 숫자만 허용됩니다: " + value);
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_CODE", fieldName + " 코드 길이가 올바르지 않습니다: " + value);
|
} else if (cleaned.length() > length) {
|
||||||
} else {
|
throw BusinessException.badRequest("PAIRING_INVALID_CODE",
|
||||||
return cleaned.length() == length ? cleaned : "0".repeat(length - cleaned.length()) + cleaned;
|
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) {
|
private String normalizeFullRegionCode(String value, String regionCode, String detailRegionCode,
|
||||||
String cleaned = this.clean(value);
|
String detailAreaCode) {
|
||||||
return cleaned.matches("\\d+") ? this.normalizeCode(cleaned, 5, "지역 코드") : regionCode + detailRegionCode + detailAreaCode;
|
String cleaned = this.clean(value);
|
||||||
}
|
return cleaned.matches("\\d+") ? this.normalizeCode(cleaned, 5, "지역 코드")
|
||||||
|
: regionCode + detailRegionCode + detailAreaCode;
|
||||||
|
}
|
||||||
|
|
||||||
private String required(String value, String fieldName) {
|
private String required(String value, String fieldName) {
|
||||||
String cleaned = this.clean(value);
|
String cleaned = this.clean(value);
|
||||||
if (cleaned.isBlank()) {
|
if (cleaned.isBlank()) {
|
||||||
throw BusinessException.badRequest("PAIRING_REQUIRED_VALUE_MISSING", "필수 값이 없습니다: " + fieldName);
|
throw BusinessException.badRequest("PAIRING_REQUIRED_VALUE_MISSING",
|
||||||
} else {
|
"필수 값이 없습니다: " + fieldName);
|
||||||
return cleaned;
|
} else {
|
||||||
}
|
return cleaned;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private String clean(String value) {
|
private String clean(String value) {
|
||||||
return value == null ? "" : value.trim();
|
return value == null ? "" : value.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
private int regionCodeLength() {
|
private int regionCodeLength() {
|
||||||
return this.pairingProperties.getCode().getRegionCodeLength();
|
return this.pairingProperties.getCode().getRegionCodeLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
private int residenceCodeLength() {
|
private int residenceCodeLength() {
|
||||||
return this.pairingProperties.getCode().getResidenceCodeLength();
|
return this.pairingProperties.getCode().getResidenceCodeLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String anyRegionCode() {
|
private String anyRegionCode() {
|
||||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public PairingNormalizeService(final PairingProperties pairingProperties) {
|
public PairingNormalizeService(final PairingProperties pairingProperties) {
|
||||||
this.pairingProperties = pairingProperties;
|
this.pairingProperties = pairingProperties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,30 +10,36 @@ import org.springframework.web.multipart.MultipartFile;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class PairingService {
|
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) {
|
private final PairingExcelService pairingExcelService;
|
||||||
PairingWorkbookData workbookData = this.pairingExcelService.read(file);
|
private final PairingNormalizeService pairingNormalizeService;
|
||||||
PairingData pairingData = this.pairingNormalizeService.normalize(workbookData);
|
private final PairingHolidayService pairingHolidayService;
|
||||||
pairingData = this.pairingHolidayService.applyHolidayUnavailableDates(pairingData);
|
private final PairingValidationService pairingValidationService;
|
||||||
this.pairingValidationService.validate(pairingData);
|
private final PairingCandidateService pairingCandidateService;
|
||||||
PairingCandidates candidates = this.pairingCandidateService.generate(pairingData);
|
private final PairingSolverService pairingSolverService;
|
||||||
PairingResult result = this.pairingSolverService.solve(pairingData, candidates);
|
|
||||||
return this.pairingExcelService.write(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Generated
|
public byte[] pairingMemberByCenter(MultipartFile file) {
|
||||||
public PairingService(final PairingExcelService pairingExcelService, final PairingNormalizeService pairingNormalizeService, final PairingHolidayService pairingHolidayService, final PairingValidationService pairingValidationService, final PairingCandidateService pairingCandidateService, final PairingSolverService pairingSolverService) {
|
PairingWorkbookData workbookData = this.pairingExcelService.read(file);
|
||||||
this.pairingExcelService = pairingExcelService;
|
PairingData pairingData = this.pairingNormalizeService.normalize(workbookData);
|
||||||
this.pairingNormalizeService = pairingNormalizeService;
|
pairingData = this.pairingHolidayService.applyHolidayUnavailableDates(pairingData);
|
||||||
this.pairingHolidayService = pairingHolidayService;
|
this.pairingValidationService.validate(pairingData);
|
||||||
this.pairingValidationService = pairingValidationService;
|
PairingCandidates candidates = this.pairingCandidateService.generate(pairingData);
|
||||||
this.pairingCandidateService = pairingCandidateService;
|
PairingResult result = this.pairingSolverService.solve(pairingData, candidates);
|
||||||
this.pairingSolverService = pairingSolverService;
|
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
|
@Service
|
||||||
public class PairingValidationService {
|
public class PairingValidationService {
|
||||||
private final PairingProperties pairingProperties;
|
|
||||||
|
|
||||||
public void validate(PairingData data) {
|
private final PairingProperties pairingProperties;
|
||||||
this.validateNotEmpty(data);
|
|
||||||
this.validateDateRanges(data);
|
|
||||||
this.validateMunicipalityReferences(data);
|
|
||||||
this.validatePreferenceRules(data);
|
|
||||||
this.validatePreferenceAnyRegionOrder(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void validateNotEmpty(PairingData data) {
|
public void validate(PairingData data) {
|
||||||
if (data.getMembers().isEmpty()) {
|
this.validateNotEmpty(data);
|
||||||
throw BusinessException.badRequest("PAIRING_EMPTY_MEMBER", "위원정보 시트에 데이터가 없습니다.");
|
this.validateDateRanges(data);
|
||||||
} else if (data.getMunicipalities().isEmpty()) {
|
this.validateMunicipalityReferences(data);
|
||||||
throw BusinessException.badRequest("PAIRING_EMPTY_MUNICIPALITY", "지자체 정보 시트에 데이터가 없습니다.");
|
this.validatePreferenceRules(data);
|
||||||
} else if (data.getCenters().isEmpty()) {
|
this.validatePreferenceAnyRegionOrder(data);
|
||||||
throw BusinessException.badRequest("PAIRING_EMPTY_CENTER", "센터정보 시트에 데이터가 없습니다.");
|
}
|
||||||
} else if (data.getCenterAdjacentRegions().isEmpty()) {
|
|
||||||
throw BusinessException.badRequest("PAIRING_EMPTY_CENTER_ADJACENT_REGION", "센터 인접지역표 시트에 데이터가 없습니다.");
|
private void validateNotEmpty(PairingData data) {
|
||||||
} else if (data.getPreferenceMatchRules().isEmpty()) {
|
if (data.getMembers().isEmpty()) {
|
||||||
throw BusinessException.badRequest("PAIRING_EMPTY_PREFERENCE_MATCH", "희망지역 매칭표 시트에 데이터가 없습니다.");
|
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) {
|
private void validateMunicipalityReferences(PairingData data) {
|
||||||
data.getMembers().forEach((member) -> {
|
Map<String, Municipality> municipalities = (Map) data.getMunicipalities().stream()
|
||||||
if (member.getAvailableEndDate().isBefore(member.getAvailableStartDate())) {
|
.collect(Collectors.toMap(Municipality::getId, Function.identity(), (left, right) -> left));
|
||||||
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) {
|
for (Center center : data.getCenters()) {
|
||||||
Map<String, Municipality> municipalities = (Map)data.getMunicipalities().stream().collect(Collectors.toMap(Municipality::getId, Function.identity(), (left, right) -> left));
|
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();
|
private void validatePreferenceRules(PairingData data) {
|
||||||
throw BusinessException.badRequest("PAIRING_BROKEN_MUNICIPALITY_REFERENCE", "센터가 존재하지 않는 지자체를 참조합니다. centerId=" + var10001 + ", municipalityId=" + center.getMunicipalityId());
|
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",
|
||||||
private void validatePreferenceRules(PairingData data) {
|
"희망지역 매칭표의 선호 순위는 0 이상이어야 합니다.");
|
||||||
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 이상이어야 합니다.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void validatePreferenceAnyRegionOrder(PairingData data) {
|
private void validatePreferenceAnyRegionOrder(PairingData data) {
|
||||||
for(Member member : data.getMembers()) {
|
for (Member member : data.getMembers()) {
|
||||||
boolean anyRegionAppeared = false;
|
boolean anyRegionAppeared = false;
|
||||||
|
|
||||||
for(String preferenceRegion : member.getPreferenceRegions()) {
|
for (String preferenceRegion : member.getPreferenceRegions()) {
|
||||||
if (anyRegionAppeared && !this.anyRegionCode().equals(preferenceRegion)) {
|
if (anyRegionAppeared && !this.anyRegionCode().equals(preferenceRegion)) {
|
||||||
throw BusinessException.badRequest("PAIRING_INVALID_PREFERENCE_ORDER", "선호지역 00 이후에는 다른 지역이 올 수 없습니다. memberId=" + member.getId());
|
throw BusinessException.badRequest("PAIRING_INVALID_PREFERENCE_ORDER",
|
||||||
}
|
"선호지역 00 이후에는 다른 지역이 올 수 없습니다. memberId=" + member.getId());
|
||||||
|
}
|
||||||
|
|
||||||
if (this.anyRegionCode().equals(preferenceRegion)) {
|
if (this.anyRegionCode().equals(preferenceRegion)) {
|
||||||
anyRegionAppeared = true;
|
anyRegionAppeared = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private String anyRegionCode() {
|
private String anyRegionCode() {
|
||||||
return this.pairingProperties.getCode().getAnyRegionCode();
|
return this.pairingProperties.getCode().getAnyRegionCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Generated
|
@Generated
|
||||||
public PairingValidationService(final PairingProperties pairingProperties) {
|
public PairingValidationService(final PairingProperties pairingProperties) {
|
||||||
this.pairingProperties = pairingProperties;
|
this.pairingProperties = pairingProperties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package com.kri.p6.ncrc.pairing.service;
|
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.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import org.assertj.core.api.Assertions;
|
import org.assertj.core.api.Assertions;
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
package com.kri.p6.ncrc.pairing.service;
|
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.external.datago.DatagoExtentionApiClient;
|
||||||
import com.kri.p6.ncrc.pairing.common.cache.DatagoHolidayCache;
|
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.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.Member;
|
||||||
import com.kri.p6.ncrc.pairing.model.MemberRole;
|
|
||||||
import com.kri.p6.ncrc.pairing.model.PairingData;
|
import com.kri.p6.ncrc.pairing.model.PairingData;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -18,7 +18,27 @@ class PairingHolidayServiceTest {
|
|||||||
@Test
|
@Test
|
||||||
void applyHolidayUnavailableDatesAddsDatagoHolidays() {
|
void applyHolidayUnavailableDatesAddsDatagoHolidays() {
|
||||||
PairingHolidayService service = new PairingHolidayService(new DatagoHolidayCache(new StubDatagoExtentionApiClient()));
|
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);
|
PairingData result = service.applyHolidayUnavailableDates(data);
|
||||||
Assertions.assertThat(result.getCommonUnavailableDates()).contains(new LocalDate[]{LocalDate.of(2026, 5, 5)});
|
Assertions.assertThat(result.getCommonUnavailableDates()).contains(new LocalDate[]{LocalDate.of(2026, 5, 5)});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
package com.kri.p6.ncrc.pairing.service;
|
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.AssignmentCandidate;
|
||||||
import com.kri.p6.ncrc.pairing.model.Center;
|
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.Member;
|
||||||
import com.kri.p6.ncrc.pairing.model.MemberRole;
|
|
||||||
import com.kri.p6.ncrc.pairing.model.Municipality;
|
import com.kri.p6.ncrc.pairing.model.Municipality;
|
||||||
import com.kri.p6.ncrc.pairing.model.PairCandidate;
|
import com.kri.p6.ncrc.pairing.model.PairCandidate;
|
||||||
import com.kri.p6.ncrc.pairing.model.PairingCandidates;
|
import com.kri.p6.ncrc.pairing.model.PairingCandidates;
|
||||||
|
|||||||
Reference in New Issue
Block a user