From 4733ce061b0a121649f3fbabe0bc76f6fba72f01 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Mon, 2 May 2022 21:19:16 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=8C=8C=EC=9D=BC=EC=9D=B4=20?= =?UTF-8?q?=EC=97=86=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20file=20name=20"FileNo?= =?UTF-8?q?tFound"=20return?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xit/biz/cmm/controller/CmmFileController.java | 7 +++++-- .../ctgy/controller/ResidentAndDisabledController.java | 9 ++------- src/main/java/com/xit/biz/ctgy/dto/JudgeListDto.java | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/xit/biz/cmm/controller/CmmFileController.java b/src/main/java/com/xit/biz/cmm/controller/CmmFileController.java index d800950..d50a9ba 100644 --- a/src/main/java/com/xit/biz/cmm/controller/CmmFileController.java +++ b/src/main/java/com/xit/biz/cmm/controller/CmmFileController.java @@ -107,7 +107,9 @@ public class CmmFileController { contentType = Files.probeContentType(path); fileSize = Files.size(path); } catch (IOException e) { - throw new CustomBaseException(ErrorCode.FILE_NOT_FOUND); + //throw new CustomBaseException(ErrorCode.FILE_NOT_FOUND); + contentType = "application/octet-stream"; + fileName = "FileNotFound"; } File file = new File(absFile); @@ -115,7 +117,8 @@ public class CmmFileController { try { fileByte = FileUtils.readFileToByteArray(file); } catch (IOException e) { - throw new CustomBaseException(ErrorCode.FILE_NOT_FOUND); + fileByte = new byte[0]; + //throw new CustomBaseException(ErrorCode.FILE_NOT_FOUND); } response.setContentType(contentType); diff --git a/src/main/java/com/xit/biz/ctgy/controller/ResidentAndDisabledController.java b/src/main/java/com/xit/biz/ctgy/controller/ResidentAndDisabledController.java index c28867c..62bec2f 100644 --- a/src/main/java/com/xit/biz/ctgy/controller/ResidentAndDisabledController.java +++ b/src/main/java/com/xit/biz/ctgy/controller/ResidentAndDisabledController.java @@ -179,15 +179,10 @@ public class ResidentAndDisabledController { //--------------------------------------------------------------------------------- // 심사자 //--------------------------------------------------------------------------------- - //@Secured(policy = SecurityPolicy.TOKEN) + @Secured(policy = SecurityPolicy.TOKEN) @Operation(summary = "심사자별 거주자/장애인 의견진술 심의목록 조회" , description = "심사자별 거주자/장애인 의견진술 심의목록 조회") @Parameters({ - @Parameter(in = ParameterIn.QUERY, name = "msDatagb", description = "데이타구분(1-거주자, 2-장애인)", required = true, example = "1"), - //@Parameter(in = ParameterIn.QUERY, name = "scYear", description = "심사년도", required = true, example = "2021"), - //@Parameter(in = ParameterIn.QUERY, name = "scChasu", description = "차수", required = false, example = " "), - //@Parameter(in = ParameterIn.QUERY, name = "page", description = "페이지", required = true, example = "0"), - //@Parameter(in = ParameterIn.QUERY, name = "size", description = "페이지당갯수", required = true, example = "10") - + @Parameter(in = ParameterIn.QUERY, name = "msDatagb", description = "데이타구분(1-거주자, 2-장애인)", required = true, example = "1") }) @GetMapping(value = "/judge", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity findByUserJudges( diff --git a/src/main/java/com/xit/biz/ctgy/dto/JudgeListDto.java b/src/main/java/com/xit/biz/ctgy/dto/JudgeListDto.java index 960ad6d..8580ac2 100644 --- a/src/main/java/com/xit/biz/ctgy/dto/JudgeListDto.java +++ b/src/main/java/com/xit/biz/ctgy/dto/JudgeListDto.java @@ -43,7 +43,7 @@ public class JudgeListDto { private String msuTeam; @Schema(title = "민원코드", example = " ", description = "민원코드") - private Long msMainCode; + private Long msMaincode; @Schema(title = "접수번호", example = " ", description = "접수번호") private String msSeq; @Schema(title = "차량번호", example = " ", description = "차량번호")