Browse Source

회원탈퇴 수정

feature/auth
qkr7828(박재우) 2 years ago
parent
commit
11d49996c2
  1. 4
      src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java

4
src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java

@ -283,13 +283,17 @@ public class AcntCstmrService {
for(JwtGroupModel group : groupInfo) { for(JwtGroupModel group : groupInfo) {
if(group.getGroupAuthCd().equals("CREATER")) { if(group.getGroupAuthCd().equals("CREATER")) {
PtyGroupBas groupEntity = ptyGroupBasRepository.findByGroupId(group.getGroupId()); PtyGroupBas groupEntity = ptyGroupBasRepository.findByGroupId(group.getGroupId());
if(!(groupEntity == null)) {
groupEntity.setUseYn("N"); groupEntity.setUseYn("N");
ptyGroupBasRepository.save(groupEntity); ptyGroupBasRepository.save(groupEntity);
} }
}
PtyCstmrGroup cstmrEntity = ptyCstmrGroupRepository.findGroupId(group.getGroupId(), cstmrSno); PtyCstmrGroup cstmrEntity = ptyCstmrGroupRepository.findGroupId(group.getGroupId(), cstmrSno);
if(!(cstmrEntity == null)) {
cstmrEntity.setJoinYn("N"); cstmrEntity.setJoinYn("N");
ptyCstmrGroupRepository.save(cstmrEntity); ptyCstmrGroupRepository.save(cstmrEntity);
} }
}
List<PtyCstmrGroup> AprvlEntity = ptyCstmrGroupRepository.changeGroupAprvlYn(cstmrSno); List<PtyCstmrGroup> AprvlEntity = ptyCstmrGroupRepository.changeGroupAprvlYn(cstmrSno);
for(PtyCstmrGroup Aprvl : AprvlEntity) { for(PtyCstmrGroup Aprvl : AprvlEntity) {
Aprvl.setAprvlYn("N"); Aprvl.setAprvlYn("N");

Loading…
Cancel
Save