|
|
|
@ -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
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String uploadFileDeleteAndSave(String infType, String infKey, String subType, MultipartFile mf) {
|
|
|
|
|
String[] fileIds = bizNimsMapper.selectFileId(Map.of("infType", infType, "infKey", infKey, "subType", subType));
|
|
|
|
|
Map<String, String> 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);
|
|
|
|
|
}
|
|
|
|
|