dev profile fix
This commit is contained in:
@@ -378,7 +378,7 @@ public class GlobalExceptionHandler {
|
|||||||
HttpStatus.valueOf(codeName),
|
HttpStatus.valueOf(codeName),
|
||||||
errorLog.getId());
|
errorLog.getId());
|
||||||
|
|
||||||
return ResponseEntity.status(HttpStatus.UNAUTHORIZED) // 🔥 여기서 401 지정
|
return ResponseEntity.status(HttpStatus.UNAUTHORIZED) // 여기서 401 지정
|
||||||
.body(body);
|
.body(body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1152,7 +1152,7 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
|
|||||||
// 날짜별 전체 건수
|
// 날짜별 전체 건수
|
||||||
Expression<Long> dailyTotalCnt = Expressions.numberTemplate(Long.class, "COUNT(*)");
|
Expression<Long> dailyTotalCnt = Expressions.numberTemplate(Long.class, "COUNT(*)");
|
||||||
|
|
||||||
// ⭐ 전체 기간 총 건수 (윈도우 함수)
|
// 전체 기간 총 건수 (윈도우 함수)
|
||||||
Expression<Long> totalCnt = Expressions.numberTemplate(Long.class, "SUM(COUNT(*)) OVER ()");
|
Expression<Long> totalCnt = Expressions.numberTemplate(Long.class, "SUM(COUNT(*)) OVER ()");
|
||||||
|
|
||||||
// 상태별 카운트 (Postgres FILTER 사용)
|
// 상태별 카운트 (Postgres FILTER 사용)
|
||||||
@@ -1192,7 +1192,7 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
|
|||||||
LabelingStatDto.class,
|
LabelingStatDto.class,
|
||||||
workDate,
|
workDate,
|
||||||
dailyTotalCnt,
|
dailyTotalCnt,
|
||||||
totalCnt, // ⭐ 전체 일자 배정 건수
|
totalCnt, // 전체 일자 배정 건수
|
||||||
assignedCnt,
|
assignedCnt,
|
||||||
skipCnt,
|
skipCnt,
|
||||||
completeCnt,
|
completeCnt,
|
||||||
@@ -1233,7 +1233,7 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
|
|||||||
// 날짜별 전체 건수
|
// 날짜별 전체 건수
|
||||||
Expression<Long> dailyTotalCnt = Expressions.numberTemplate(Long.class, "COUNT(*)");
|
Expression<Long> dailyTotalCnt = Expressions.numberTemplate(Long.class, "COUNT(*)");
|
||||||
|
|
||||||
// ⭐ 전체 기간 총 건수 (윈도우 함수)
|
// 전체 기간 총 건수 (윈도우 함수)
|
||||||
Expression<Long> totalCnt = Expressions.numberTemplate(Long.class, "SUM(COUNT(*)) OVER ()");
|
Expression<Long> totalCnt = Expressions.numberTemplate(Long.class, "SUM(COUNT(*)) OVER ()");
|
||||||
|
|
||||||
// 상태별 카운트 (Postgres FILTER 사용)
|
// 상태별 카운트 (Postgres FILTER 사용)
|
||||||
@@ -1277,7 +1277,7 @@ public class LabelAllocateRepositoryImpl implements LabelAllocateRepositoryCusto
|
|||||||
LabelingStatDto.class,
|
LabelingStatDto.class,
|
||||||
workDate,
|
workDate,
|
||||||
dailyTotalCnt,
|
dailyTotalCnt,
|
||||||
totalCnt, // ⭐ 전체 일자 배정 건수
|
totalCnt, // 전체 일자 배정 건수
|
||||||
assignedCnt,
|
assignedCnt,
|
||||||
skipCnt,
|
skipCnt,
|
||||||
completeCnt,
|
completeCnt,
|
||||||
|
|||||||
@@ -426,7 +426,7 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
"concat({0}, substring({1}, 1, 5))",
|
"concat({0}, substring({1}, 1, 5))",
|
||||||
mapInkx5kEntity.mapidNm, mapSheetMngHstEntity.mapSheetNum),
|
mapInkx5kEntity.mapidNm, mapSheetMngHstEntity.mapSheetNum),
|
||||||
|
|
||||||
// ✅ 튜플 방지: concat으로 문자열 생성
|
// 튜플 방지: concat으로 문자열 생성
|
||||||
Expressions.stringTemplate(
|
Expressions.stringTemplate(
|
||||||
"concat('(', {0}, ',', {1}, ')')",
|
"concat('(', {0}, ',', {1}, ')')",
|
||||||
mapInkx5kEntity.mapidNm, mapSheetMngHstEntity.mapSheetNum),
|
mapInkx5kEntity.mapidNm, mapSheetMngHstEntity.mapSheetNum),
|
||||||
@@ -437,7 +437,7 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
// fid 타입 주의 (Long이면 DTO도 Long으로 맞추는 걸 추천)
|
// fid 타입 주의 (Long이면 DTO도 Long으로 맞추는 걸 추천)
|
||||||
mapInkx5kEntity.fid, // 또는 mapInkx5kEntity.fid.intValue()
|
mapInkx5kEntity.fid, // 또는 mapInkx5kEntity.fid.intValue()
|
||||||
|
|
||||||
// ✅ createdDate 말고 ZonedDateTime으로 매핑된 필드로
|
// createdDate 말고 ZonedDateTime으로 매핑된 필드로
|
||||||
mapSheetMngHstEntity.createdDate, // (예시)
|
mapSheetMngHstEntity.createdDate, // (예시)
|
||||||
mapSheetMngHstEntity.syncState,
|
mapSheetMngHstEntity.syncState,
|
||||||
mapSheetMngHstEntity.syncTfwFileName,
|
mapSheetMngHstEntity.syncTfwFileName,
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ spring:
|
|||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://192.168.2.127:15432/kamco_cds
|
url: jdbc:postgresql://192.168.2.127:15432/kamco_cds
|
||||||
|
#url: jdbc:postgresql://localhost:15432/kamco_cds
|
||||||
username: kamco_cds
|
username: kamco_cds
|
||||||
password: kamco_cds_Q!W@E#R$
|
password: kamco_cds_Q!W@E#R$
|
||||||
hikari:
|
hikari:
|
||||||
|
|||||||
Reference in New Issue
Block a user