Skip to content

Commit 6bac859

Browse files
authored
Merge pull request #415 from DSM-PICK/develop
Merge branch 'develop' to main
2 parents 729de1c + eadfb6e commit 6bac859

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

.github/workflows/git-action-stag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
buildargs: |
4343
PROFILE=stag
4444
JWT_SECRET_KEY=pickpickpickpickpickpickpickpick
45-
JWT_ACCESS_EXP=36000
45+
JWT_ACCESS_EXP=9999999
4646
JWT_REFRESH_EXP=36000000
4747
JWT_HEADER=Authorization
4848
JWT_PREFIX=Bearer

src/main/kotlin/dsm/pick2024/domain/application/service/QueryClassApplicationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QueryClassApplicationService(
2828
.map { QueryApplicationResponse(it) }
2929
}
3030

31-
return applications.sortedWith(
31+
return applications.distinctBy { it.id }.sortedWith(
3232
compareBy({ it.grade }, { it.classNum }, { it.num })
3333
)
3434
}

src/main/kotlin/dsm/pick2024/domain/application/service/QueryFloorApplicationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class QueryFloorApplicationService(
3030
else -> throw FloorNotFoundException
3131
}
3232

33-
return applications.map { QueryApplicationResponse(it) }.sortedWith(
33+
return applications.map { QueryApplicationResponse(it) }.distinctBy { it.id }.sortedWith(
3434
compareBy({ it.grade }, { it.classNum }, { it.num })
3535
)
3636
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package dsm.pick2024.domain.bug.domain
22

33
enum class Model {
4-
WEB, ANDROID, IOS
4+
WEB, ANDROID, IOS, TEACHER
55
}

src/main/kotlin/dsm/pick2024/domain/status/service/ChangeStatusService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ChangeStatusService(
3535
)
3636
updateStatuses.add(updatedStatus)
3737

38-
if (requests.statusType in setOf(EMPLOYMENT, PICNIC, ATTENDANCE, DROPOUT)) {
38+
if (requests.statusType in setOf(EMPLOYMENT, PICNIC, ATTENDANCE, DROPOUT, GO_HOME)) {
3939
val attendance = queryAttendancePort.findByUserId(requests.userId)
4040
?: throw UserNotFoundException
4141

@@ -58,6 +58,7 @@ class ChangeStatusService(
5858
PICNIC -> AttendanceStatus.PICNIC
5959
DROPOUT -> AttendanceStatus.DROPOUT
6060
EMPLOYMENT -> AttendanceStatus.EMPLOYMENT
61+
GO_HOME -> AttendanceStatus.GO_HOME
6162
else -> AttendanceStatus.ATTENDANCE
6263
}
6364
}

src/main/kotlin/dsm/pick2024/domain/timetable/service/QueryTimetableService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class QueryTimetableService(
1717
private val userFacadeUseCase: UserFacadeUseCase,
1818
private val fileUtil: FileUtil
1919
) : QueryDayTimetableUseCase {
20-
// @Cacheable(value = ["dayTimetableCache"], key = "#root.methodName")
2120
@Transactional(readOnly = true)
2221
override fun queryDayTimetable(): DayTimetableResponse {
2322
val user = userFacadeUseCase.currentUser()

src/main/kotlin/dsm/pick2024/domain/timetable/service/SaveTimetableService.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,24 @@ class SaveTimetableService(
3838
}
3939

4040
private fun updatedSubjectName(subjectName: String): String {
41-
val cleanName = subjectName.replace(Regex("[\\[\\(].*?[\\]\\)]"), "")
41+
val cleanName = subjectName.replace(Regex("[\\[\\(].*?[\\]\\)]|\\d|공통"), "")
4242

4343
return when (cleanName) {
4444
"* 데이터베이스 구현", "* SQL활용" -> "DB 프로그래밍"
4545
"* 응용SW 변경관리" -> "응용SW 변경관리"
4646
"* 응용SW 운영관리" -> "디지털 포렌식"
47+
"* 응용SW 기초 기술 활용" -> "응용 소프트웨어 기초"
4748
"* 정보통신기기 PCB보드 개발" -> "정보통신기기 PCB보드 개발"
4849
"* 정보통신기기 펌웨어구현" -> "정보통신기기 펌웨어구현"
49-
"* 빅데이터 분석 결과 시각화", "빅데이터 분석 결과 시각화" -> "빅데이터 분석"
50+
"* 빅데이터 분석 결과 시각화", "빅데이터 분석 결과 시각화", "* 분석 데이터 전처리" -> "빅데이터 분석"
5051
"* 시스템 유지보수관리" -> "시스템 유지보수관리"
5152
"* 시스템 점검관리" -> "시스템 점검관리"
52-
"자율활동", "동아리활동" -> "창체"
53+
"자율활동", "동아리활동", "자율·자치활동" -> "창체"
5354
"자료구조와 알고리즘" -> "자료구조"
5455
"미술 창작" -> "미술"
56+
"* 화면 구현" -> "화면디자인"
57+
"서버 구축 및 운영" -> "서버 프로그래밍 실무"
58+
"머신러닝 딥러닝" -> "빅데이터 실무"
5559
else -> cleanName
5660
}
5761
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package dsm.pick2024.global.annotation
22

3-
// domain의 일관성을 기준이 되는 Aggregate를 명시하는 어노테이션
4-
53
@Retention(AnnotationRetention.RUNTIME)
64
@Target(AnnotationTarget.CLASS)
75
annotation class Aggregate()

0 commit comments

Comments
 (0)