-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
488 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...application/src/main/java/team/retum/jobis/domain/acceptance/spi/QueryAcceptancePort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package team.retum.jobis.domain.acceptance.spi; | ||
|
||
import team.retum.jobis.domain.acceptance.model.Acceptance; | ||
import team.retum.jobis.domain.acceptance.spi.vo.AcceptanceVO; | ||
|
||
import java.util.List; | ||
|
||
public interface QueryAcceptancePort { | ||
|
||
List<Acceptance> queryAcceptancesByCompanyIdAndYear(Long companyId, Integer year); | ||
List<AcceptanceVO> queryAcceptancesByCompanyIdAndYear(Long companyId, Integer year); | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
jobis-application/src/main/java/team/retum/jobis/domain/acceptance/spi/vo/AcceptanceVO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package team.retum.jobis.domain.acceptance.spi.vo; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class AcceptanceVO { | ||
|
||
private final Long acceptanceId; | ||
private final Integer grade; | ||
private final Integer classRoom; | ||
private final Integer number; | ||
private final String studentName; | ||
private final LocalDate contractDate; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
jobis-application/src/main/java/team/retum/jobis/domain/code/service/GetKeywordsService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package team.retum.jobis.domain.code.service; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import team.retum.jobis.common.annotation.Service; | ||
import team.retum.jobis.common.util.StringUtil; | ||
import team.retum.jobis.domain.code.exception.CodeNotFoundException; | ||
import team.retum.jobis.domain.code.model.Code; | ||
import team.retum.jobis.domain.code.spi.QueryCodePort; | ||
|
||
import java.util.List; | ||
|
||
@RequiredArgsConstructor | ||
@Service | ||
public class GetKeywordsService { | ||
|
||
private final QueryCodePort queryCodePort; | ||
|
||
public String getKeywordsAsJoinedString(String jobCodes) { | ||
return StringUtil.joinStringList( | ||
queryCodePort.queryCodesByIdIn( | ||
StringUtil.divideString(jobCodes, ",").stream().map(Long::parseLong).toList() | ||
).stream().map(Code::getKeyword).toList(), | ||
"/" | ||
); | ||
} | ||
|
||
public List<String> getKeywordsAsList(List<String> jobCodes) { | ||
return queryCodePort.queryCodesByIdIn( | ||
jobCodes.stream().map(Long::parseLong).toList() | ||
).stream().map(Code::getKeyword).toList(); | ||
} | ||
|
||
public String getCodeKeyword(Long code) { | ||
return queryCodePort.queryCodeById(code) | ||
.orElseThrow(() -> CodeNotFoundException.EXCEPTION) | ||
.getKeyword(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...n/src/main/java/team/retum/jobis/domain/recruitment/dto/response/RecruitAreaResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.