|
|
|
@ -79,7 +79,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
|
|
|
|
|
|
|
|
|
|
// 사용자 권한
|
|
|
|
|
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
|
|
|
|
|
userScrtySetupVO.setScrtySetupTrgetId(vo.getUserId());
|
|
|
|
|
userScrtySetupVO.setUserId(vo.getUserId());
|
|
|
|
|
userScrtySetupVO.setAuthId(this.getDefaultAuthId(vo.getGrpId()));
|
|
|
|
|
mapper.insertUserScrtySetup(userScrtySetupVO);
|
|
|
|
|
|
|
|
|
@ -116,10 +116,10 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
|
|
|
|
|
//그룹ID가 변경되었을 경우 사용자의 권한 갱신
|
|
|
|
|
if(!Objects.equals(vo.getGrpId(), userInfoCheckMap.get("grp_id"))) {
|
|
|
|
|
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
|
|
|
|
|
userScrtySetupVO.setScrtySetupTrgetId(vo.getUniqId());
|
|
|
|
|
userScrtySetupVO.setUserId(vo.getUniqId());
|
|
|
|
|
userScrtySetupVO.setAuthId(this.getDefaultAuthId(vo.getGrpId()));
|
|
|
|
|
|
|
|
|
|
if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getScrtySetupTrgetId()))) {
|
|
|
|
|
if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getUserId()))) {
|
|
|
|
|
mapper.insertUserScrtySetup(userScrtySetupVO);
|
|
|
|
|
}else {
|
|
|
|
|
mapper.updateUserScrtySetup(userScrtySetupVO);
|
|
|
|
@ -132,11 +132,11 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
|
|
|
|
|
|
|
|
|
|
//업무사용자 삭제
|
|
|
|
|
Map<String,Object> userInfoCheckMap = mapper.selectCheckUserInfo(userId);
|
|
|
|
|
String scrtySetupTrgetId = String.valueOf(userInfoCheckMap.get("user_id"));
|
|
|
|
|
String userId = String.valueOf(userInfoCheckMap.get("user_id"));
|
|
|
|
|
|
|
|
|
|
//사용자보안설정 삭제
|
|
|
|
|
if(Checks.isNotEmpty(mapper.selectUserScrtySetup(scrtySetupTrgetId))) {
|
|
|
|
|
mapper.deleteUserScrtySetup(scrtySetupTrgetId);
|
|
|
|
|
if(Checks.isNotEmpty(mapper.selectUserScrtySetup(userId))) {
|
|
|
|
|
mapper.deleteUserScrtySetup(userId);
|
|
|
|
|
}
|
|
|
|
|
//사용자정보변경내역 전체 삭제
|
|
|
|
|
mapper.deleteUserInfoChangeDtlsList(userId);
|
|
|
|
|