|
|
@ -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 javax.transaction.Transactional;
|
|
|
|
|
|
|
|
import javax.validation.ConstraintViolation;
|
|
|
|
import javax.validation.ConstraintViolation;
|
|
|
|
import javax.validation.Validation;
|
|
|
|
import javax.validation.Validation;
|
|
|
|
import javax.validation.Validator;
|
|
|
|
import javax.validation.Validator;
|
|
|
@ -23,10 +22,14 @@ import kr.xit.biz.ens.model.nice.NiceCiDTO.IpinCiResDataBody;
|
|
|
|
import kr.xit.biz.ens.model.nice.NiceCiDTO.IpinCiResEncData;
|
|
|
|
import kr.xit.biz.ens.model.nice.NiceCiDTO.IpinCiResEncData;
|
|
|
|
import kr.xit.biz.ens.model.nice.NiceCiDTO.NiceCiRequest;
|
|
|
|
import kr.xit.biz.ens.model.nice.NiceCiDTO.NiceCiRequest;
|
|
|
|
import kr.xit.biz.sisul.mapper.IBizSisulMapper;
|
|
|
|
import kr.xit.biz.sisul.mapper.IBizSisulMapper;
|
|
|
|
|
|
|
|
import kr.xit.biz.sisul.model.SisulSndngResultDTO.RsltSisulRequest;
|
|
|
|
|
|
|
|
import kr.xit.biz.sisul.model.SisulSndngResultDTO.RsltSisulResDtlData;
|
|
|
|
|
|
|
|
import kr.xit.biz.sisul.model.SisulSndngResultDTO.RsltSisulResMstData;
|
|
|
|
import kr.xit.core.exception.BizRuntimeException;
|
|
|
|
import kr.xit.core.exception.BizRuntimeException;
|
|
|
|
import kr.xit.core.spring.util.ApiWebClientUtil;
|
|
|
|
import kr.xit.core.spring.util.ApiWebClientUtil;
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
import kr.xit.core.support.xlsx.StreamingReader;
|
|
|
|
import kr.xit.core.support.xlsx.StreamingReader;
|
|
|
|
|
|
|
|
import kr.xit.ens.cmm.CmmEnsUtils;
|
|
|
|
import kr.xit.ens.nice.cmm.CmmNiceCiUtils;
|
|
|
|
import kr.xit.ens.nice.cmm.CmmNiceCiUtils;
|
|
|
|
import kr.xit.ens.nice.service.INiceCiService;
|
|
|
|
import kr.xit.ens.nice.service.INiceCiService;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@ -39,6 +42,7 @@ import org.apache.poi.ss.usermodel.Sheet;
|
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
|
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
|
|
|
import org.egovframe.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -98,6 +102,23 @@ public class BizSisulService extends EgovAbstractServiceImpl implements IBizSisu
|
|
|
|
return makeCntc(rslts, fmcExcels, fileReq);
|
|
|
|
return makeCntc(rslts, fmcExcels, fileReq);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
|
|
|
|
public RsltSisulResMstData findSndngResultMaster(final RsltSisulRequest reqDTO) {
|
|
|
|
|
|
|
|
CmmEnsUtils.validate(reqDTO);
|
|
|
|
|
|
|
|
return mapper.selectSndngResultMaster(reqDTO)
|
|
|
|
|
|
|
|
.orElseThrow(() -> BizRuntimeException.create(String.format("[%s] 데이타를 찾을 수 없습니다", reqDTO.getUnitySndngMastrId())));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
|
|
|
|
public List<RsltSisulResDtlData> findSndngResultDetails(final RsltSisulRequest reqDTO) {
|
|
|
|
|
|
|
|
CmmEnsUtils.validate(reqDTO);
|
|
|
|
|
|
|
|
List<RsltSisulResDtlData> resList = mapper.selectSndngResultDetails(reqDTO);
|
|
|
|
|
|
|
|
if(resList.isEmpty()) throw BizRuntimeException.create(String.format("[%s] 데이타를 찾을 수 없습니다", reqDTO.getUnitySndngMastrId()));
|
|
|
|
|
|
|
|
return mapper.selectSndngResultDetails(reqDTO);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private List<FmcInfExcel> parsingFmcExcel(MultipartFile mf) {
|
|
|
|
private List<FmcInfExcel> parsingFmcExcel(MultipartFile mf) {
|
|
|
|
final List<FmcInfExcel> fmcExcels = new ArrayList<>();
|
|
|
|
final List<FmcInfExcel> fmcExcels = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|