|
|
|
@ -274,10 +274,6 @@ public class AcntCstmrService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean userDelete(int cstmrSno) { |
|
|
|
|
PtyCstmrBas userEntity = ptyCstmrBasRepository.findByUserGroupId(cstmrSno); |
|
|
|
|
userEntity.setCstmrStatusCd("W"); |
|
|
|
|
userEntity.setCstmrStatusCngDt(DateUtils.nowDate()); |
|
|
|
|
ptyCstmrBasRepository.save(userEntity); |
|
|
|
|
|
|
|
|
|
List<JwtGroupModel> groupInfo = jwtTokenUtil.getGroupAuthByToken(); |
|
|
|
|
for(JwtGroupModel group : groupInfo) { |
|
|
|
@ -287,19 +283,30 @@ public class AcntCstmrService {
|
|
|
|
|
groupEntity.setUseYn("N"); |
|
|
|
|
ptyGroupBasRepository.save(groupEntity); |
|
|
|
|
} |
|
|
|
|
PtyCstmrGroup cstmrEntity = ptyCstmrGroupRepository.changeGroupJoinYn(group.getGroupId()); |
|
|
|
|
if(!(cstmrEntity == null)) { |
|
|
|
|
cstmrEntity.setJoinYn("N"); |
|
|
|
|
ptyCstmrGroupRepository.save(cstmrEntity); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
List<PtyCstmrGroup> AprvlEntity = ptyCstmrGroupRepository.changeGroupAprvlYn(cstmrSno); |
|
|
|
|
if(!(AprvlEntity == null)) { |
|
|
|
|
for(PtyCstmrGroup Aprvl : AprvlEntity) { |
|
|
|
|
Aprvl.setAprvlYn("N"); |
|
|
|
|
Aprvl.setAprvlDt(null); |
|
|
|
|
ptyCstmrGroupRepository.save(Aprvl); |
|
|
|
|
} |
|
|
|
|
PtyCstmrGroup cstmrEntity = ptyCstmrGroupRepository.findGroupId(group.getGroupId(), cstmrSno); |
|
|
|
|
if(!(cstmrEntity == null)) { |
|
|
|
|
cstmrEntity.setJoinYn("N"); |
|
|
|
|
ptyCstmrGroupRepository.save(cstmrEntity); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
List<PtyCstmrGroup> AprvlEntity = ptyCstmrGroupRepository.changeGroupAprvlYn(cstmrSno); |
|
|
|
|
for(PtyCstmrGroup Aprvl : AprvlEntity) { |
|
|
|
|
Aprvl.setAprvlYn("N"); |
|
|
|
|
Aprvl.setAprvlDt(null); |
|
|
|
|
ptyCstmrGroupRepository.save(Aprvl); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
PtyCstmrBas userEntity = ptyCstmrBasRepository.findByUserGroupId(cstmrSno); |
|
|
|
|
userEntity.setCstmrStatusCd("W"); |
|
|
|
|
userEntity.setCstmrStatusCngDt(DateUtils.nowDate()); |
|
|
|
|
ptyCstmrBasRepository.save(userEntity); |
|
|
|
|
|
|
|
|
|
boolean result = true; |
|
|
|
|
return result; |
|
|
|
|