Merge remote-tracking branch 'origin/feat/dev_251201' into feat/dev_251201
# Conflicts: # src/main/java/com/kamco/cd/kamcoback/common/utils/FIleChecker.java # src/main/java/com/kamco/cd/kamcoback/mapsheet/service/MapSheetMngService.java
This commit is contained in:
@@ -182,9 +182,8 @@ public class MapSheetMngApiController {
|
|||||||
@RequestParam(value = "hstUid", required = false) Long hstUid,
|
@RequestParam(value = "hstUid", required = false) Long hstUid,
|
||||||
@RequestParam(value = "overwrite", required = false) boolean overwrite) {
|
@RequestParam(value = "overwrite", required = false) boolean overwrite) {
|
||||||
|
|
||||||
|
return ApiResponseDto.createOK(
|
||||||
|
mapSheetMngService.uploadPair(tfwFile, tifFile, hstUid, overwrite));
|
||||||
return ApiResponseDto.createOK(mapSheetMngService.uploadPair(tfwFile, tifFile, hstUid, overwrite));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "영상관리 > 파일조회", description = "영상관리 > 파일조회")
|
@Operation(summary = "영상관리 > 파일조회", description = "영상관리 > 파일조회")
|
||||||
|
|||||||
@@ -92,26 +92,27 @@ public class MapSheetMngDto {
|
|||||||
|
|
||||||
public String getMngState() {
|
public String getMngState() {
|
||||||
|
|
||||||
if (this.syncStateDoneCnt == 0)return "NOTYET";
|
if (this.syncStateDoneCnt == 0) return "NOTYET";
|
||||||
else if (this.syncStateDoneCnt < this.syncTotCnt)return "PROCESSING";
|
else if (this.syncStateDoneCnt < this.syncTotCnt) return "PROCESSING";
|
||||||
|
|
||||||
if( (this.syncNotPaireExecCnt + this.syncDuplicateExecCnt + this.syncFaultExecCnt) > 0 )return "TAKINGERROR";
|
if ((this.syncNotPaireExecCnt + this.syncDuplicateExecCnt + this.syncFaultExecCnt) > 0)
|
||||||
|
return "TAKINGERROR";
|
||||||
|
|
||||||
return "DONE";
|
return "DONE";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSyncState() {
|
public String getSyncState() {
|
||||||
|
|
||||||
if (this.syncStateDoneCnt == 0)return "NOTYET";
|
if (this.syncStateDoneCnt == 0) return "NOTYET";
|
||||||
else if (this.syncStateDoneCnt < this.syncTotCnt)return "PROCESSING";
|
else if (this.syncStateDoneCnt < this.syncTotCnt) return "PROCESSING";
|
||||||
|
|
||||||
return "DONE";
|
return "DONE";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDataCheckState() {
|
public String getDataCheckState() {
|
||||||
|
|
||||||
if (this.syncDataCheckDoneCnt == 0)return "NOTYET";
|
if (this.syncDataCheckDoneCnt == 0) return "NOTYET";
|
||||||
else if (this.syncDataCheckDoneCnt < this.syncTotCnt)return "PROCESSING";
|
else if (this.syncDataCheckDoneCnt < this.syncTotCnt) return "PROCESSING";
|
||||||
|
|
||||||
return "DONE";
|
return "DONE";
|
||||||
}
|
}
|
||||||
@@ -138,8 +139,6 @@ public class MapSheetMngDto {
|
|||||||
return this.syncNotPaireExecCnt + this.syncDuplicateExecCnt + this.syncFaultExecCnt;
|
return this.syncNotPaireExecCnt + this.syncDuplicateExecCnt + this.syncFaultExecCnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String getMngStateName() {
|
public String getMngStateName() {
|
||||||
String enumId = this.mngState;
|
String enumId = this.mngState;
|
||||||
if (enumId == null || enumId.isEmpty()) {
|
if (enumId == null || enumId.isEmpty()) {
|
||||||
@@ -254,8 +253,6 @@ public class MapSheetMngDto {
|
|||||||
this.errorCheckTifFileName = errorCheckTifFileName;
|
this.errorCheckTifFileName = errorCheckTifFileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private String getSyncStateName(String enumId) {
|
private String getSyncStateName(String enumId) {
|
||||||
if (enumId == null || enumId.isEmpty()) {
|
if (enumId == null || enumId.isEmpty()) {
|
||||||
enumId = "NOTYET";
|
enumId = "NOTYET";
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
mapSheetMngEntity.mngState,
|
mapSheetMngEntity.mngState,
|
||||||
mapSheetMngEntity.syncState,
|
mapSheetMngEntity.syncState,
|
||||||
mapSheetMngEntity.syncCheckState,
|
mapSheetMngEntity.syncCheckState,
|
||||||
|
|
||||||
mapSheetMngHstEntity.count().as("syncTotalCnt"),
|
mapSheetMngHstEntity.count().as("syncTotalCnt"),
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.dataState.eq("DONE"))
|
.when(mapSheetMngHstEntity.dataState.eq("DONE"))
|
||||||
@@ -87,13 +86,11 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum()
|
.sum()
|
||||||
.as("syncStateDoneCnt"),
|
.as("syncStateDoneCnt"),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.ne("NOTYET"))
|
.when(mapSheetMngHstEntity.syncState.ne("NOTYET"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))
|
.when(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
@@ -108,7 +105,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("DUPLICATE"))
|
.when(mapSheetMngHstEntity.syncState.eq("DUPLICATE"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
@@ -123,7 +119,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(
|
||||||
mapSheetMngHstEntity
|
mapSheetMngHstEntity
|
||||||
@@ -146,7 +141,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("NOFILE"))
|
.when(mapSheetMngHstEntity.syncState.eq("NOFILE"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
@@ -161,8 +155,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
|
|
||||||
mapSheetMngEntity.createdDttm,
|
mapSheetMngEntity.createdDttm,
|
||||||
mapSheetMngHstEntity.syncEndDttm.max()))
|
mapSheetMngHstEntity.syncEndDttm.max()))
|
||||||
.from(mapSheetMngEntity)
|
.from(mapSheetMngEntity)
|
||||||
@@ -231,7 +223,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
mapSheetMngEntity.mngState,
|
mapSheetMngEntity.mngState,
|
||||||
mapSheetMngEntity.syncState,
|
mapSheetMngEntity.syncState,
|
||||||
mapSheetMngEntity.syncCheckState,
|
mapSheetMngEntity.syncCheckState,
|
||||||
|
|
||||||
mapSheetMngHstEntity.count().as("syncTotalCnt"),
|
mapSheetMngHstEntity.count().as("syncTotalCnt"),
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.dataState.eq("DONE"))
|
.when(mapSheetMngHstEntity.dataState.eq("DONE"))
|
||||||
@@ -239,13 +230,11 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum()
|
.sum()
|
||||||
.as("syncStateDoneCnt"),
|
.as("syncStateDoneCnt"),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.ne("NOTYET"))
|
.when(mapSheetMngHstEntity.syncState.ne("NOTYET"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))
|
.when(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
@@ -260,7 +249,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("DUPLICATE"))
|
.when(mapSheetMngHstEntity.syncState.eq("DUPLICATE"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
@@ -275,7 +263,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(
|
||||||
mapSheetMngHstEntity
|
mapSheetMngHstEntity
|
||||||
@@ -298,7 +285,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("NOFILE"))
|
.when(mapSheetMngHstEntity.syncState.eq("NOFILE"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
@@ -313,8 +299,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
|
|
||||||
mapSheetMngEntity.createdDttm,
|
mapSheetMngEntity.createdDttm,
|
||||||
mapSheetMngHstEntity.syncEndDttm.max()))
|
mapSheetMngHstEntity.syncEndDttm.max()))
|
||||||
.from(mapSheetMngEntity)
|
.from(mapSheetMngEntity)
|
||||||
|
|||||||
Reference in New Issue
Block a user