영상관리 수정 - 확장자 대문자 ignore, 파일경로 추가, 오류목록 등록일 기준 수정
This commit is contained in:
@@ -20,6 +20,27 @@ import org.springframework.data.domain.Sort;
|
|||||||
|
|
||||||
public class MapSheetMngDto {
|
public class MapSheetMngDto {
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum MapSheetState implements EnumType {
|
||||||
|
// @formatter:off
|
||||||
|
DONE("완료"),
|
||||||
|
NOTYET("처리대기");
|
||||||
|
// @formatter:on
|
||||||
|
|
||||||
|
private final String message;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return name();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getText() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Schema(name = "MngSearchReq", description = "영상관리 검색 요청")
|
@Schema(name = "MngSearchReq", description = "영상관리 검색 요청")
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@@ -233,6 +254,7 @@ public class MapSheetMngDto {
|
|||||||
private String errorCheckStateName;
|
private String errorCheckStateName;
|
||||||
private String errorCheckTfwFileName;
|
private String errorCheckTfwFileName;
|
||||||
private String errorCheckTifFileName;
|
private String errorCheckTifFileName;
|
||||||
|
private String mapSheetPath;
|
||||||
|
|
||||||
// private List<MngFIleDto> fileArray;
|
// private List<MngFIleDto> fileArray;
|
||||||
|
|
||||||
@@ -251,7 +273,8 @@ public class MapSheetMngDto {
|
|||||||
String syncTifFileName,
|
String syncTifFileName,
|
||||||
String errorCheckState,
|
String errorCheckState,
|
||||||
String errorCheckTfwFileName,
|
String errorCheckTfwFileName,
|
||||||
String errorCheckTifFileName) {
|
String errorCheckTifFileName,
|
||||||
|
String mapSheetPath) {
|
||||||
this.hstUid = hstUid;
|
this.hstUid = hstUid;
|
||||||
this.mngYyyy = mngYyyy;
|
this.mngYyyy = mngYyyy;
|
||||||
this.mapSheetNum = mapSheetNum;
|
this.mapSheetNum = mapSheetNum;
|
||||||
@@ -269,6 +292,7 @@ public class MapSheetMngDto {
|
|||||||
this.errorCheckStateName = getSyncStateName(errorCheckState);
|
this.errorCheckStateName = getSyncStateName(errorCheckState);
|
||||||
this.errorCheckTfwFileName = errorCheckTfwFileName;
|
this.errorCheckTfwFileName = errorCheckTfwFileName;
|
||||||
this.errorCheckTifFileName = errorCheckTifFileName;
|
this.errorCheckTifFileName = errorCheckTifFileName;
|
||||||
|
this.mapSheetPath = mapSheetPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getSyncStateName(String enumId) {
|
private String getSyncStateName(String enumId) {
|
||||||
@@ -366,27 +390,6 @@ public class MapSheetMngDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Getter
|
|
||||||
@AllArgsConstructor
|
|
||||||
public enum MapSheetState implements EnumType {
|
|
||||||
// @formatter:off
|
|
||||||
DONE("완료"),
|
|
||||||
NOTYET("처리대기");
|
|
||||||
// @formatter:on
|
|
||||||
|
|
||||||
private final String message;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getId() {
|
|
||||||
return name();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getText() {
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 연도리스틀 조회시 사용하는 request Dto
|
// 연도리스틀 조회시 사용하는 request Dto
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@@ -461,6 +464,7 @@ public class MapSheetMngDto {
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public static class MngYyyyDto {
|
public static class MngYyyyDto {
|
||||||
|
|
||||||
private Integer yyyy;
|
private Integer yyyy;
|
||||||
private String mngPath;
|
private String mngPath;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -379,13 +379,15 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
mapInkx5kEntity.mapidNm, mapSheetMngHstEntity.mapSheetNum)
|
mapInkx5kEntity.mapidNm, mapSheetMngHstEntity.mapSheetNum)
|
||||||
.as("mapSrcName"),
|
.as("mapSrcName"),
|
||||||
mapInkx5kEntity.fid,
|
mapInkx5kEntity.fid,
|
||||||
mapSheetMngHstEntity.createdDate,
|
mapSheetMngHstEntity.syncCheckEndDttm.coalesce(
|
||||||
|
mapSheetMngHstEntity.createdDate),
|
||||||
mapSheetMngHstEntity.syncState,
|
mapSheetMngHstEntity.syncState,
|
||||||
mapSheetMngHstEntity.syncTfwFileName,
|
mapSheetMngHstEntity.syncTfwFileName,
|
||||||
mapSheetMngHstEntity.syncTifFileName,
|
mapSheetMngHstEntity.syncTifFileName,
|
||||||
mapSheetMngHstEntity.syncCheckState,
|
mapSheetMngHstEntity.syncCheckState,
|
||||||
mapSheetMngHstEntity.syncCheckTfwFileName,
|
mapSheetMngHstEntity.syncCheckTfwFileName,
|
||||||
mapSheetMngHstEntity.syncCheckTifFileName))
|
mapSheetMngHstEntity.syncCheckTifFileName,
|
||||||
|
mapSheetMngHstEntity.mapSheetPath))
|
||||||
.from(mapSheetMngHstEntity)
|
.from(mapSheetMngHstEntity)
|
||||||
.innerJoin(mapInkx5kEntity)
|
.innerJoin(mapInkx5kEntity)
|
||||||
.on(
|
.on(
|
||||||
|
|||||||
@@ -85,7 +85,9 @@ public class MapSheetMngFileJobService {
|
|||||||
// 도엽별 파일 체크 진행중으로 변경
|
// 도엽별 파일 체크 진행중으로 변경
|
||||||
item.setDataState("PROCESSING");
|
item.setDataState("PROCESSING");
|
||||||
item.setUseInference("USE");
|
item.setUseInference("USE");
|
||||||
if (exceptCheckCnt == 0) item.setUseInference("EXCEPT");
|
if (exceptCheckCnt == 0) {
|
||||||
|
item.setUseInference("EXCEPT");
|
||||||
|
}
|
||||||
mngHstDataSyncStateUpdate(item);
|
mngHstDataSyncStateUpdate(item);
|
||||||
|
|
||||||
// 1. MngHstDto 객체의 필드 값에 접근
|
// 1. MngHstDto 객체의 필드 값에 접근
|
||||||
@@ -133,7 +135,9 @@ public class MapSheetMngFileJobService {
|
|||||||
syncState = "";
|
syncState = "";
|
||||||
syncCheckState = "";
|
syncCheckState = "";
|
||||||
|
|
||||||
if (tfwCnt == 0 && tifCnt == 0) syncState = "NOFILE";
|
if (tfwCnt == 0 && tifCnt == 0) {
|
||||||
|
syncState = "NOFILE";
|
||||||
|
}
|
||||||
|
|
||||||
for (Basic item2 : basicList) {
|
for (Basic item2 : basicList) {
|
||||||
// System.out.println("path: " + item2.getParentPath());
|
// System.out.println("path: " + item2.getParentPath());
|
||||||
@@ -151,7 +155,7 @@ public class MapSheetMngFileJobService {
|
|||||||
addReq.setHstUid(item.getHstUid());
|
addReq.setHstUid(item.getHstUid());
|
||||||
|
|
||||||
fileState = "DONE";
|
fileState = "DONE";
|
||||||
if (item2.getExtension().equals("tfw")) {
|
if ("tfw".equalsIgnoreCase(item2.getExtension())) {
|
||||||
if (tifCnt == 0) {
|
if (tifCnt == 0) {
|
||||||
fileState = "NOTPAIR";
|
fileState = "NOTPAIR";
|
||||||
syncState = fileState;
|
syncState = fileState;
|
||||||
@@ -169,7 +173,7 @@ public class MapSheetMngFileJobService {
|
|||||||
item.setMapSheetPath(item2.getParentPath());
|
item.setMapSheetPath(item2.getParentPath());
|
||||||
item.setSyncTfwFileName(item2.getFileNm());
|
item.setSyncTfwFileName(item2.getFileNm());
|
||||||
|
|
||||||
} else if (item2.getExtension().equals("tif")) {
|
} else if ("tif".equalsIgnoreCase(item2.getExtension())) {
|
||||||
if (tfwCnt == 0) {
|
if (tfwCnt == 0) {
|
||||||
fileState = "NOTPAIR";
|
fileState = "NOTPAIR";
|
||||||
syncState = fileState;
|
syncState = fileState;
|
||||||
@@ -195,7 +199,9 @@ public class MapSheetMngFileJobService {
|
|||||||
// 도엽별 파일 체크 완료로 변경
|
// 도엽별 파일 체크 완료로 변경
|
||||||
item.setDataState("DONE");
|
item.setDataState("DONE");
|
||||||
|
|
||||||
if (syncState.isEmpty()) syncState = "DONE";
|
if (syncState.isEmpty()) {
|
||||||
|
syncState = "DONE";
|
||||||
|
}
|
||||||
item.setSyncState(syncState);
|
item.setSyncState(syncState);
|
||||||
|
|
||||||
mngHstDataSyncStateUpdate(item);
|
mngHstDataSyncStateUpdate(item);
|
||||||
@@ -230,7 +236,9 @@ public class MapSheetMngFileJobService {
|
|||||||
public Long mapSheetAutoExceptionUpdate(int mngYyyy, String mapSheetNum) {
|
public Long mapSheetAutoExceptionUpdate(int mngYyyy, String mapSheetNum) {
|
||||||
|
|
||||||
// 2025년 이전 파일싱크는 무조건 이전3년이 존재하지 않으므로 자동추론제외를 진행하지 않는다.(전년도 파일이 무조건 존재하는 것으로 리턴)
|
// 2025년 이전 파일싱크는 무조건 이전3년이 존재하지 않으므로 자동추론제외를 진행하지 않는다.(전년도 파일이 무조건 존재하는 것으로 리턴)
|
||||||
if (syncAutoExceptionStartYear > mngYyyy) return 1L;
|
if (syncAutoExceptionStartYear > mngYyyy) {
|
||||||
|
return 1L;
|
||||||
|
}
|
||||||
|
|
||||||
// List<String> mapSheetNums = new ArrayList<>();
|
// List<String> mapSheetNums = new ArrayList<>();
|
||||||
// mapSheetNums.add(mapSheetNum);
|
// mapSheetNums.add(mapSheetNum);
|
||||||
|
|||||||
Reference in New Issue
Block a user