spotless 적용
This commit is contained in:
@@ -45,9 +45,7 @@ public class MapSheetMngFileJobService {
|
||||
@Value("${file.sync-file-extention}")
|
||||
private String syncFileExtention;
|
||||
|
||||
|
||||
public Integer checkMngFileSync()
|
||||
{
|
||||
public Integer checkMngFileSync() {
|
||||
return mapSheetMngFileJobCoreService.findNotYetMapSheetMng();
|
||||
}
|
||||
|
||||
@@ -66,7 +64,7 @@ public class MapSheetMngFileJobService {
|
||||
SrchFilesDepthDto srchDto = new SrchFilesDepthDto();
|
||||
List<FIleChecker.Basic> basicList = new ArrayList<>();
|
||||
|
||||
if( mapSheetFileNotYetList.size() >= 1 ){
|
||||
if (mapSheetFileNotYetList.size() >= 1) {
|
||||
mngYyyy = mapSheetFileNotYetList.get(0).getMngYyyy();
|
||||
}
|
||||
|
||||
@@ -124,9 +122,9 @@ public class MapSheetMngFileJobService {
|
||||
if (tfwCnt == 0 && tifCnt == 0) syncState = "NOFILE";
|
||||
|
||||
for (FIleChecker.Basic item2 : basicList) {
|
||||
//System.out.println("path: " + item2.getParentPath());
|
||||
//System.out.println("path: " + item2.getFileNm());
|
||||
//System.out.println("path: " + item2.getFullPath());
|
||||
// System.out.println("path: " + item2.getParentPath());
|
||||
// System.out.println("path: " + item2.getFileNm());
|
||||
// System.out.println("path: " + item2.getFullPath());
|
||||
|
||||
MapSheetMngDto.MngFileAddReq addReq = new MapSheetMngDto.MngFileAddReq();
|
||||
addReq.setMngYyyy(item.getMngYyyy());
|
||||
@@ -178,11 +176,9 @@ public class MapSheetMngFileJobService {
|
||||
if (syncState.isEmpty()) syncState = "DONE";
|
||||
item.setSyncState(syncState);
|
||||
mngHstDataSyncStateUpdate(item);
|
||||
|
||||
}
|
||||
|
||||
Long notyetCnt = this.mngDataStateDoneUpdate(mngYyyy);
|
||||
|
||||
}
|
||||
|
||||
public int checkIsNoFile(List<FileDto.Basic> basicList) {
|
||||
@@ -196,16 +192,12 @@ public class MapSheetMngFileJobService {
|
||||
public Long mngDataStateDoneUpdate(int mngYyyy) {
|
||||
|
||||
Long notyetCnt = 0L;
|
||||
if( mngYyyy > 0 )
|
||||
{
|
||||
if (mngYyyy > 0) {
|
||||
notyetCnt = findByMngYyyyTargetMapSheetNotYetCount(mngYyyy);
|
||||
if( notyetCnt == 0 )
|
||||
{
|
||||
mapSheetMngFileJobCoreService.mngDataState(mngYyyy,"DONE");
|
||||
}
|
||||
else
|
||||
{
|
||||
mapSheetMngFileJobCoreService.mngDataState(mngYyyy,"PROCESSING");
|
||||
if (notyetCnt == 0) {
|
||||
mapSheetMngFileJobCoreService.mngDataState(mngYyyy, "DONE");
|
||||
} else {
|
||||
mapSheetMngFileJobCoreService.mngDataState(mngYyyy, "PROCESSING");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,7 +208,6 @@ public class MapSheetMngFileJobService {
|
||||
return mapSheetMngFileJobCoreService.findTargetMapSheetFileList(targetNum, pageSize);
|
||||
}
|
||||
|
||||
|
||||
public Long findByMngYyyyTargetMapSheetNotYetCount(int mngYyyy) {
|
||||
return mapSheetMngFileJobCoreService.findByMngYyyyTargetMapSheetNotYetCount(mngYyyy);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user