refactor : 유저 테이블 수정

main
이범준 1 year ago
parent f55794df56
commit 802346a1e0

@ -51,7 +51,7 @@ public class XitLoginVO implements Serializable{
/** /**
* ID * ID
* */ * */
private String groupId; private String grpId;
/** /**
* - (sgg_cd) * - (sgg_cd)
@ -91,7 +91,7 @@ public class XitLoginVO implements Serializable{
this.userSe = USER_SE.USR.name(); this.userSe = USER_SE.USR.name();
this.orgId = vo.getOrgId(); this.orgId = vo.getOrgId();
this.orgnztNm = vo.getOrgnztNm(); this.orgnztNm = vo.getOrgnztNm();
this.groupId = vo.getGroupId(); this.grpId = vo.getGrpId();
this.pstinstCode = vo.getPstinstCode(); this.pstinstCode = vo.getPstinstCode();
this.uniqId = vo.getEsntlId(); this.uniqId = vo.getEsntlId();
this.jobDataAuthor = vo.getJobDataAuthor(); this.jobDataAuthor = vo.getJobDataAuthor();

@ -21,7 +21,7 @@ public class XitUserInfoChangeDtlsVO extends BaseVO {
protected String user_id; //사용자 id protected String user_id; //사용자 id
protected String change_de; //변경 일 protected String change_de; //변경 일
protected String org_id; //조직 id protected String org_id; //조직 id
protected String group_id; //그룹 id protected String grp_id; //그룹 id
protected String empl_no; //사원 번호 protected String empl_no; //사원 번호
protected String sexdstn_code; //성별 코드 protected String sexdstn_code; //성별 코드
protected String brthdy; //생일 protected String brthdy; //생일
@ -57,11 +57,11 @@ public class XitUserInfoChangeDtlsVO extends BaseVO {
public void setOrg_id(String org_id) { public void setOrg_id(String org_id) {
this.org_id = org_id; this.org_id = org_id;
} }
public String getGroup_id() { public String getGrp_id() {
return group_id; return grp_id;
} }
public void setGroup_id(String group_id) { public void setGrp_id(String grp_id) {
this.group_id = group_id; this.grp_id = grp_id;
} }
public String getEmpl_no() { public String getEmpl_no() {
return empl_no; return empl_no;

@ -70,12 +70,12 @@ public interface XitFrameCodeService {
/** /**
* <pre> : </pre> * <pre> : </pre>
* @param tableNm * @param tableNm
* @param groupId ID * @param grpId ID
* @return Map<String,String> * @return Map<String,String>
* @author: * @author:
* @date: 2020. 4. 8. * @date: 2020. 4. 8.
*/ */
public XitCodeVO findGroupCode(String tableNm, String groupId); public XitCodeVO findGroupCode(String tableNm, String grpId);
/** /**
* <pre> : </pre> * <pre> : </pre>
* @param tableNm * @param tableNm

@ -278,12 +278,12 @@ public interface XitFrameUnitService {
* - (Empty) "일반사용자(ROLE_USER)" * - (Empty) "일반사용자(ROLE_USER)"
* - * -
* </pre> * </pre>
* @param groupId ID * @param grpId ID
* @return String * @return String
* @author: * @author:
* @date: 2020. 10. 30. * @date: 2020. 10. 30.
*/ */
public String getDefaultAuthorCode(String groupId); public String getDefaultAuthorCode(String grpId);

@ -160,13 +160,13 @@ public class XitFrameCodeServiceBean extends AbstractServiceBean implements XitF
} }
@Override @Override
public XitCodeVO findGroupCode(String tableNm, String groupId) { public XitCodeVO findGroupCode(String tableNm, String grpId) {
/** /**
* *
*/ */
if(XitCmmnUtil.isEmpty(tableNm)) if(XitCmmnUtil.isEmpty(tableNm))
throw new RuntimeException("테이블명(은)는 필수조건 입니다."); throw new RuntimeException("테이블명(은)는 필수조건 입니다.");
if(XitCmmnUtil.isEmpty(groupId)) if(XitCmmnUtil.isEmpty(grpId))
throw new RuntimeException("그룹ID(은)는 필수조건 입니다."); throw new RuntimeException("그룹ID(은)는 필수조건 입니다.");
/** /**
@ -174,7 +174,7 @@ public class XitFrameCodeServiceBean extends AbstractServiceBean implements XitF
*/ */
Map<String, String> m = new HashMap<String, String>(); Map<String, String> m = new HashMap<String, String>();
m.put("tableNm", tableNm); m.put("tableNm", tableNm);
m.put("groupId", groupId); m.put("grpId", grpId);
/** /**
* *

@ -39,7 +39,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
// * 필수조건 확인 // * 필수조건 확인
// */ // */
// String emsg = null; // String emsg = null;
// if(XitCmmnUtil.isEmpty(vo.getGroup_id())) // if(XitCmmnUtil.isEmpty(vo.getGrp_id()))
// emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table); // emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table);
// if(emsg!=null){ // if(emsg!=null){
// logger.error(emsg); // logger.error(emsg);
@ -70,7 +70,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getGroupId())) if(XitCmmnUtil.isEmpty(vo.getGrpId()))
emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table); emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -101,7 +101,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getGroupId())) if(XitCmmnUtil.isEmpty(vo.getGrpId()))
emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table); emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -134,7 +134,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getGroupId())) if(XitCmmnUtil.isEmpty(vo.getGrpId()))
emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table); emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -167,7 +167,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getGroupId())) if(XitCmmnUtil.isEmpty(vo.getGrpId()))
emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table); emsg = String.format("(%s)그룹ID(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);

@ -464,19 +464,19 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* - * -
* </pre> * </pre>
* *
* @param groupId ID * @param grpId ID
* @return String * @return String
* @author: * @author:
* @date: 2020. 10. 30. * @date: 2020. 10. 30.
*/ */
@Override @Override
public String getDefaultAuthorCode(String groupId) { public String getDefaultAuthorCode(String grpId) {
if (XitCmmnUtil.isEmpty(groupId)) if (XitCmmnUtil.isEmpty(grpId))
return "ROLE_USER"; return "ROLE_USER";
// 그룹의 권한 조회 // 그룹의 권한 조회
XitAuthorGroupInfoVO groupInfo = new XitAuthorGroupInfoVO(); XitAuthorGroupInfoVO groupInfo = new XitAuthorGroupInfoVO();
groupInfo.setGroupId(groupId); groupInfo.setGrpId(grpId);
groupInfo = xitFrameCrudService.findXitAuthorGroupInfo(groupInfo); groupInfo = xitFrameCrudService.findXitAuthorGroupInfo(groupInfo);
// 권한 설정 // 권한 설정
if (XitCmmnUtil.isEmpty(groupInfo)) if (XitCmmnUtil.isEmpty(groupInfo))

@ -51,7 +51,7 @@ public class XitSessionMapping extends EgovUsersByUsernameMapping {
String strUserSe = rs.getString("user_se"); String strUserSe = rs.getString("user_se");
String strUserEmail = rs.getString("user_email"); String strUserEmail = rs.getString("user_email");
String strOrgId = rs.getString("org_id"); String strOrgId = rs.getString("org_id");
String strGroupId = rs.getString("group_id"); String strGrpId = rs.getString("grp_id");
String strPstinstCode = rs.getString("pstinst_code"); String strPstinstCode = rs.getString("pstinst_code");
String strOrgnztNm = rs.getString("orgnzt_nm"); String strOrgnztNm = rs.getString("orgnzt_nm");
String strUniqId = rs.getString("esntl_id"); String strUniqId = rs.getString("esntl_id");
@ -74,7 +74,7 @@ public class XitSessionMapping extends EgovUsersByUsernameMapping {
loginVO.setOrgId(strOrgId); //조직(부서)ID - (시스템코드-sysSeCd) loginVO.setOrgId(strOrgId); //조직(부서)ID - (시스템코드-sysSeCd)
loginVO.setOrgnztNm(strOrgnztNm); //조직(부서)ID 명 loginVO.setOrgnztNm(strOrgnztNm); //조직(부서)ID 명
loginVO.setUniqId(strUniqId); //고유아이디 loginVO.setUniqId(strUniqId); //고유아이디
loginVO.setGroupId(strGroupId); //그룹 loginVO.setGrpId(strGrpId); //그룹
loginVO.setPstinstCode(strPstinstCode); //소속기관-업무그룹(sgg_cd) loginVO.setPstinstCode(strPstinstCode); //소속기관-업무그룹(sgg_cd)
loginVO.setJobDataAuthor(strJobDataAuthor); //업무 데이터 권한 loginVO.setJobDataAuthor(strJobDataAuthor); //업무 데이터 권한
loginVO.setUserManageAuthor(strUserManageAuthor); //사용자 관리 권한 loginVO.setUserManageAuthor(strUserManageAuthor); //사용자 관리 권한

@ -125,7 +125,7 @@ public class XitFrameAnonymousController extends AbstractController {
model.addAttribute("sexdstnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT014")); //성별구분코드 목록 model.addAttribute("sexdstnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT014")); //성별구분코드 목록
model.addAttribute("pstinstCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT025")); //소속기관코드 목록 model.addAttribute("pstinstCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT025")); //소속기관코드 목록
model.addAttribute("orgId_result" , xitFrameCodeService.findOrgnztCodes("XIT_ORGNZT_INFO")); //조직정보코드 목록 model.addAttribute("orgId_result" , xitFrameCodeService.findOrgnztCodes("XIT_ORGNZT_INFO")); //조직정보코드 목록
model.addAttribute("groupId_result" , xitFrameCodeService.findGroupCodes("XIT_ORGNZT_INFO")); //그룹정보코드 목록 model.addAttribute("grpId_result" , xitFrameCodeService.findGroupCodes("XIT_ORGNZT_INFO")); //그룹정보코드 목록
break; break;
case "inputEvr": //(일반/기업/업무사용자) 회원가입 페이지 case "inputEvr": //(일반/기업/업무사용자) 회원가입 페이지
@ -135,7 +135,7 @@ public class XitFrameAnonymousController extends AbstractController {
// //모든 사용자 공통 // //모든 사용자 공통
// model.addAttribute("passwordHint_result" , xitFrameCodeService.findCmmnDetailCodes("XIT022")); //패스워트힌트코드 목록 // model.addAttribute("passwordHint_result" , xitFrameCodeService.findCmmnDetailCodes("XIT022")); //패스워트힌트코드 목록
// model.addAttribute("sexdstnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT014")); //성별구분코드 목록 // model.addAttribute("sexdstnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT014")); //성별구분코드 목록
// model.addAttribute("groupId_result" , xitFrameCodeService.findGroupCodes("XIT_ORGNZT_INFO")); //그룹정보코드 목록 // model.addAttribute("grpId_result" , xitFrameCodeService.findGroupCodes("XIT_ORGNZT_INFO")); //그룹정보코드 목록
// List<XitCodeVO> userSttus_result = xitFrameCodeService.findCmmnDetailCodes("XIT013"); // List<XitCodeVO> userSttus_result = xitFrameCodeService.findCmmnDetailCodes("XIT013");
// //
// //일반회원 // //일반회원
@ -183,7 +183,7 @@ public class XitFrameAnonymousController extends AbstractController {
================*/ ================*/
model.addAttribute("passwordHint_result" , xitFrameCodeService.findCmmnDetailCodes("XIT022")); //패스워트힌트코드 목록 model.addAttribute("passwordHint_result" , xitFrameCodeService.findCmmnDetailCodes("XIT022")); //패스워트힌트코드 목록
model.addAttribute("sexdstnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT014")); //성별구분코드 목록 model.addAttribute("sexdstnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT014")); //성별구분코드 목록
model.addAttribute("groupId_result" , xitFrameCodeService.findGroupCodes("XIT_ORGNZT_INFO")); //그룹정보코드 목록 model.addAttribute("grpId_result" , xitFrameCodeService.findGroupCodes("XIT_ORGNZT_INFO")); //그룹정보코드 목록
model.addAttribute("userSttusCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT013")); //사용자상태코드 목록 model.addAttribute("userSttusCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT013")); //사용자상태코드 목록
model.addAttribute("pstinstCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT025")); //소속기관코드 목록 model.addAttribute("pstinstCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT025")); //소속기관코드 목록
model.addAttribute("orgId_result" , xitFrameCodeService.findOrgnztCodes("XIT_ORGNZT_INFO")); //조직정보코드 목록 model.addAttribute("orgId_result" , xitFrameCodeService.findOrgnztCodes("XIT_ORGNZT_INFO")); //조직정보코드 목록

@ -25,7 +25,7 @@ public class XitAuthGrpMngVO extends BaseVO {
/** /**
* ID * ID
*/ */
private String groupId; private String grpId;
/** /**
* *
*/ */
@ -62,18 +62,18 @@ public class XitAuthGrpMngVO extends BaseVO {
this.groupManage = groupManage; this.groupManage = groupManage;
} }
/** /**
* groupId attribute . * grpId attribute .
* @return String * @return String
*/ */
public String getGroupId() { public String getGrpId() {
return groupId; return grpId;
} }
/** /**
* groupId attribute . * grpId attribute .
* @param groupId String * @param grpId String
*/ */
public void setGroupId(String groupId) { public void setGrpId(String grpId) {
this.groupId = groupId; this.grpId = grpId;
} }
/** /**
* groupNm attribute . * groupNm attribute .

@ -39,7 +39,7 @@ public class XitAuthUsrMngVO {
/** /**
* ID * ID
*/ */
private String groupId; private String grpId;
/** /**
* *
*/ */

@ -21,7 +21,7 @@ import lombok.*;
public class XitAuthorGroupInfoVO { public class XitAuthorGroupInfoVO {
private static final long serialVersionUID = -4390096179096398215L; private static final long serialVersionUID = -4390096179096398215L;
private String groupId; //그룹 id private String grpId; //그룹 id
private String groupNm; //그룹 명 private String groupNm; //그룹 명
private String dscrp; //그룹 설명 private String dscrp; //그룹 설명
private String authorCode; //권한 코드 private String authorCode; //권한 코드

@ -24,5 +24,5 @@ public interface AuthGrpMgtMapper {
<T> XitAuthorGroupInfoVO selectAuthorGroupInfo(final T t); <T> XitAuthorGroupInfoVO selectAuthorGroupInfo(final T t);
int insertAuthorGroupInfo(final XitAuthorGroupInfoVO vo); int insertAuthorGroupInfo(final XitAuthorGroupInfoVO vo);
int updateAuthorGroupInfo(final XitAuthorGroupInfoVO vo); int updateAuthorGroupInfo(final XitAuthorGroupInfoVO vo);
int deleteAuthorGroupInfo(final String groupId); int deleteAuthorGroupInfo(final String grpId);
} }

@ -65,7 +65,7 @@ public class AuthByUserMgtServiceBean extends AbstractServiceBean implements Aut
XitUserScrtySetupVO vo = new XitUserScrtySetupVO(); XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId"))); vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setMberTyCode(String.valueOf(map.get("mberTyCode"))); vo.setMberTyCode(String.valueOf(map.get("mberTyCode")));
vo.setAuthorCode(userMgtService.getDefaultAuthorCode(String.valueOf(map.get("groupId")))); vo.setAuthorCode(userMgtService.getDefaultAuthorCode(String.valueOf(map.get("grpId"))));
userMapper.updateUserScrtySetup(vo); userMapper.updateUserScrtySetup(vo);
}); });
} }

