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); }