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(); } /**