@ -56,7 +56,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorCode()); this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorCode());
try { try {
vo.setGroupId(groupIdGnrService.getNextStringId()); vo.setGrpId(groupIdGnrService.getNextStringId());
} catch (FdlException e) { } catch (FdlException e) {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage()); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage());
} }
@ -74,8 +74,8 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
@Override @Override
@Transactional @Transactional
public void removeAuthGrp(final String groupId) { public void removeAuthGrp(final String grpId) {
mapper.deleteAuthorGroupInfo(groupId); mapper.deleteAuthorGroupInfo(grpId);
} }
@Transactional(readOnly = true) @Transactional(readOnly = true)

@ -39,7 +39,7 @@ public class AuthGrpMgtController extends AbstractController {
public ModelAndView mngAuthAuthorMgtPopup(@ModelAttribute final XitAuthorGroupInfoVO vo){ public ModelAndView mngAuthAuthorMgtPopup(@ModelAttribute final XitAuthorGroupInfoVO vo){
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getGroupId())){ if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getGrpId())){
mav.addObject("groupManage", new XitAuthorGroupInfoVO()); mav.addObject("groupManage", new XitAuthorGroupInfoVO());
mav.addObject("pageTitle", "권한그룹 등록"); mav.addObject("pageTitle", "권한그룹 등록");
} else { } else {
@ -80,10 +80,10 @@ public class AuthGrpMgtController extends AbstractController {
} }
@PostMapping(name = "", value = "/removeAuthGrp") @PostMapping(name = "", value = "/removeAuthGrp")
public ModelAndView removeAuthAuthor(final String groupId){ public ModelAndView removeAuthAuthor(final String grpId){
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
service.removeAuthGrp(groupId); service.removeAuthGrp(grpId);
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_DELETE_SUCCESS); AjaxMessageMapRenderer.success(mav, MessageKey.CMM_DELETE_SUCCESS);
return mav; return mav;
} }

