From 11d49996c230bcbaeda12276fad54203a978ce3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?qkr7828=28=EB=B0=95=EC=9E=AC=EC=9A=B0=29?= <박재우@DESKTOP-EF7ECBO> Date: Fri, 23 Sep 2022 10:37:28 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EC=9B=90=ED=83=88=ED=87=B4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/api/acnt/cstmr/service/AcntCstmrService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java b/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java index b8750c1..6729991 100644 --- a/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java +++ b/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java @@ -283,12 +283,16 @@ public class AcntCstmrService { for(JwtGroupModel group : groupInfo) { if(group.getGroupAuthCd().equals("CREATER")) { PtyGroupBas groupEntity = ptyGroupBasRepository.findByGroupId(group.getGroupId()); - groupEntity.setUseYn("N"); - ptyGroupBasRepository.save(groupEntity); + if(!(groupEntity == null)) { + groupEntity.setUseYn("N"); + ptyGroupBasRepository.save(groupEntity); + } } PtyCstmrGroup cstmrEntity = ptyCstmrGroupRepository.findGroupId(group.getGroupId(), cstmrSno); + if(!(cstmrEntity == null)) { cstmrEntity.setJoinYn("N"); ptyCstmrGroupRepository.save(cstmrEntity); + } } List AprvlEntity = ptyCstmrGroupRepository.changeGroupAprvlYn(cstmrSno); for(PtyCstmrGroup Aprvl : AprvlEntity) {