|
|
|
@ -557,9 +557,9 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe
|
|
|
|
|
.pg("1")
|
|
|
|
|
.fg2("") // 보고 유형: ""- 전체, 0-신규, 1-취소, 2-변경
|
|
|
|
|
.se("AAR") // 보고구분: AAR-폐기
|
|
|
|
|
.sdt(reqDto.getHdrDe())
|
|
|
|
|
.edt(reqDto.getHdrDe())
|
|
|
|
|
.bc(reqDto.getBsshCd())
|
|
|
|
|
.sdt(dsuseMgtDto.getHdrDe())
|
|
|
|
|
.edt(dsuseMgtDto.getHdrDe())
|
|
|
|
|
.bc(dsuseMgtDto.getBsshCd())
|
|
|
|
|
.gc(apiInfInfo.get("deptCd"))
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
@ -984,9 +984,14 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe
|
|
|
|
|
* @return fileId
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String uploadFileAndSave(String infoType, String infoKey, String subType, MultipartFile mf) {
|
|
|
|
|
private String uploadFileAndSave(String infType, String infKey, String subType, MultipartFile mf) {
|
|
|
|
|
String fileId = bizNimsMapper.selectFileId(Map.of("infType", infType, "infKey", infKey, "subType", subType));
|
|
|
|
|
if(!isEmpty(fileId)){
|
|
|
|
|
fileService.delete(new String[]{fileId});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MultipartFile[] uploads = Arrays.asList(mf).toArray(new MultipartFile[0]);
|
|
|
|
|
List<FileInfo> files = (new FileInfoFactory()).makeFileInfos((new FileInfo.Relation()).setInfoType(infoType).setInfoKey(infoKey).setSubType(subType), uploads);
|
|
|
|
|
List<FileInfo> files = (new FileInfoFactory()).makeFileInfos((new FileInfo.Relation()).setInfoType(infType).setInfoKey(infKey).setSubType(subType), uploads);
|
|
|
|
|
fileService.create(files);
|
|
|
|
|
|
|
|
|
|
return files.get(0).getId();
|
|
|
|
|