@ -43,7 +43,7 @@ public class XitUserInfoVO extends XitUserEtcOptionVO {
protected String mbtlnum; //이동전화번호 protected String mbtlnum; //이동전화번호
protected String emailAdres; //이메일 주소 protected String emailAdres; //이메일 주소
protected String ofcpsNm; //직위 명 protected String ofcpsNm; //직위 명
protected String groupId; //그룹 id - 업무그룹(sgg_cd) protected String grpId; //그룹 id - 업무그룹(sgg_cd)
protected String pstinstCode; //소속기관 코드 - 시스템코드(sysSeCd) protected String pstinstCode; //소속기관 코드 - 시스템코드(sysSeCd)
protected String userSttusCode; //사용자 상태 코드 protected String userSttusCode; //사용자 상태 코드
protected String esntlId; //고유 id protected String esntlId; //고유 id

@ -79,7 +79,7 @@ public class XitUserRegMngVO extends BaseVO {
/** /**
* ID * ID
*/ */
private String groupId; private String grpId;
/** /**
* *
*/ */

@ -34,7 +34,7 @@ public interface UserMgtService {
void modifyUser(final XitUserInfoVO userInfoVO); void modifyUser(final XitUserInfoVO userInfoVO);
void removeUser(final String userTy, final String uniqId); void removeUser(final String userTy, final String uniqId);
String getDefaultAuthorCode(final String groupId); String getDefaultAuthorCode(final String grpId);
int addUserScrtySetup(final XitUserScrtySetupVO vo); int addUserScrtySetup(final XitUserScrtySetupVO vo);

@ -80,7 +80,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO(); XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(vo.getEsntlId()); userScrtySetupVO.setScrtySetupTrgetId(vo.getEsntlId());
userScrtySetupVO.setMberTyCode("USR03"); userScrtySetupVO.setMberTyCode("USR03");
userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGroupId())); userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId()));
mapper.insertUserScrtySetup(userScrtySetupVO); mapper.insertUserScrtySetup(userScrtySetupVO);
// 기타 option // 기타 option
@ -112,10 +112,10 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
mapper.updateUserInfo(vo); mapper.updateUserInfo(vo);
//그룹ID가 변경되었을 경우 사용자의 권한 갱신 //그룹ID가 변경되었을 경우 사용자의 권한 갱신
if(!Objects.equals(vo.getGroupId(), userInfoCheckMap.get("group_id"))) { if(!Objects.equals(vo.getGrpId(), userInfoCheckMap.get("grp_id"))) {
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO(); XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(vo.getUniqId()); userScrtySetupVO.setScrtySetupTrgetId(vo.getUniqId());
userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGroupId())); userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId()));
if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getScrtySetupTrgetId()))) { if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getScrtySetupTrgetId()))) {
userScrtySetupVO.setMberTyCode("USR03"); userScrtySetupVO.setMberTyCode("USR03");
@ -162,17 +162,17 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
* - * -
* </pre> * </pre>
* *
* @param groupId ID * @param grpId ID
* @return String * @return String
* @author: * @author:
* @date: 2020. 10. 30. * @date: 2020. 10. 30.
*/ */
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public String getDefaultAuthorCode(final String groupId) { public String getDefaultAuthorCode(final String grpId) {
if(Checks.isEmpty(groupId)) return "ROLE_USER"; if(Checks.isEmpty(grpId)) return "ROLE_USER";
XitAuthorGroupInfoVO vo = authGrpMgtMapper.selectAuthorGroupInfo(groupId); XitAuthorGroupInfoVO vo = authGrpMgtMapper.selectAuthorGroupInfo(grpId);
// 권한 설정 // 권한 설정
if (Checks.isEmpty(vo)) if (Checks.isEmpty(vo))
return "ROLE_USER"; return "ROLE_USER";

@ -83,7 +83,7 @@
<property name="strategy" ref="groupIdStrategy" /> <property name="strategy" ref="groupIdStrategy" />
<property name="blockSize" value="10"/> <property name="blockSize" value="10"/>
<property name="table" value="XIT_IDS"/> <property name="table" value="XIT_IDS"/>
<property name="tableName" value="GROUP_ID"/> <property name="tableName" value="GRP_ID"/>
<property name="tableNameFieldName" value="TABLE_NM"/> <property name="tableNameFieldName" value="TABLE_NM"/>
</bean> </bean>
<!-- 권한그룹 ID Generation Strategy Config --> <!-- 권한그룹 ID Generation Strategy Config -->

@ -119,7 +119,7 @@
, USER_SE , USER_SE
, ORG_ID , ORG_ID
, ESNTL_ID , ESNTL_ID
, GROUP_ID , GRP_ID
, PSTINST_CODE , PSTINST_CODE
, ORGNZT_NM , ORGNZT_NM
, JOB_DATA_AUTHOR , JOB_DATA_AUTHOR

@ -32,7 +32,7 @@
<when test='type != null and type == "GROUP"'> <when test='type != null and type == "GROUP"'>
/* 그룹 코드 */ /* 그룹 코드 */
SELECT group_id AS code SELECT grp_id AS code
, group_nm AS code_val , group_nm AS code_val
FROM xit_author_group_info FROM xit_author_group_info
</when> </when>
@ -46,7 +46,7 @@
<when test='type != null and type == "AUTHOR_GRP"'> <when test='type != null and type == "AUTHOR_GRP"'>
/* 권한 그룹 코드 */ /* 권한 그룹 코드 */
SELECT group_id AS code SELECT grp_id AS code
, group_nm AS code_val , group_nm AS code_val
FROM xit_author_group_info FROM xit_author_group_info
</when> </when>

@ -75,13 +75,13 @@
/** 그룹코드 목록 조회 */ /** 그룹코드 목록 조회 */
SELECT SELECT
#{tableNm} AS "grpId" #{tableNm} AS "grpId"
,GROUP_ID AS "code" ,GRP_ID AS "code"
,GROUP_NM AS "codeVal" ,GROUP_NM AS "codeVal"
,DSCRP AS "dscrp" ,DSCRP AS "dscrp"
FROM XIT_AUTHOR_GROUP_INFO FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1 WHERE 1=1
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupId)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
AND GROUP_ID LIKE #{groupId} AND GRP_ID LIKE #{grpId}
</if> </if>
</select> </select>

@ -5,14 +5,14 @@
<select id="findXitAuthorGroupInfos" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO"> <select id="findXitAuthorGroupInfos" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO">
/** findXitAuthorGroupInfos */ /** findXitAuthorGroupInfos */
/** 권한그룹정보 다건 조회 */ /** 권한그룹정보 다건 조회 */
SELECT GROUP_ID SELECT GRP_ID
,GROUP_NM ,GROUP_NM
,GROUP_CREAT_DE ,GROUP_CREAT_DE
,DSCRP ,DSCRP
,AUTHOR_CODE ,AUTHOR_CODE
FROM XIT_AUTHOR_GROUP_INFO FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1 WHERE 1=1
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">AND GROUP_ID = #{group_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_nm )">AND GROUP_NM = #{group_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_nm )">AND GROUP_NM = #{group_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_creat_de)">AND GROUP_CREAT_DE = #{group_creat_de }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_creat_de)">AND GROUP_CREAT_DE = #{group_creat_de }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">AND DSCRP = #{dscrp }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">AND DSCRP = #{dscrp }</if>
@ -21,26 +21,26 @@
<select id="findXitAuthorGroupInfo" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO"> <select id="findXitAuthorGroupInfo" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO">
/** findXitAuthorGroupInfo */ /** findXitAuthorGroupInfo */
/** 권한그룹정보 조회 */ /** 권한그룹정보 조회 */
SELECT GROUP_ID SELECT GRP_ID
,GROUP_NM ,GROUP_NM
,GROUP_CREAT_DE ,GROUP_CREAT_DE
,DSCRP ,DSCRP
,AUTHOR_CODE ,AUTHOR_CODE
FROM XIT_AUTHOR_GROUP_INFO FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1 WHERE 1=1
AND GROUP_ID = #{group_id} AND GRP_ID = #{grp_id}
</select> </select>
<insert id="addXitAuthorGroupInfo"> <insert id="addXitAuthorGroupInfo">
/** addXitAuthorGroupInfo */ /** addXitAuthorGroupInfo */
/** 권한그룹정보 등록 */ /** 권한그룹정보 등록 */
INSERT INTO XIT_AUTHOR_GROUP_INFO( INSERT INTO XIT_AUTHOR_GROUP_INFO(
GROUP_ID GRP_ID
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_nm )">,GROUP_NM</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_nm )">,GROUP_NM</if>
,GROUP_CREAT_DE ,GROUP_CREAT_DE
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">,DSCRP</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">,DSCRP</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(author_code)">,AUTHOR_CODE</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(author_code)">,AUTHOR_CODE</if>
)VALUES( )VALUES(
#{group_id } #{grp_id }
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_nm )">,#{group_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_nm )">,#{group_nm }</if>
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') ,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">,#{dscrp }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp )">,#{dscrp }</if>
@ -57,14 +57,14 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp )">,DSCRP = #{dscrp }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp )">,DSCRP = #{dscrp }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(author_code)">,AUTHOR_CODE = #{author_code}</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(author_code)">,AUTHOR_CODE = #{author_code}</if>
WHERE 1=1 WHERE 1=1
AND GROUP_ID = #{group_id} AND GRP_ID = #{grp_id}
</update> </update>
<delete id="removeXitAuthorGroupInfo"> <delete id="removeXitAuthorGroupInfo">
/** removeXitAuthorGroupInfo */ /** removeXitAuthorGroupInfo */
/** 권한그룹정보 삭제 */ /** 권한그룹정보 삭제 */
DELETE FROM XIT_AUTHOR_GROUP_INFO DELETE FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1 WHERE 1=1
AND GROUP_ID = #{group_id} AND GRP_ID = #{grp_id}
</delete> </delete>
@ -2068,7 +2068,7 @@
SELECT USER_ID SELECT USER_ID
,CHANGE_DE ,CHANGE_DE
,ORG_ID ,ORG_ID
,GROUP_ID ,GRP_ID
,EMPL_NO ,EMPL_NO
,SEXDSTN_CODE ,SEXDSTN_CODE
,BRTHDY ,BRTHDY
@ -2088,7 +2088,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_id )">AND USER_ID = #{user_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_id )">AND USER_ID = #{user_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(change_de )">AND CHANGE_DE = #{change_de }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(change_de )">AND CHANGE_DE = #{change_de }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">AND ORG_ID = #{org_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">AND ORG_ID = #{org_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">AND GROUP_ID = #{group_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">AND EMPL_NO = #{empl_no }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">AND EMPL_NO = #{empl_no }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">AND SEXDSTN_CODE = #{sexdstn_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">AND SEXDSTN_CODE = #{sexdstn_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(brthdy )">AND BRTHDY = #{brthdy }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(brthdy )">AND BRTHDY = #{brthdy }</if>
@ -2110,7 +2110,7 @@
SELECT USER_ID SELECT USER_ID
,CHANGE_DE ,CHANGE_DE
,ORG_ID ,ORG_ID
,GROUP_ID ,GRP_ID
,EMPL_NO ,EMPL_NO
,SEXDSTN_CODE ,SEXDSTN_CODE
,BRTHDY ,BRTHDY
@ -2137,7 +2137,7 @@
USER_ID USER_ID
,CHANGE_DE ,CHANGE_DE
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">,ORG_ID </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">,ORG_ID </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">,GROUP_ID </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">,GRP_ID </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">,EMPL_NO </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">,EMPL_NO </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">,SEXDSTN_CODE </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">,SEXDSTN_CODE </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(brthdy )">,BRTHDY </if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(brthdy )">,BRTHDY </if>
@ -2156,7 +2156,7 @@
#{user_id } #{user_id }
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') ,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">,#{org_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(org_id )">,#{org_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">,#{group_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">,#{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">,#{empl_no }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(empl_no )">,#{empl_no }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">,#{sexdstn_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(sexdstn_code )">,#{sexdstn_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(brthdy )">,#{brthdy }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(brthdy )">,#{brthdy }</if>
@ -2180,7 +2180,7 @@
SET SET
CHANGE_DE = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') CHANGE_DE = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(org_id )">,ORG_ID = #{org_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(org_id )">,ORG_ID = #{org_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(group_id )">,GROUP_ID = #{group_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(grp_id )">,GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(empl_no )">,EMPL_NO = #{empl_no }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(empl_no )">,EMPL_NO = #{empl_no }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(sexdstn_code )">,SEXDSTN_CODE = #{sexdstn_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(sexdstn_code )">,SEXDSTN_CODE = #{sexdstn_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(brthdy )">,BRTHDY = #{brthdy }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(brthdy )">,BRTHDY = #{brthdy }</if>
@ -2239,7 +2239,7 @@
,MBTLNUM ,MBTLNUM
,EMAIL_ADRES ,EMAIL_ADRES
,OFCPS_NM ,OFCPS_NM
,GROUP_ID ,GRP_ID
,PSTINST_CODE ,PSTINST_CODE
,USER_STTUS_CODE ,USER_STTUS_CODE
,ESNTL_ID ,ESNTL_ID
@ -2265,7 +2265,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mbtlnum )">AND MBTLNUM = #{mbtlnum }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mbtlnum )">AND MBTLNUM = #{mbtlnum }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(email_adres )">AND EMAIL_ADRES = #{email_adres }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(email_adres )">AND EMAIL_ADRES = #{email_adres }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ofcps_nm )">AND OFCPS_NM = #{ofcps_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ofcps_nm )">AND OFCPS_NM = #{ofcps_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">AND GROUP_ID = #{group_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(pstinst_code )">AND PSTINST_CODE = #{pstinst_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(pstinst_code )">AND PSTINST_CODE = #{pstinst_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_sttus_code )">AND USER_STTUS_CODE = #{user_sttus_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_sttus_code )">AND USER_STTUS_CODE = #{user_sttus_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">AND ESNTL_ID = #{esntl_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">AND ESNTL_ID = #{esntl_id }</if>
@ -2292,7 +2292,7 @@
,MBTLNUM ,MBTLNUM
,EMAIL_ADRES ,EMAIL_ADRES
,OFCPS_NM ,OFCPS_NM
,GROUP_ID ,GRP_ID
,PSTINST_CODE ,PSTINST_CODE
,USER_STTUS_CODE ,USER_STTUS_CODE
,ESNTL_ID ,ESNTL_ID
@ -2325,7 +2325,7 @@
, mbtlnum , mbtlnum
, email_adres , email_adres
, ofcps_nm , ofcps_nm
, group_id , grp_id
, pstinst_code , pstinst_code
, user_sttus_code , user_sttus_code
, esntl_id , esntl_id
@ -2350,7 +2350,7 @@
, #{mbtlnum} , #{mbtlnum}
, #{emailAdres} , #{emailAdres}
, #{ofcpsNm} , #{ofcpsNm}
, #{groupId} , #{grpId}
, #{pstinstCode} , #{pstinstCode}
, #{userSttusCode} , #{userSttusCode}
, #{esntlId} , #{esntlId}
@ -2381,7 +2381,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(mbtlnum )">,MBTLNUM = #{mbtlnum }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(mbtlnum )">,MBTLNUM = #{mbtlnum }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(email_adres )">,EMAIL_ADRES = #{email_adres }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(email_adres )">,EMAIL_ADRES = #{email_adres }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(ofcps_nm )">,OFCPS_NM = #{ofcps_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(ofcps_nm )">,OFCPS_NM = #{ofcps_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(group_id )">,GROUP_ID = #{group_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(grp_id )">,GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(pstinst_code )">,PSTINST_CODE = #{pstinst_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(pstinst_code )">,PSTINST_CODE = #{pstinst_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(user_sttus_code )">,USER_STTUS_CODE = #{user_sttus_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(user_sttus_code )">,USER_STTUS_CODE = #{user_sttus_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(esntl_id )">,ESNTL_ID = #{esntl_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(esntl_id )">,ESNTL_ID = #{esntl_id }</if>
@ -2417,7 +2417,7 @@
,A.MBTLNUM ,A.MBTLNUM
,A.EMAIL_ADRES ,A.EMAIL_ADRES
,A.OFCPS_NM ,A.OFCPS_NM
,A.GROUP_ID ,A.GRP_ID
,A.PSTINST_CODE ,A.PSTINST_CODE
,A.USER_STTUS_CODE ,A.USER_STTUS_CODE
,A.ESNTL_ID ,A.ESNTL_ID
@ -2448,7 +2448,7 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mbtlnum )">AND A.MBTLNUM = #{mbtlnum }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mbtlnum )">AND A.MBTLNUM = #{mbtlnum }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(email_adres )">AND A.EMAIL_ADRES = #{email_adres }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(email_adres )">AND A.EMAIL_ADRES = #{email_adres }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ofcps_nm )">AND A.OFCPS_NM = #{ofcps_nm }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(ofcps_nm )">AND A.OFCPS_NM = #{ofcps_nm }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(group_id )">AND A.GROUP_ID = #{group_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grp_id )">AND A.GRP_ID = #{grp_id }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(pstinst_code )">AND A.PSTINST_CODE = #{pstinst_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(pstinst_code )">AND A.PSTINST_CODE = #{pstinst_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_sttus_code )">AND A.USER_STTUS_CODE = #{user_sttus_code }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(user_sttus_code )">AND A.USER_STTUS_CODE = #{user_sttus_code }</if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">AND A.ESNTL_ID = #{esntl_id }</if> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(esntl_id )">AND A.ESNTL_ID = #{esntl_id }</if>
@ -2479,7 +2479,7 @@
,A.MBTLNUM ,A.MBTLNUM
,A.EMAIL_ADRES ,A.EMAIL_ADRES
,A.OFCPS_NM ,A.OFCPS_NM
,A.GROUP_ID ,A.GRP_ID
,A.PSTINST_CODE ,A.PSTINST_CODE
,A.USER_STTUS_CODE ,A.USER_STTUS_CODE
,A.ESNTL_ID ,A.ESNTL_ID

