From dd5b4d26b16ecbe8d8bd3c207a31e82bb7a4aa6d Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Mon, 7 Oct 2024 12:04:03 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20NICE=20CI=20=EC=9D=B8=EC=A6=9D=ED=86=A1?= =?UTF-8?q?=20=EC=A7=84=ED=96=89=20-=20sendBulk=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nice/service/NiceCiSendBulkService.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiSendBulkService.java b/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiSendBulkService.java index c13e235..add2b33 100644 --- a/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiSendBulkService.java +++ b/src/main/java/cokr/xit/ens/modules/nice/service/NiceCiSendBulkService.java @@ -106,10 +106,25 @@ public class NiceCiSendBulkService { log.info(responseVO.toString()); return responseVO; } - } catch (Exception e) { + xit.setPrcsCd(IupPrcsCd.IPCP.getCode()); + niceCiMapper.updatePrcsCdOfInputXit(xit); + + // FIXME: API 호출 에러 + } catch (EnsException e) { + + if(EnsErrCd.API_COMM_ERROR.equals(e.getErrCd())){ + xit.setPrcsCd(IupPrcsCd.FAIL.getCode()); + niceCiMapper.updatePrcsCdOfInputXit(xit); + } + + } catch (Exception e){ + xit.setPrcsCd(IupPrcsCd.FAIL.getCode()); + niceCiMapper.updatePrcsCdOfInputXit(xit); } } - return null; + return EnsResponseVO.okBuilder() + //.resultInfo(niceCiMapper.selectAcceptTgts(null)) + .build(); } /**