feat: post plus 적용

dev
gitea-관리자 1 year ago
parent 5c9bf0bc1f
commit 08f3a93690

@ -8,7 +8,6 @@ import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.UUID;
import javax.transaction.Transactional; import javax.transaction.Transactional;
import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolation;
import javax.validation.Validation; import javax.validation.Validation;
@ -96,12 +95,7 @@ public class CmmEnsFileService extends EgovAbstractServiceImpl implements ICmmEn
List<FmcInfExcelRslt> rslts = getConvertCis(fileReq, fmcExcels); List<FmcInfExcelRslt> rslts = getConvertCis(fileReq, fmcExcels);
// CNTC 테이블 insert // CNTC 테이블 insert
String msg = makeCntc(rslts, fmcExcels, fileReq); return makeCntc(rslts, fmcExcels, fileReq);
fileReq.setSndngCo(fmcExcels.size());
fileReq.setUnitySndngMastrId(UUID.randomUUID().toString().replaceAll("-", ""));
return msg;
} }
private List<FmcInfExcel> parsingFmcExcel(MultipartFile mf) { private List<FmcInfExcel> parsingFmcExcel(MultipartFile mf) {
@ -266,6 +260,8 @@ public class CmmEnsFileService extends EgovAbstractServiceImpl implements ICmmEn
); );
} }
} }
fileReq.setSndngCo(fmcExcels.size());
if(fmcExcels.size() != rslts.size()) throw BizRuntimeException.create( if(fmcExcels.size() != rslts.size()) throw BizRuntimeException.create(
String.format( String.format(
"CI 전환 오류 %s[변환대상-%d건, 변환완료-%d건, 변환오류-%d건]", "CI 전환 오류 %s[변환대상-%d건, 변환완료-%d건, 변환오류-%d건]",
@ -304,6 +300,7 @@ public class CmmEnsFileService extends EgovAbstractServiceImpl implements ICmmEn
//최초 1회 CNTC master 생성 //최초 1회 CNTC master 생성
if(StringUtils.isNotEmpty(dto.getUnitySndngMastrId()) && mst == 0){ if(StringUtils.isNotEmpty(dto.getUnitySndngMastrId()) && mst == 0){
unitySndngMastrId = dto.getUnitySndngMastrId(); unitySndngMastrId = dto.getUnitySndngMastrId();
fileReq.setUnitySndngMastrId(unitySndngMastrId);
mapper.insertCntcSndngMst( mapper.insertCntcSndngMst(
CntcDTO.SndngMst.builder() CntcDTO.SndngMst.builder()
.unitySndngMastrId(dto.getUnitySndngMastrId()) .unitySndngMastrId(dto.getUnitySndngMastrId())

Loading…
Cancel
Save