@ -55,7 +55,7 @@
/** 관리자DB관리 상세정보 조회 */ /** 관리자DB관리 상세정보 조회 */
<include refid="findList_SELECT"/> <include refid="findList_SELECT"/>
<include refid="findList_FROM"/> <include refid="findList_FROM"/>
WHERE A.GROUP_ID = #{groupId} WHERE A.GRP_ID = #{grpId}
</select> </select>

@ -8,7 +8,7 @@
<sql id ="sqlAuthUser"> <sql id ="sqlAuthUser">
SELECT xui.user_id SELECT xui.user_id
, xui.user_nm , xui.user_nm
, xui.group_id , xui.grp_id
, uss.mber_ty_code , uss.mber_ty_code
, cdc.code_val AS mberTyNm , cdc.code_val AS mberTyNm
, uss.author_code , uss.author_code
@ -17,7 +17,7 @@
FROM ( FROM (
SELECT user_id SELECT user_id
, user_nm user_nm , user_nm user_nm
, group_id , grp_id
, esntl_id , esntl_id
FROM xit_user_info ) xui FROM xit_user_info ) xui
LEFT OUTER JOIN xit_user_scrty_setup uss LEFT OUTER JOIN xit_user_scrty_setup uss
@ -32,8 +32,8 @@
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(userNm)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(userNm)">
AND INSTR(xui.user_nm, #{userNm}) > 0 AND INSTR(xui.user_nm, #{userNm}) > 0
</if> </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupId)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
AND xui.group_id = #{groupId} AND xui.grp_id = #{grpId}
</if> </if>
</where> </where>
</sql> </sql>

