From 6b4cc01b8ce7db54cb11fd21f93289c7cee65f84 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 11:35:16 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EC=9B=90=ED=83=88=ED=87=B4=20Reposito?= =?UTF-8?q?ry=20=EC=A1=B0=EA=B1=B4=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/api/acnt/cstmr/service/AcntCstmrService.java | 8 +++++--- .../biz/jpa/repository/pty/PtyCstmrGroupRepository.java | 2 +- 2 files changed, 6 insertions(+), 4 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 acf3a5b..387fcdc 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,10 +283,12 @@ public class AcntCstmrService { groupEntity.setUseYn("N"); ptyGroupBasRepository.save(groupEntity); } - PtyCstmrGroup cstmrEntity = ptyCstmrGroupRepository.changeGroupJoinYn(group.getGroupId()); + List cstmrEntity = ptyCstmrGroupRepository.changeGroupJoinYn(group.getGroupId()); if(!(cstmrEntity == null)) { - cstmrEntity.setJoinYn("N"); - ptyCstmrGroupRepository.save(cstmrEntity); + for(PtyCstmrGroup cstmr : cstmrEntity) { + cstmr.setJoinYn("N"); + ptyCstmrGroupRepository.save(cstmr); + } } } List AprvlEntity = ptyCstmrGroupRepository.changeGroupAprvlYn(cstmrSno); diff --git a/src/main/java/com/palnet/biz/jpa/repository/pty/PtyCstmrGroupRepository.java b/src/main/java/com/palnet/biz/jpa/repository/pty/PtyCstmrGroupRepository.java index ab965ad..a16c27b 100644 --- a/src/main/java/com/palnet/biz/jpa/repository/pty/PtyCstmrGroupRepository.java +++ b/src/main/java/com/palnet/biz/jpa/repository/pty/PtyCstmrGroupRepository.java @@ -20,7 +20,7 @@ public interface PtyCstmrGroupRepository extends JpaRepository changeGroupJoinYn(@Param("groupId") String groupId); @Query("select p from PtyCstmrGroup p " + "where p.cstmrSno = :cstmrSno " )