From fc00125bace42ddbdc56535c52f893495d6398f3 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 3 Jul 2024 09:19:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=A0=EC=B2=AD=EC=84=9C=EC=A0=91?= =?UTF-8?q?=EC=88=98=20=ED=8F=90=EA=B8=B0=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20fix=20=20=20=20=20=20->=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=20=EC=98=A4=EB=A5=98(=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=EB=93=B1)=20=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C,=20=EB=98=90=EB=8A=94=20=EB=B3=80=EA=B2=BD=EC=8B=9C?= =?UTF-8?q?=20DB=20=ED=8C=8C=EC=9D=BC=20=EC=A0=95=EB=B3=B4=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/adds/biz/nims/service/bean/BizNimsServiceBean.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java index 7375058..5912074 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java +++ b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java @@ -293,7 +293,6 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe fileService.delete(fileIds); } - // 폐기관리 상세 삭제 bizNimsMapper.deleteDsuseMgtDtl(reqDto.getDscdmngId()); @@ -932,10 +931,13 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe * */ private String uploadFileDeleteAndSave(String infType, String infKey, String subType, MultipartFile mf) { - String[] fileIds = bizNimsMapper.selectFileId(Map.of("infType", infType, "infKey", infKey, "subType", subType)); + Map map = Map.of("infType", infType, "infKey", infKey, "subType", subType); + String[] fileIds = bizNimsMapper.selectFileId(map); if(fileIds.length > 0){ fileService.delete(fileIds); } + // DB 파일 정보 삭제 + bizNimsMapper.deleteFileInfo(map); return uploadFileSave(infType, infKey, subType, mf); }