@ -7,7 +7,7 @@
************************************************************************************************************** --> ************************************************************************************************************** -->
<select id="selectAuthorGroupInfos" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO"> <select id="selectAuthorGroupInfos" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO">
/* auth-grp-mysql-mapper|selectAuthorGroupInfos-권한그룹 목록 조회|julim */ /* auth-grp-mysql-mapper|selectAuthorGroupInfos-권한그룹 목록 조회|julim */
SELECT agi.group_id SELECT agi.grp_id
, agi.group_nm , agi.group_nm
, agi.dscrp , agi.dscrp
, agi.author_code , agi.author_code
@ -25,25 +25,25 @@
<select id="selectAuthorGroupInfo" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO"> <select id="selectAuthorGroupInfo" resultType="kr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO">
/* auth-grp-mysql-mapper|selectAuthorGroupInfo-권한그룹 정보 조회|julim */ /* auth-grp-mysql-mapper|selectAuthorGroupInfo-권한그룹 정보 조회|julim */
SELECT group_id SELECT grp_id
, group_nm , group_nm
, dscrp , dscrp
, author_code , author_code
, group_creat_de , group_creat_de
FROM xit_author_group_info FROM xit_author_group_info
WHERE group_id = #{groupId} WHERE grp_id = #{grpId}
</select> </select>
<insert id="insertAuthorGroupInfo"> <insert id="insertAuthorGroupInfo">
/* auth-grp-mysql-mapper|insertAuthorGroupInfo-권한그룹 등록|julim */ /* auth-grp-mysql-mapper|insertAuthorGroupInfo-권한그룹 등록|julim */
INSERT INTO xit_author_group_info( INSERT INTO xit_author_group_info(
group_id grp_id
, group_nm , group_nm
, dscrp , dscrp
, author_code , author_code
, group_creat_de , group_creat_de
)VALUES( )VALUES(
#{groupId} #{grpId}
, #{groupNm} , #{groupNm}
, #{dscrp} , #{dscrp}
, #{authorCode} , #{authorCode}
@ -57,14 +57,14 @@
SET group_nm = IF(group_nm = #{groupNm}, group_nm, #{groupNm}) SET group_nm = IF(group_nm = #{groupNm}, group_nm, #{groupNm})
, dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp}) , dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp})
, author_code = IF(author_code = #{authorCode}, author_code, #{authorCode}) , author_code = IF(author_code = #{authorCode}, author_code, #{authorCode})
WHERE group_id = #{groupId} WHERE grp_id = #{grpId}
</update> </update>
<delete id="deleteAuthorGroupInfo"> <delete id="deleteAuthorGroupInfo">
/* auth-grp-mysql-mapper|deleteAuthorGroupInfo-권한그룹 삭제|julim */ /* auth-grp-mysql-mapper|deleteAuthorGroupInfo-권한그룹 삭제|julim */
DELETE DELETE
FROM xit_author_group_info FROM xit_author_group_info
WHERE group_id = #{groupId} WHERE grp_id = #{grpId}
</delete> </delete>
</mapper> </mapper>

@ -32,7 +32,7 @@
AND A.USER_NM LIKE CONCAT('%',#{searchKeyword},'%') AND A.USER_NM LIKE CONCAT('%',#{searchKeyword},'%')
</when> </when>
<when test="'2'.toString() == searchCondition"> <when test="'2'.toString() == searchCondition">
AND A.GROUP_ID = #{searchKeyword} AND A.GRP_ID = #{searchKeyword}
</when> </when>
</choose> </choose>
</sql> </sql>
@ -92,7 +92,7 @@
,A.MBTLNUM AS "mbtlnum" ,A.MBTLNUM AS "mbtlnum"
,A.EMAIL_ADRES AS "emailAdres" ,A.EMAIL_ADRES AS "emailAdres"
,A.OFCPS_NM AS "ofcpsNm" ,A.OFCPS_NM AS "ofcpsNm"
,A.GROUP_ID AS "groupId" ,A.GRP_ID AS "grpId"
,A.ORG_ID AS "orgId" ,A.ORG_ID AS "orgId"
,A.PSTINST_CODE AS "pstinstCode" ,A.PSTINST_CODE AS "pstinstCode"
,A.USER_STTUS_CODE AS "userSttusCode" ,A.USER_STTUS_CODE AS "userSttusCode"

@ -14,7 +14,7 @@
, xui.email_adres , xui.email_adres
, xui.area_no , xui.area_no
, xui.mbtlnum , xui.mbtlnum
, xui.group_id , xui.grp_id
, xui.user_sttus_code , xui.user_sttus_code
, xui.REG_DT , xui.REG_DT
, cdc.code_val AS userSttusCodeNm , cdc.code_val AS userSttusCodeNm
@ -57,7 +57,7 @@
, mbtlnum , mbtlnum
, email_adres , email_adres
, ofcps_nm , ofcps_nm
, group_id , grp_id
, org_id , org_id
, pstinst_code , pstinst_code
, user_sttus_code , user_sttus_code
@ -89,7 +89,7 @@
, mbtlnum , mbtlnum
, email_adres , email_adres
, ofcps_nm , ofcps_nm
, group_id , grp_id
, pstinst_code , pstinst_code
, user_sttus_code , user_sttus_code
, esntl_id , esntl_id
@ -114,7 +114,7 @@
, #{mbtlnum} , #{mbtlnum}
, #{emailAdres} , #{emailAdres}
, #{ofcpsNm} , #{ofcpsNm}
, #{groupId} , #{grpId}
, #{pstinstCode} , #{pstinstCode}
, #{userSttusCode} , #{userSttusCode}
, #{esntlId} , #{esntlId}
@ -141,7 +141,7 @@
, mbtlnum = IF(mbtlnum = #{mbtlnum}, mbtlnum, #{mbtlnum}) , mbtlnum = IF(mbtlnum = #{mbtlnum}, mbtlnum, #{mbtlnum})
, email_adres = IF(email_adres = #{emailAdres}, email_adres, #{emailAdres}) , email_adres = IF(email_adres = #{emailAdres}, email_adres, #{emailAdres})
, ofcps_nm = IF(ofcps_nm = #{ofcpsNm}, ofcps_nm, #{ofcpsNm}) , ofcps_nm = IF(ofcps_nm = #{ofcpsNm}, ofcps_nm, #{ofcpsNm})
, group_id = IF(group_id = #{groupId}, group_id, #{groupId}) , grp_id = IF(grp_id = #{grpId}, grp_id, #{grpId})
, pstinst_code = IF(pstinst_code = #{pstinstCode}, pstinst_code, #{pstinstCode}) , pstinst_code = IF(pstinst_code = #{pstinstCode}, pstinst_code, #{pstinstCode})
, user_sttus_code = IF(user_sttus_code = #{userSttusCode}, user_sttus_code, #{userSttusCode}) , user_sttus_code = IF(user_sttus_code = #{userSttusCode}, user_sttus_code, #{userSttusCode})
, crtfc_dn_value = IF(crtfc_dn_value = #{crtfcDnValue}, crtfc_dn_value, #{crtfcDnValue}) , crtfc_dn_value = IF(crtfc_dn_value = #{crtfcDnValue}, crtfc_dn_value, #{crtfcDnValue})
@ -157,10 +157,10 @@
</delete> </delete>
<select id="selectCheckUserInfo" parameterType="string" resultType="caseMap"> <select id="selectCheckUserInfo" parameterType="string" resultType="caseMap">
/* user-mysql-mapper|selectCheckUserInfo-사용자정보 esntl_id, group_id 조회|julim */ /* user-mysql-mapper|selectCheckUserInfo-사용자정보 esntl_id, grp_id 조회|julim */
SELECT xui.esntl_id SELECT xui.esntl_id
, xui.org_id , xui.org_id
, xui.group_id , xui.grp_id
, xui.pstinst_code , xui.pstinst_code
, ueo.user_manage_author , ueo.user_manage_author
, ueo.elctrnsanctn_use_yn , ueo.elctrnsanctn_use_yn
@ -178,15 +178,15 @@
************************************************************************************************************** --> ************************************************************************************************************** -->
<select id="selectAuthorGroupInfo" parameterType="map" resultType="caseMap"> <select id="selectAuthorGroupInfo" parameterType="map" resultType="caseMap">
/* user-mysql-mapper|selectAuthorGroupInfo-권한그룹정보 조회|julim */ /* user-mysql-mapper|selectAuthorGroupInfo-권한그룹정보 조회|julim */
SELECT group_id SELECT grp_id
, group_nm , group_nm
, group_creat_de , group_creat_de
, dscrp , dscrp
, author_code , author_code
FROM xit_author_group_info FROM xit_author_group_info
<where> <where>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupId)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
AND group_id = #{groupId} AND grp_id = #{grpId}
</if> </if>
<if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)"> <if test="@kr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">
AND group_nm = #{groupNm} AND group_nm = #{groupNm}
@ -356,7 +356,7 @@
user_id user_id
, change_de , change_de
, org_id , org_id
, group_id , grp_id
, empl_no , empl_no
, sexdstn_code , sexdstn_code
, brthdy , brthdy
@ -374,7 +374,7 @@
) SELECT user_id ) SELECT user_id
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, org_id , org_id
, group_id , grp_id
, empl_no , empl_no
, sexdstn_code , sexdstn_code
, brthdy , brthdy

@ -106,7 +106,7 @@
<!-- <arg0 key="사용자상태코드" resource="false"/> --> <!-- <arg0 key="사용자상태코드" resource="false"/> -->
<!-- </field> --> <!-- </field> -->
<field property="groupId" depends="required"> <field property="grpId" depends="required">
<arg0 key="그룹아이디" resource="false"/> <arg0 key="그룹아이디" resource="false"/>
</field> </field>

@ -289,11 +289,11 @@ table {
<label class="required">그룹아이디</label> <label class="required">그룹아이디</label>
</th> </th>
<td colspan="3" width="30%"> <td colspan="3" width="30%">
<form:select path="groupId" id="groupId" title="그룹아이디"> <form:select path="grpId" id="grpId" title="그룹아이디">
<form:option value="" label="--선택하세요--"/> <form:option value="" label="--선택하세요--"/>
<form:options items="${groupId_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${grpId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select> </form:select>
<form:errors path="groupId" cssClass="error"/> <form:errors path="grpId" cssClass="error"/>
</td> </td>
</tr> </tr>
</table> </table>

@ -189,14 +189,14 @@
<tr> <tr>
<th> <th>
<label for="groupId" class="required">그룹아이디</label> <label for="grpId" class="required">그룹아이디</label>
</th> </th>
<td> <td>
<form:select path="groupId" id="groupId" title="그룹아이디"> <form:select path="grpId" id="grpId" title="그룹아이디">
<form:option value="" label="--선택하세요--"/> <form:option value="" label="--선택하세요--"/>
<form:options items="${groupId_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${grpId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select> </form:select>
<form:errors path="groupId" cssClass="error"/> <form:errors path="grpId" cssClass="error"/>
</td> </td>
</tr> </tr>
</tbody> </tbody>

@ -115,7 +115,7 @@
getParams: function(){ getParams: function(){
const schKey = $('#searchCondition').val(); const schKey = $('#searchCondition').val();
let schValue = $('input[name=searchKeyword]').val(); let schValue = $('input[name=searchKeyword]').val();
if (schKey === 'groupId') if (schKey === 'grpId')
schValue = $('select[name=searchKeyword]').val(); schValue = $('select[name=searchKeyword]').val();
return {[schKey]: schValue}; return {[schKey]: schValue};
}, },
@ -149,7 +149,7 @@
uniqId: row.uniqId uniqId: row.uniqId
, authorCode: row.authorCode , authorCode: row.authorCode
, mberTyCode: row.mberTyCode , mberTyCode: row.mberTyCode
, groupId: row.groupId , grpId: row.grpId
, regYn: row.regYn , regYn: row.regYn
} }
}); });

