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 " )