|
|
@ -316,7 +316,7 @@ public class NiceCiApiStatusDTO {
|
|
|
|
// FIXME: 인코딩확인후 필요시 사용
|
|
|
|
// FIXME: 인코딩확인후 필요시 사용
|
|
|
|
//String tgtString = new String(tgtStr.getBytes(), StandardCharsets.UTF_8);
|
|
|
|
//String tgtString = new String(tgtStr.getBytes(), StandardCharsets.UTF_8);
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(tgtString) && NiceCiUtils.lengthKr(tgtString) >= 1290) {
|
|
|
|
if (StringUtils.isNotBlank(tgtString) && NiceCiUtils.lengthKr(tgtString) >= 140) {
|
|
|
|
Response nr = new Response();
|
|
|
|
Response nr = new Response();
|
|
|
|
int idx = 0;
|
|
|
|
int idx = 0;
|
|
|
|
nr.setTrnscId(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
nr.setTrnscId(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
@ -334,7 +334,7 @@ public class NiceCiApiStatusDTO {
|
|
|
|
nr.setRspnsCo(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
nr.setRspnsCo(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
|
|
if(NiceCiUtils.lengthKr(tgtString) % repeatLength == 0){
|
|
|
|
if(NiceCiUtils.lengthKr(tgtString) > 0 && NiceCiUtils.lengthKr(tgtString) % repeatLength == 0){
|
|
|
|
int repeat = NiceCiUtils.lengthKr(tgtString) / repeatLength;
|
|
|
|
int repeat = NiceCiUtils.lengthKr(tgtString) / repeatLength;
|
|
|
|
String finalTgtString = tgtString;
|
|
|
|
String finalTgtString = tgtString;
|
|
|
|
List<NiceCiApiResult> resResults = IntStream.range(0, repeat)
|
|
|
|
List<NiceCiApiResult> resResults = IntStream.range(0, repeat)
|
|
|
@ -344,6 +344,10 @@ public class NiceCiApiStatusDTO {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
nr.setNiceCiResults(resResults);
|
|
|
|
nr.setNiceCiResults(resResults);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if((NiceCiUtils.lengthKr(tgtString) != 0)){
|
|
|
|
|
|
|
|
throw new EnsException(EnsErrCd.INVALID_RESPONSE, "NICE CI 상태(이력) 조회 응답 반복부 전문 오류:: length - " + NiceCiUtils.lengthKr(tgtString));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nr;
|
|
|
|
return nr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|