@ -8,8 +8,8 @@
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty groupManageVO.groupId ? 'INSERT' : 'UPDATE'}"/> <c:set var="registerFlag" value="${empty groupManageVO.grpId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty groupManageVO.groupId ? '그룹 등록' : '그룹 수정'}"/> <c:set var="registerFlagName" value="${empty groupManageVO.grpId ? '그룹 등록' : '그룹 수정'}"/>
<!-- 검색 필드 박스 시작 --> <!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script> <script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
@ -25,7 +25,7 @@
<th width="25%" scope="row" nowrap="nowrap"> <th width="25%" scope="row" nowrap="nowrap">
<label class="required">그룹 ID</label> <label class="required">그룹 ID</label>
</th> </th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" readonly="readonly" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID" /></td> <td nowrap="nowrap"><input name="grpId" id="grpId" type="text" readonly="readonly" value="<c:out value='${groupManage.grpId}'/>" size="40" title="그룹 ID" /></td>
</tr> </tr>
<tr> <tr>
<th width="25%" scope="row" nowrap="nowrap"> <th width="25%" scope="row" nowrap="nowrap">

@ -8,8 +8,8 @@
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> <%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="registerFlag" value="${empty groupManageVO.groupId ? 'INSERT' : 'UPDATE'}"/> <c:set var="registerFlag" value="${empty groupManageVO.grpId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty groupManageVO.groupId ? '그룹 등록' : '그룹 수정'}"/> <c:set var="registerFlagName" value="${empty groupManageVO.grpId ? '그룹 등록' : '그룹 수정'}"/>
<!-- 검색 필드 박스 시작 --> <!-- 검색 필드 박스 시작 -->
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script> <script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
@ -25,7 +25,7 @@
<th width="25%" scope="row" nowrap="nowrap"> <th width="25%" scope="row" nowrap="nowrap">
<label class="required">그룹 ID</label> <label class="required">그룹 ID</label>
</th> </th>
<td nowrap="nowrap"><input name="groupId" id="groupId" type="text" readonly="readonly" value="<c:out value='${groupManage.groupId}'/>" size="40" title="그룹 ID" /></td> <td nowrap="nowrap"><input name="grpId" id="grpId" type="text" readonly="readonly" value="<c:out value='${groupManage.grpId}'/>" size="40" title="그룹 ID" /></td>
</tr> </tr>
<tr> <tr>
<th width="25%" scope="row" nowrap="nowrap"> <th width="25%" scope="row" nowrap="nowrap">

@ -6,8 +6,8 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<form:form id="listForm" name="listForm" action="" method="post"> <form:form id="listForm" name="listForm" action="" method="post">
<input type="hidden" name="groupId"/> <input type="hidden" name="grpId"/>
<input type="hidden" name="groupIds"/> <input type="hidden" name="grpIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${groupManageVO.pageIndex}'/>"/>
<input type="hidden" id="searchGubun" name="searchGubun" value="excel"> <input type="hidden" id="searchGubun" name="searchGubun" value="excel">
<input type="hidden" name="searchCondition"/> <input type="hidden" name="searchCondition"/>
@ -105,13 +105,13 @@ var XitAuthGrpMng_list = {
alert("선택된 권한이 없습니다."); alert("선택된 권한이 없습니다.");
}else{ }else{
checkArr.forEach(function(item, index){ checkArr.forEach(function(item, index){
returnValue += item.groupId; returnValue += item.grpId;
if(checkArr.length -1 > index){ if(checkArr.length -1 > index){
returnValue += ";"; returnValue += ";";
} }
}) })
document.listForm.groupIds.value = returnValue; document.listForm.grpIds.value = returnValue;
XitAuthGrpMng_list.removeData(); XitAuthGrpMng_list.removeData();
} }
} }
@ -205,7 +205,7 @@ var XitAuthGrpMng_list = {
fnClickGrpBtn: function(props){ fnClickGrpBtn: function(props){
var rowData = props.grid.getRow(props.rowKey); var rowData = props.grid.getRow(props.rowKey);
var params = ""; var params = "";
params += "groupId=" + rowData.groupId; params += "grpId=" + rowData.grpId;
XitAuthGrpMng_list.pagePopup('detail', "<c:url value='/framework/biz/mng/auth/AuthGrpMng_edit.do'/>", params); XitAuthGrpMng_list.pagePopup('detail', "<c:url value='/framework/biz/mng/auth/AuthGrpMng_edit.do'/>", params);
} }
} }
@ -272,7 +272,7 @@ GridConfig.setOptHeader({
GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등) GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{ {
header: '그룹 ID', header: '그룹 ID',
name: 'groupId', name: 'grpId',
width: 120, width: 120,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -283,7 +283,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
formatter : function(props){ formatter : function(props){
var rowData = props.grid.getRow(props.rowKey); var rowData = props.grid.getRow(props.rowKey);
var obj = { var obj = {
formatter : rowData.groupId formatter : rowData.grpId
,element : "text" ,element : "text"
} }
return obj; return obj;

@ -74,7 +74,7 @@ function fncManageChecked() {
alert("조회된 결과가 없습니다."); alert("조회된 결과가 없습니다.");
} }
document.listForm.groupIds.value = returnValue; document.listForm.grpIds.value = returnValue;
return returnBoolean; return returnBoolean;
} }
@ -86,8 +86,8 @@ function fncSelectGroupList(pageNo){
document.listForm.submit(); document.listForm.submit();
} }
function fncSelectGroup(groupId) { function fncSelectGroup(grpId) {
document.listForm.groupId.value = groupId; document.listForm.grpId.value = grpId;
document.listForm.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_edit.do'/>"; document.listForm.action = "<c:url value='/framework/biz/mng/auth/AuthGrpMng_edit.do'/>";
document.listForm.submit(); document.listForm.submit();
} }
@ -188,12 +188,12 @@ function press() {
<c:forEach var="group" items="${groupList}" varStatus="status"> <c:forEach var="group" items="${groupList}" varStatus="status">
<!-- loop 시작 --> <!-- loop 시작 -->
<tr> <tr>
<td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${group.groupId}"/>" /></td> <td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${group.grpId}"/>" /></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectGroup('<c:out value="${group.groupId}"/>')"><c:out value="${group.groupId}"/></a></td> <td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectGroup('<c:out value="${group.grpId}"/>')"><c:out value="${group.grpId}"/></a></td>
<td nowrap="nowrap"><c:out value="${group.groupNm}"/></td> <td nowrap="nowrap"><c:out value="${group.groupNm}"/></td>
<td nowrap="nowrap"><c:out value="${group.dscrp}"/></td> <td nowrap="nowrap"><c:out value="${group.dscrp}"/></td>
<td nowrap="nowrap"><c:out value="${group.groupCreatDe}"/></td> <td nowrap="nowrap"><c:out value="${group.groupCreatDe}"/></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectGroup('<c:out value="${group.groupId}"/>')"><img src="<c:url value='/resources/image/fims/framework/etc/img_search.gif'/>" width="15" height="15" align="middle" alt="상세조회"></a></td> <td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectGroup('<c:out value="${group.grpId}"/>')"><img src="<c:url value='/resources/image/fims/framework/etc/img_search.gif'/>" width="15" height="15" align="middle" alt="상세조회"></a></td>
</tr> </tr>
</c:forEach> </c:forEach>
</tbody> </tbody>
@ -216,8 +216,8 @@ function press() {
</div> </div>
</c:if> </c:if>
<input type="hidden" name="groupId"/> <input type="hidden" name="grpId"/>
<input type="hidden" name="groupIds"/> <input type="hidden" name="grpIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${groupManageVO.pageIndex}'/>"/>
<input type="hidden" name="searchCondition"/> <input type="hidden" name="searchCondition"/>
</form:form> </form:form>

@ -14,9 +14,9 @@ function fncSelectGroupList(pageNo){
document.listForm.submit(); document.listForm.submit();
} }
function fncSelectGroup(groupId) { function fncSelectGroup(grpId) {
// window.returnValue = groupId; // window.returnValue = grpId;
opener.listForm.searchKeyword.value = groupId; opener.listForm.searchKeyword.value = grpId;
window.close(); window.close();
} }
@ -85,7 +85,7 @@ function press() {
<c:forEach var="group" items="${groupList}" varStatus="status"> <c:forEach var="group" items="${groupList}" varStatus="status">
<!-- loop 시작 --> <!-- loop 시작 -->
<tr> <tr>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectGroup('<c:out value="${group.groupId}"/>')"><c:out value="${group.groupId}"/></a></td> <td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectGroup('<c:out value="${group.grpId}"/>')"><c:out value="${group.grpId}"/></a></td>
<td nowrap="nowrap"><c:out value="${group.groupNm}"/></td> <td nowrap="nowrap"><c:out value="${group.groupNm}"/></td>
</tr> </tr>
</c:forEach> </c:forEach>
@ -108,7 +108,7 @@ function press() {
</c:if> </c:if>
<!-- //페이지 네비게이션 끝 --> <!-- //페이지 네비게이션 끝 -->
<input type="hidden" name="groupId"/> <input type="hidden" name="grpId"/>
<input type="hidden" name="pageIndex" value="<c:out value='${groupManageVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${groupManageVO.pageIndex}'/>"/>
<input type="hidden" name="searchCondition"/> <input type="hidden" name="searchCondition"/>
</form> </form>

@ -12,7 +12,7 @@
<input type="hidden" name="authorCodes" id="authorCodes"/> <input type="hidden" name="authorCodes" id="authorCodes"/>
<input type="hidden" name="regYns" id="regYns"/> <input type="hidden" name="regYns" id="regYns"/>
<input type="hidden" name="mberTyCodes" id="mberTyCodes"/> <input type="hidden" name="mberTyCodes" id="mberTyCodes"/>
<input type="hidden" name="groupIds" id="groupIds"/> <input type="hidden" name="grpIds" id="grpIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/>
<div class="container-search"> <div class="container-search">
@ -213,7 +213,7 @@ var XitAuthUsrMng_list = {
var returnAuthor = ""; var returnAuthor = "";
var returnRegYn = ""; var returnRegYn = "";
var returnmberTyCode = ""; var returnmberTyCode = "";
var returnGroupId = ""; var returnGrpId = "";
var returnBoolean = false; var returnBoolean = false;
@ -228,14 +228,14 @@ var XitAuthUsrMng_list = {
returnAuthor += item.authorCode; returnAuthor += item.authorCode;
returnRegYn += item.regYn; returnRegYn += item.regYn;
returnmberTyCode += item.mberTyCode; returnmberTyCode += item.mberTyCode;
returnGroupId += item.groupId; returnGrpId += item.grpId;
if(checkArr.length -1 > index){ if(checkArr.length -1 > index){
returnId += ";"; returnId += ";";
returnAuthor += ";"; returnAuthor += ";";
returnRegYn += ";"; returnRegYn += ";";
returnmberTyCode += ";"; returnmberTyCode += ";";
returnGroupId += ";"; returnGrpId += ";";
} }
}) })
@ -243,7 +243,7 @@ var XitAuthUsrMng_list = {
document.listForm.authorCodes.value = returnAuthor; document.listForm.authorCodes.value = returnAuthor;
document.listForm.regYns.value = returnRegYn; document.listForm.regYns.value = returnRegYn;
document.listForm.mberTyCodes.value = returnmberTyCode; document.listForm.mberTyCodes.value = returnmberTyCode;
document.listForm.groupIds.value = returnGroupId; document.listForm.grpIds.value = returnGrpId;
} }
} }
} }

@ -22,7 +22,7 @@
<select id="searchCondition" name="searchCondition" title="조회조건" onchange="fnBiz.onSearchChange()"> <select id="searchCondition" name="searchCondition" title="조회조건" onchange="fnBiz.onSearchChange()">
<option value="userId">사용자 ID</option> <option value="userId">사용자 ID</option>
<option value="userNm">사용자 명</option> <option value="userNm">사용자 명</option>
<option value="groupId">그룹</option> <option value="grpId">그룹</option>
</select> </select>
<input name="searchKeyword" title="검색어" type="text"/> <input name="searchKeyword" title="검색어" type="text"/>
<code:select type="AUTHOR_GRP" id="searchKeyword" name="searchKeyword" title="권한그룹" cls="form-select" alt="selectBox tag" display="false" disabled="true"/> <code:select type="AUTHOR_GRP" id="searchKeyword" name="searchKeyword" title="권한그룹" cls="form-select" alt="selectBox tag" display="false" disabled="true"/>
@ -119,7 +119,7 @@
getParams: function(){ getParams: function(){
const schKey = $('#searchCondition').val(); const schKey = $('#searchCondition').val();
let schValue = $('input[name=searchKeyword]').val(); let schValue = $('input[name=searchKeyword]').val();
if (schKey === 'groupId') if (schKey === 'grpId')
schValue = $('select[name=searchKeyword]').val(); schValue = $('select[name=searchKeyword]').val();
return {[schKey]: schValue}; return {[schKey]: schValue};
}, },
@ -176,14 +176,14 @@
uniqId: row.uniqId uniqId: row.uniqId
, authorCode: row.authorCode , authorCode: row.authorCode
, mberTyCode: row.mberTyCode , mberTyCode: row.mberTyCode
, groupId: row.groupId , grpId: row.grpId
, regYn: row.regYn , regYn: row.regYn
} }
}); });
} }
,onSearchChange: () => { ,onSearchChange: () => {
if($('#searchCondition').val() === 'groupId'){ if($('#searchCondition').val() === 'grpId'){
$('select[name="searchKeyword"]') $('select[name="searchKeyword"]')
.css('display', 'inline-block') .css('display', 'inline-block')
.attr('disabled', false); .attr('disabled', false);

@ -163,7 +163,7 @@
const gridColumns = [ const gridColumns = [
{ {
header: '그룹 ID', header: '그룹 ID',
name: 'groupId', name: 'grpId',
width: 120, width: 120,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -174,7 +174,7 @@
formatter : function(props){ formatter : function(props){
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
return { return {
formatter: rowData.groupId formatter: rowData.grpId
,element: "text" ,element: "text"
} }
} }

@ -2,7 +2,7 @@
<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %> <%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>
<%@ include file="/WEB-INF/jsp/include/fims/taglib.jsp" %> <%@ include file="/WEB-INF/jsp/include/fims/taglib.jsp" %>
<c:set var="isUpdate" value="${!empty groupManage.groupId}"/> <c:set var="isUpdate" value="${!empty groupManage.grpId}"/>
<c:set var="bizName" value="권한그룹"/> <c:set var="bizName" value="권한그룹"/>
<div class="popup" style="min-width: 100%"> <div class="popup" style="min-width: 100%">
@ -23,7 +23,7 @@
<label>권한그룹 ID</label> <label>권한그룹 ID</label>
</th> </th>
<td nowrap="nowrap"> <td nowrap="nowrap">
<input name="groupId" id="groupId" type="text" readonly value="<c:out value='${groupManage.groupId}'/>" size="40" title="권한그룹ID" /> <input name="grpId" id="grpId" type="text" readonly value="<c:out value='${groupManage.grpId}'/>" size="40" title="권한그룹ID" />
</td> </td>
</tr> </tr>
<tr> <tr>
@ -95,7 +95,7 @@
,remove: () => { ,remove: () => {
cmmBizAjax('remove', { cmmBizAjax('remove', {
url: '<c:url value="/framework/biz/mng/auth/removeAuthGrp.do"/>' url: '<c:url value="/framework/biz/mng/auth/removeAuthGrp.do"/>'
,data: {groupId: $('#groupId').val()} ,data: {grpId: $('#grpId').val()}
}); });
} }
,validate: () => { ,validate: () => {

@ -237,7 +237,7 @@
alert('변경된 내용이 없습니다.'); alert('변경된 내용이 없습니다.');
return false; return false;
} }
if ($('#groupId').val() === '') { if ($('#grpId').val() === '') {
alert('[권한그룹 ID]는 필수 입니다.'); alert('[권한그룹 ID]는 필수 입니다.');
$('#authorCode').focus(); $('#authorCode').focus();
return false; return false;

@ -243,11 +243,11 @@ table {
<label class="required">권한그룹</label> <label class="required">권한그룹</label>
</th> </th>
<td width="30%" > <td width="30%" >
<form:select path="groupId" id="groupId"> <form:select path="grpId" id="grpId">
<form:option value="" label="--선택하세요--"/> <form:option value="" label="--선택하세요--"/>
<form:options items="${groupId_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${grpId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select> </form:select>
<form:errors path="groupId" cssClass="error"/> <form:errors path="grpId" cssClass="error"/>
</td> </td>
</tr> </tr>

@ -191,11 +191,11 @@
<label class="required">그룹아이디</label> <label class="required">그룹아이디</label>
</th> </th>
<td> <td>
<form:select path="groupId" id="groupId" title="그룹아이디"> <form:select path="grpId" id="grpId" title="그룹아이디">
<form:option value="" label="--선택하세요--" /> <form:option value="" label="--선택하세요--" />
<form:options items="${groupId_result}" itemValue="code" itemLabel="codeVal" /> <form:options items="${grpId_result}" itemValue="code" itemLabel="codeVal" />
</form:select> </form:select>
<form:errors path="groupId" cssClass="error" /> <form:errors path="grpId" cssClass="error" />
</td> </td>
</tr> </tr>
</tbody> </tbody>

@ -303,11 +303,11 @@ table {
<label class="required">권한그룹</label> <label class="required">권한그룹</label>
</th> </th>
<td> <td>
<form:select path="groupId" id="groupId"> <form:select path="grpId" id="grpId">
<form:option value="" label="--선택하세요--"/> <form:option value="" label="--선택하세요--"/>
<form:options items="${groupId_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${grpId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select> </form:select>
<form:errors path="groupId" cssClass="error"/> <form:errors path="grpId" cssClass="error"/>
</td> </td>
</tr> </tr>
</tbody> </tbody>

@ -183,8 +183,8 @@
<label class="required">그룹 아이디</label> <label class="required">그룹 아이디</label>
</th> </th>
<td> <td>
<code:select type="GROUP" id="groupId" name="groupId" defaultSelect="${userInfoVO.groupId}" title="그룹아이디" cls="form-select" alt="그룹아이디"/> <code:select type="GROUP" id="grpId" name="grpId" defaultSelect="${userInfoVO.grpId}" title="그룹아이디" cls="form-select" alt="그룹아이디"/>
<form:errors path="groupId" cssClass="error" /> <form:errors path="grpId" cssClass="error" />
</td> </td>
</tr> </tr>
</tbody> </tbody>

Loading…
Cancel
Save