no message

main
이범준 1 year ago
parent 2798d68117
commit e03cbb4359

@ -11,5 +11,5 @@ public interface CacheMenuMapper {
List<Map<String, String>> selectMenuListByUser(final String uniqId); List<Map<String, String>> selectMenuListByUser(final String uniqId);
List<Map<String, String>> selectMenuListByAuthorId(final String authorId); List<Map<String, String>> selectMenuListByAuthId(final String authId);
} }

@ -41,10 +41,10 @@ public interface CacheService {
List<Map<String, String>> findMenuListByUser(final String uniqId); List<Map<String, String>> findMenuListByUser(final String uniqId);
/** /**
* *
* @param authorId * @param authId
* @return List<T> * @return List<T>
*/ */
List<Map<String, String>> findMenuListByAuthorId(final String authorId); List<Map<String, String>> findMenuListByAuthId(final String authId);
/** /**
* Evict * Evict
*/ */

@ -79,11 +79,11 @@ public class CacheServiceBean extends AbstractServiceBean implements CacheServic
return menuMapper.selectMenuListByUser(uniqId); return menuMapper.selectMenuListByUser(uniqId);
} }
@Cacheable(cacheNames="menuCache", key = "#authorId") @Cacheable(cacheNames="menuCache", key = "#authId")
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public List<Map<String, String>> findMenuListByAuthorId(final String authorId) { public List<Map<String, String>> findMenuListByAuthId(final String authId) {
return menuMapper.selectMenuListByAuthorId(authorId); return menuMapper.selectMenuListByAuthId(authId);
} }
@Override @Override

@ -58,11 +58,11 @@ public class CacheServiceUtils {
/** /**
* *
* @param authorId String * @param authId String
* @return List<Map<String,Object>> * @return List<Map<String,Object>>
*/ */
public static List<Map<String,String>> findMenuListByAuthorId(final String authorId) { public static List<Map<String,String>> findMenuListByAuthId(final String authId) {
return JBeanRegistry.getCacheService().findMenuListByAuthorId(authorId); return JBeanRegistry.getCacheService().findMenuListByAuthId(authId);
} }

@ -70,10 +70,10 @@ public class CacheController extends AbstractController {
return mav; return mav;
} }
@GetMapping(name = "", value="/getMenuListByAuthorId") @GetMapping(name = "", value="/getMenuListByAuthId")
public ModelAndView getMenuListByAuthorId(final String authorId) { public ModelAndView getMenuListByAuthId(final String authId) {
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
mav.addObject("allMenuList", CacheServiceUtils.findMenuListByAuthorId(authorId)); mav.addObject("allMenuList", CacheServiceUtils.findMenuListByAuthId(authId));
return mav; return mav;
} }

@ -19,16 +19,16 @@ public class XitAuthorRoleRelateVO extends BaseVO {
*/ */
private static final long serialVersionUID = 3707886158690476749L; private static final long serialVersionUID = 3707886158690476749L;
protected String authorId; //권한 코드 protected String authId; //권한 코드
protected String roleCode; //역할 코드 protected String roleCode; //역할 코드
protected String creatDt; //생성 일시 protected String creatDt; //생성 일시
public String getAuthorId() { public String getAuthId() {
return authorId; return authId;
} }
public void setAuthorId(String authorId) { public void setAuthId(String authId) {
this.authorId = authorId; this.authId = authId;
} }
public String getRoleCode() { public String getRoleCode() {
return roleCode; return roleCode;

@ -27,7 +27,7 @@ public class XitMenuCreatDtlsVO {
private static final long serialVersionUID = 568460849738293096L; private static final long serialVersionUID = 568460849738293096L;
private String menuNo; //메뉴 번호 private String menuNo; //메뉴 번호
private String authorId; //권한 코드 private String authId; //권한 코드
private String mapngCreatId; //매핑 생성 id private String mapngCreatId; //매핑 생성 id

@ -37,12 +37,12 @@ public interface XitFrameUnitMapper {
* <pre> : * <pre> :
* - . * - .
* </pre> * </pre>
* @param authorId * @param authId
* @return List<Map> * @return List<Map>
* @author: * @author:
* @date: 2020. 11. 20. * @date: 2020. 11. 20.
*/ */
public List<Map<String, String>> findMenuListByAuthorId(String authorId) throws SQLException; public List<Map<String, String>> findMenuListByAuthId(String authId) throws SQLException;
/** /**

@ -141,12 +141,12 @@ public interface XitFrameUnitService {
* <pre> : * <pre> :
* - . * - .
* </pre> * </pre>
* @param authorId * @param authId
* @return List<Map<String,String>> * @return List<Map<String,String>>
* @author: * @author:
* @date: 2020. 11. 20. * @date: 2020. 11. 20.
*/ */
public List<Map<String, String>> findMenuListByAuthorId(String authorId); public List<Map<String, String>> findMenuListByAuthId(String authId);
@ -167,14 +167,14 @@ public interface XitFrameUnitService {
* <pre> : / * <pre> : /
* - (Role) . * - (Role) .
* </pre> * </pre>
* @param authorId * @param authId
* @param roleCode * @param roleCode
* @param isAdd * @param isAdd
* @return void * @return void
* @author: * @author:
* @date: 2020. 4. 17. * @date: 2020. 4. 17.
*/ */
public void addAuthRoleRelation(String authorId, String roleCode, boolean isAdd); public void addAuthRoleRelation(String authId, String roleCode, boolean isAdd);
@ -274,7 +274,7 @@ public interface XitFrameUnitService {
* @author: * @author:
* @date: 2020. 10. 30. * @date: 2020. 10. 30.
*/ */
public String getDefaultAuthorId(String grpId); public String getDefaultAuthId(String grpId);
@ -292,12 +292,12 @@ public interface XitFrameUnitService {
* case2. or or . * case2. or or .
* </pre> * </pre>
* @param uniqId ID * @param uniqId ID
* @param trgetAuthorId ( ) * @param trgetAuthId ( )
* @return boolean * @return boolean
* @author: * @author:
* @date: 2020. 11. 1. * @date: 2020. 11. 1.
*/ */
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorId); public boolean isCheckUserForCanChange(String uniqId, String trgetAuthId);
/** /**
* <pre> : true/false . * <pre> : true/false .
* - . * - .
@ -307,11 +307,11 @@ public interface XitFrameUnitService {
* case1. or . * case1. or .
* case2. or or . * case2. or or .
* </pre> * </pre>
* @param userAuthorId * @param userAuthId
* @param trgetAuthorId ( ) * @param trgetAuthId ( )
* @return boolean * @return boolean
* @author: * @author:
* @date: 2020. 11. 1. * @date: 2020. 11. 1.
*/ */
public boolean isCheckUserAuthorIdForCanChange(String userAuthorId, String trgetAuthorId); public boolean isCheckUserAuthIdForCanChange(String userAuthId, String trgetAuthId);
} }

@ -211,7 +211,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -242,7 +242,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -275,7 +275,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -308,7 +308,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -363,7 +363,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode())) if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -396,7 +396,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode())) if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -431,7 +431,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode())) if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -466,7 +466,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getRoleCode())) if(XitCmmnUtil.isEmpty(vo.getRoleCode()))
emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)역할코드(은)는 필수조건 입니다.", table);
@ -2418,7 +2418,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo())) if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table); emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -2451,7 +2451,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo())) if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table); emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -2486,7 +2486,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo())) if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table); emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);
@ -2521,7 +2521,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getMenuNo())) if(XitCmmnUtil.isEmpty(vo.getMenuNo()))
emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table); emsg = String.format("(%s)메뉴번호(은)는 필수조건 입니다.", table);
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table); emsg = String.format("(%s)권한코드(은)는 필수조건 입니다.", table);
if(emsg!=null){ if(emsg!=null){
logger.error(emsg); logger.error(emsg);

@ -227,8 +227,8 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
} }
@Override @Override
public List<Map<String, String>> findMenuListByAuthorId(String authorId){ public List<Map<String, String>> findMenuListByAuthId(String authId){
return CacheServiceUtils.findMenuListByAuthorId(authorId); return CacheServiceUtils.findMenuListByAuthId(authId);
} }
@Override @Override
@ -248,12 +248,12 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
} }
@Override @Override
public void addAuthRoleRelation(String authorId, String roleCode, boolean isAdd) { public void addAuthRoleRelation(String authId, String roleCode, boolean isAdd) {
/** /**
* *
*/ */
XitAuthorRoleRelateVO vo = new XitAuthorRoleRelateVO(); XitAuthorRoleRelateVO vo = new XitAuthorRoleRelateVO();
vo.setAuthorId(authorId); vo.setAuthId(authId);
vo.setRoleCode(roleCode); vo.setRoleCode(roleCode);
boolean isExists = XitCmmnUtil.notEmpty(xitFrameCrudService.findXitAuthorRoleRelate(vo)); boolean isExists = XitCmmnUtil.notEmpty(xitFrameCrudService.findXitAuthorRoleRelate(vo));
@ -424,7 +424,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* @date: 2020. 10. 30. * @date: 2020. 10. 30.
*/ */
@Override @Override
public String getDefaultAuthorId(String grpId) { public String getDefaultAuthId(String grpId) {
if (XitCmmnUtil.isEmpty(grpId)) if (XitCmmnUtil.isEmpty(grpId))
return "ROLE_USER"; return "ROLE_USER";
@ -436,16 +436,16 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
if (XitCmmnUtil.isEmpty(groupInfo)) if (XitCmmnUtil.isEmpty(groupInfo))
return "ROLE_USER"; return "ROLE_USER";
else { else {
if (XitCmmnUtil.isEmpty(groupInfo.getAuthorId())) if (XitCmmnUtil.isEmpty(groupInfo.getAuthId()))
return "ROLE_USER"; return "ROLE_USER";
else else
return groupInfo.getAuthorId(); return groupInfo.getAuthId();
} }
} }
@Override @Override
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorId) { public boolean isCheckUserForCanChange(String uniqId, String trgetAuthId) {
/** /**
* *
*/ */
@ -453,13 +453,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO(); XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(uniqId); userScrtySetupVO.setScrtySetupTrgetId(uniqId);
List<XitUserScrtySetupVO> listUserScrtySetupVO = xitFrameCrudService.findXitUserScrtySetups(userScrtySetupVO); List<XitUserScrtySetupVO> listUserScrtySetupVO = xitFrameCrudService.findXitUserScrtySetups(userScrtySetupVO);
String userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId(); String userAuthId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthId();
return this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId); return this.isCheckUserAuthIdForCanChange(userAuthId, trgetAuthId);
} }
@Override @Override
public boolean isCheckUserAuthorIdForCanChange(String userAuthorId, String trgetAuthorId) { public boolean isCheckUserAuthIdForCanChange(String userAuthId, String trgetAuthId) {
/** /**
* *
*/ */
@ -471,7 +471,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
return true; return true;
}else { }else {
//사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단) //사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단)
if(XitCmmnUtil.isEmpty(userAuthorId)) { if(XitCmmnUtil.isEmpty(userAuthId)) {
log.debug("This user is have not UserScrtySetup Data !!"); log.debug("This user is have not UserScrtySetup Data !!");
return false; return false;
} }
@ -479,7 +479,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
boolean isExists = false; boolean isExists = false;
//사용자 권한과 매칭되는 역할(권한)계층정보 유무 확인 //사용자 권한과 매칭되는 역할(권한)계층정보 유무 확인
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) { for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getParntsRole().equals(userAuthorId)) { if(item.getParntsRole().equals(userAuthId)) {
isExists = true; isExists = true;
break; break;
} }
@ -487,7 +487,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
//사용자 권한이 최상위 권한이면 true 반환 //사용자 권한이 최상위 권한이면 true 반환
if(!isExists) if(!isExists)
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) { for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getChldrnRole().equals(userAuthorId)) { if(item.getChldrnRole().equals(userAuthId)) {
log.debug("This user is Top-Level Author !!"); log.debug("This user is Top-Level Author !!");
return true; return true;
} }
@ -503,7 +503,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* *
* *
*/ */
return this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorId, trgetAuthorId)?false:true; return this.isHighAuthor(listRoleSclsrtRescueVO, userAuthId, trgetAuthId)?false:true;
} }
@ -515,13 +515,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* </pre> * </pre>
* *
* @param list * @param list
* @param authorId * @param authId
* @param highAuthorId * @param highAuthId
* @return boolean * @return boolean
* @author: * @author:
* @date: 2020. 11. 1. * @date: 2020. 11. 1.
*/ */
private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authorId, String highAuthorId) { private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authId, String highAuthId) {
boolean result = false; boolean result = false;
for (XitRoleSclsrtRescueVO item : list) { for (XitRoleSclsrtRescueVO item : list) {
@ -529,13 +529,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
if (result) if (result)
break; break;
// 권한코드가 일치하지 않으면 skip // 권한코드가 일치하지 않으면 skip
if (!item.getParntsRole().equals(authorId)) if (!item.getParntsRole().equals(authId))
continue; continue;
if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면 if (item.getChldrnRole().equals(highAuthId)) { // 상위 권한과 일치하면
result = true; result = true;
} else { // 상위 권한과 일치하지 않으면 재호출 } else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId); result = this.isHighAuthor(list, item.getChldrnRole(), highAuthId);
} }
} }

@ -41,7 +41,7 @@ public class XitAuthGrpMngVO extends BaseVO {
/** /**
* *
*/ */
private String authorId; private String authId;
/** /**
* *
*/ */
@ -117,11 +117,11 @@ public class XitAuthGrpMngVO extends BaseVO {
public void setDscrp(String dscrp) { public void setDscrp(String dscrp) {
this.dscrp = dscrp; this.dscrp = dscrp;
} }
public String getAuthorId() { public String getAuthId() {
return authorId; return authId;
} }
public void setAuthorId(String authorId) { public void setAuthId(String authId) {
this.authorId = authorId; this.authId = authId;
} }
public String getAuthorNm() { public String getAuthorNm() {
return authorNm; return authorNm;

@ -27,7 +27,7 @@ public class XitAuthHierarchyMngVO {
/** /**
* *
*/ */
private String authorId; private String authId;
/** /**
* *
*/ */

@ -26,7 +26,7 @@ public class XitAuthRegMngVO extends BaseVO {
/** /**
* *
*/ */
private String authorId; private String authId;
/** /**
* *
*/ */
@ -55,18 +55,18 @@ public class XitAuthRegMngVO extends BaseVO {
this.authorManage = authorManage; this.authorManage = authorManage;
} }
/** /**
* authorId attribute . * authId attribute .
* @return String * @return String
*/ */
public String getAuthorId() { public String getAuthId() {
return authorId; return authId;
} }
/** /**
* authorId attribute . * authId attribute .
* @param authorId String * @param authId String
*/ */
public void setAuthorId(String authorId) { public void setAuthId(String authId) {
this.authorId = authorId; this.authId = authId;
} }
/** /**
* authorCreatDe attribute . * authorCreatDe attribute .

@ -59,5 +59,5 @@ public class XitAuthRuleMngVO extends BaseVO {
/** /**
* *
*/ */
private String authorId; private String authId;
} }

@ -48,7 +48,7 @@ public class XitAuthUsrMngVO {
/** /**
* *
*/ */
private String authorId; private String authId;
/** /**
* *
*/ */

@ -24,7 +24,7 @@ public class XitAuthorGroupInfoVO {
private String grpId; //그룹 id private String grpId; //그룹 id
private String groupNm; //그룹 명 private String groupNm; //그룹 명
private String dscrp; //그룹 설명 private String dscrp; //그룹 설명
private String authorId; //권한 코드 private String authId; //권한 코드
private String authorNm; private String authorNm;
private String groupCreatDe; //그룹 생성 일 private String groupCreatDe; //그룹 생성 일
} }

@ -25,7 +25,7 @@ public class XitAuthorInfoVO {
*/ */
private static final long serialVersionUID = 4982342550430087973L; private static final long serialVersionUID = 4982342550430087973L;
protected String authorId; //권한 코드 protected String authId; //권한 코드
protected String authorNm; //권한 명 protected String authorNm; //권한 명
protected String dscrp; //권한 설명 protected String dscrp; //권한 설명
protected String authorCreatDe; //권한 생성 일 protected String authorCreatDe; //권한 생성 일

@ -52,7 +52,7 @@ public interface AuthAuthorMgtMapper {
<T> XitAuthorInfoVO selectAuthorInfo(final T t); <T> XitAuthorInfoVO selectAuthorInfo(final T t);
int insertAuthorInfo(final XitAuthorInfoVO vo); int insertAuthorInfo(final XitAuthorInfoVO vo);
int updateAuthorInfo(final XitAuthorInfoVO vo); int updateAuthorInfo(final XitAuthorInfoVO vo);
int deleteAuthorInfo(final String authorId); int deleteAuthorInfo(final String authId);
List<XitRoleSclsrtRescueVO> selectRoleSclsrtRescues(final XitRoleSclsrtRescueVO vo); List<XitRoleSclsrtRescueVO> selectRoleSclsrtRescues(final XitRoleSclsrtRescueVO vo);

@ -33,7 +33,7 @@ public interface AuthAuthorMgtService {
<T> XitAuthorInfoVO findAuthAuthor(final T t); <T> XitAuthorInfoVO findAuthAuthor(final T t);
void addAuthAuthor(final XitAuthorInfoVO vo); void addAuthAuthor(final XitAuthorInfoVO vo);
void modifyAuthAuthor(final XitAuthorInfoVO vo); void modifyAuthAuthor(final XitAuthorInfoVO vo);
void removeAuthAuthor(final String authorId); void removeAuthAuthor(final String authId);
List<XitRoleInfoVO> findAuthRoleGrantList(final Map<String, Object> paraMap); List<XitRoleInfoVO> findAuthRoleGrantList(final Map<String, Object> paraMap);

@ -22,7 +22,7 @@ public interface AuthGrpMgtService {
<T> XitAuthorGroupInfoVO findAuthGrp(final T t); <T> XitAuthorGroupInfoVO findAuthGrp(final T t);
void addAuthGrp(final XitAuthorGroupInfoVO vo); void addAuthGrp(final XitAuthorGroupInfoVO vo);
void modifyAuthGrp(final XitAuthorGroupInfoVO vo); void modifyAuthGrp(final XitAuthorGroupInfoVO vo);
void removeAuthGrp(final String authorId); void removeAuthGrp(final String authId);
void isCheckUserForCanChange(final String uniqId, final String trgetAuthorId); void isCheckUserForCanChange(final String uniqId, final String trgetAuthId);
} }

@ -71,10 +71,10 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO(); XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO();
//부모관계 생성 //부모관계 생성
roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR); roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR);
roleSclsrtRescueVO.setChldrnRole(vo.getAuthorId()); roleSclsrtRescueVO.setChldrnRole(vo.getAuthId());
mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO); mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 생성 //자녀관계 생성
roleSclsrtRescueVO.setParntsRole(vo.getAuthorId()); roleSclsrtRescueVO.setParntsRole(vo.getAuthId());
roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR); roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR);
mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO); mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO);
} }
@ -86,18 +86,18 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
} }
@Transactional @Transactional
public void removeAuthAuthor(final String authorId){ public void removeAuthAuthor(final String authId){
//계층구조 삭제 //계층구조 삭제
XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO(); XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO();
roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR); roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR);
roleSclsrtRescueVO.setChldrnRole(authorId); roleSclsrtRescueVO.setChldrnRole(authId);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO); mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 제거 //자녀관계 제거
roleSclsrtRescueVO.setParntsRole(authorId); roleSclsrtRescueVO.setParntsRole(authId);
roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR); roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO); mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
mapper.deleteAuthorInfo(authorId); mapper.deleteAuthorInfo(authId);
} }
@Override @Override
@ -113,7 +113,7 @@ public class AuthAuthorMgtServiceBean extends AbstractServiceBean implements Aut
List<Map<String,Object>> mapList = (List<Map<String, Object>>)paraMap.get("grantData"); List<Map<String,Object>> mapList = (List<Map<String, Object>>)paraMap.get("grantData");
mapList.forEach(map -> { mapList.forEach(map -> {
map.put("authorId", paraMap.get("authorId")); map.put("authId", paraMap.get("authId"));
if(Objects.equals(map.get("regYn"), "N")) if(Objects.equals(map.get("regYn"), "N"))
mapper.deleteRoleGrant(map); mapper.deleteRoleGrant(map);
else else

@ -41,11 +41,11 @@ public class AuthByUserMgtServiceBean extends AbstractServiceBean implements Aut
String sessionUniqId = XitCmmnUtil.getUserInfo().getUniqId(); String sessionUniqId = XitCmmnUtil.getUserInfo().getUniqId();
paraList.forEach(map -> { paraList.forEach(map -> {
//유효성확인 //유효성확인
authGrpMgtService.isCheckUserForCanChange(sessionUniqId, String.valueOf(map.get("authorId"))); authGrpMgtService.isCheckUserForCanChange(sessionUniqId, String.valueOf(map.get("authId")));
XitUserScrtySetupVO vo = new XitUserScrtySetupVO(); XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId"))); vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setAuthorId(String.valueOf(map.get("authorId"))); vo.setAuthId(String.valueOf(map.get("authId")));
if(Objects.equals("N", map.get("regYn"))){ if(Objects.equals("N", map.get("regYn"))){
userMapper.insertUserScrtySetup(vo); userMapper.insertUserScrtySetup(vo);
@ -63,7 +63,7 @@ public class AuthByUserMgtServiceBean extends AbstractServiceBean implements Aut
paraList.forEach(map -> { paraList.forEach(map -> {
XitUserScrtySetupVO vo = new XitUserScrtySetupVO(); XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId"))); vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setAuthorId(userMgtService.getDefaultAuthorId(String.valueOf(map.get("grpId")))); vo.setAuthId(userMgtService.getDefaultAuthId(String.valueOf(map.get("grpId"))));
userMapper.updateUserScrtySetup(vo); userMapper.updateUserScrtySetup(vo);
}); });
} }

@ -53,7 +53,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
@Transactional @Transactional
public void addAuthGrp(final XitAuthorGroupInfoVO vo) { public void addAuthGrp(final XitAuthorGroupInfoVO vo) {
// 유효성 확인 // 유효성 확인
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorId()); this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthId());
try { try {
vo.setGrpId(groupIdGnrService.getNextStringId()); vo.setGrpId(groupIdGnrService.getNextStringId());
@ -67,7 +67,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
@Transactional @Transactional
public void modifyAuthGrp(final XitAuthorGroupInfoVO vo) { public void modifyAuthGrp(final XitAuthorGroupInfoVO vo) {
// 유효성 확인 // 유효성 확인
this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorId()); this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthId());
mapper.updateAuthorGroupInfo(vo); mapper.updateAuthorGroupInfo(vo);
} }
@ -79,19 +79,19 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
} }
@Transactional(readOnly = true) @Transactional(readOnly = true)
public void isCheckUserForCanChange(final String uniqId, final String trgetAuthorId) { public void isCheckUserForCanChange(final String uniqId, final String trgetAuthId) {
//사용자보안설정 조회 //사용자보안설정 조회
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO(); XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(uniqId); userScrtySetupVO.setScrtySetupTrgetId(uniqId);
List<XitUserScrtySetupVO> listUserScrtySetupVO = userMgtMapper.selectUserScrtySetups(userScrtySetupVO); List<XitUserScrtySetupVO> listUserScrtySetupVO = userMgtMapper.selectUserScrtySetups(userScrtySetupVO);
String userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId(); String userAuthId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthId();
if(!this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId)) if(!this.isCheckUserAuthIdForCanChange(userAuthId, trgetAuthId))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "자신의 권한보다 상위 권한을 설정 할 수 없습니다.");; throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "자신의 권한보다 상위 권한을 설정 할 수 없습니다.");;
} }
private boolean isCheckUserAuthorIdForCanChange(final String userAuthorId, final String trgetAuthorId) { private boolean isCheckUserAuthIdForCanChange(final String userAuthId, final String trgetAuthId) {
//역할(권한)계층구조 데이터 목록 조회 //역할(권한)계층구조 데이터 목록 조회
List<XitRoleSclsrtRescueVO> listRoleSclsrtRescueVO = authAuthorMgtMapper.selectRoleSclsrtRescues(null); List<XitRoleSclsrtRescueVO> listRoleSclsrtRescueVO = authAuthorMgtMapper.selectRoleSclsrtRescues(null);
//역할(권한)계층구조를 사용하지 않고 있는 경우 true 반환 //역할(권한)계층구조를 사용하지 않고 있는 경우 true 반환
@ -100,7 +100,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
return true; return true;
}else { }else {
//사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단) //사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단)
if(XitCmmnUtil.isEmpty(userAuthorId)) { if(XitCmmnUtil.isEmpty(userAuthId)) {
log.debug("This user is have not UserScrtySetup Data !!"); log.debug("This user is have not UserScrtySetup Data !!");
return false; return false;
} }
@ -108,7 +108,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
boolean isExists = false; boolean isExists = false;
//사용자 권한과 매칭되는 역할(권한)계층정보 유무 확인 //사용자 권한과 매칭되는 역할(권한)계층정보 유무 확인
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) { for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getParntsRole().equals(userAuthorId)) { if(item.getParntsRole().equals(userAuthId)) {
isExists = true; isExists = true;
break; break;
} }
@ -116,7 +116,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
//사용자 권한이 최상위 권한이면 true 반환 //사용자 권한이 최상위 권한이면 true 반환
if(!isExists) if(!isExists)
for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) { for(XitRoleSclsrtRescueVO item : listRoleSclsrtRescueVO) {
if(item.getChldrnRole().equals(userAuthorId)) { if(item.getChldrnRole().equals(userAuthId)) {
log.debug("This user is Top-Level Author !!"); log.debug("This user is Top-Level Author !!");
return true; return true;
} }
@ -132,10 +132,10 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
* *
* *
*/ */
return !this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorId, trgetAuthorId); return !this.isHighAuthor(listRoleSclsrtRescueVO, userAuthId, trgetAuthId);
} }
private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authorId, final String highAuthorId) { private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authId, final String highAuthId) {
boolean result = false; boolean result = false;
for (XitRoleSclsrtRescueVO item : list) { for (XitRoleSclsrtRescueVO item : list) {
@ -143,13 +143,13 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
if (result) if (result)
break; break;
// 권한코드가 일치하지 않으면 skip // 권한코드가 일치하지 않으면 skip
if (!item.getParntsRole().equals(authorId)) if (!item.getParntsRole().equals(authId))
continue; continue;
if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면 if (item.getChldrnRole().equals(highAuthId)) { // 상위 권한과 일치하면
result = true; result = true;
} else { // 상위 권한과 일치하지 않으면 재호출 } else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId); result = this.isHighAuthor(list, item.getChldrnRole(), highAuthId);
} }
} }

@ -33,7 +33,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
if(XitCmmnUtil.notEmpty(voList)) { if(XitCmmnUtil.notEmpty(voList)) {
for(XitAuthHierarchyMngVO vo : voList) { for(XitAuthHierarchyMngVO vo : voList) {
String strAuthorRescueCode = this.getStrAuthHierarchy(vo.getAuthorId()); String strAuthorRescueCode = this.getStrAuthHierarchy(vo.getAuthId());
vo.setAuthorRescueCode(strAuthorRescueCode); vo.setAuthorRescueCode(strAuthorRescueCode);
vo.setAuthorRescueCodeNm(this.convertKorNm(strAuthorRescueCode)); vo.setAuthorRescueCodeNm(this.convertKorNm(strAuthorRescueCode));
} }
@ -51,9 +51,9 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
return result; return result;
String topButtonAuthorId = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole()); String topButtonAuthId = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole());
topButtonAuthorId = topButtonAuthorId.split(">")[0].trim(); topButtonAuthId = topButtonAuthId.split(">")[0].trim();
String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthorId); String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthId);
result.setAuthorRescueCode(strAuthorRescueCode); result.setAuthorRescueCode(strAuthorRescueCode);
return result; return result;
@ -61,25 +61,25 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
@Transactional @Transactional
public void saveAuthHierarchy(final XitAuthHierarchyMngVO vo) { public void saveAuthHierarchy(final XitAuthHierarchyMngVO vo) {
if(XitCmmnUtil.isEmpty(vo.getAuthorId())) if(XitCmmnUtil.isEmpty(vo.getAuthId()))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "권한코드는 필수조건 입니다."); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "권한코드는 필수조건 입니다.");
String[] arrAuthorIdGrp = vo.getAuthorId().split(","); //권한코드 묶음 목록 String[] arrAuthIdGrp = vo.getAuthId().split(","); //권한코드 묶음 목록
/** /**
* *
* - . * - .
* - () . * - () .
*/ */
if(arrAuthorIdGrp[0].split(";").length>1) if(arrAuthIdGrp[0].split(";").length>1)
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최상위 부모는 한개만 설정 가능 합니다."); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최상위 부모는 한개만 설정 가능 합니다.");
// 최하위 자녀 갯수 확인 // 최하위 자녀 갯수 확인
if(arrAuthorIdGrp[arrAuthorIdGrp.length-1].split(";").length>1) if(arrAuthIdGrp[arrAuthIdGrp.length-1].split(";").length>1)
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최하위 자녀는 한개만 설정 가능 합니다."); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최하위 자녀는 한개만 설정 가능 합니다.");
// 다중상속 구간 갯수 확인 // 다중상속 구간 갯수 확인
int cnt = 0; int cnt = 0;
for(String authorIdGrp : arrAuthorIdGrp) { for(String authIdGrp : arrAuthIdGrp) {
if(authorIdGrp.split(";").length > 1) if(authIdGrp.split(";").length > 1)
cnt++; cnt++;
} }
if(cnt > 1) if(cnt > 1)
@ -88,14 +88,14 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
//권한계층구조 일괄 제거 //권한계층구조 일괄 제거
authAuthorMgtMapper.deleteRoleSclsrtRescue(new XitRoleSclsrtRescueVO()); authAuthorMgtMapper.deleteRoleSclsrtRescue(new XitRoleSclsrtRescueVO());
//권한계층 데이터 등록 //권한계층 데이터 등록
for(int i=0; i<arrAuthorIdGrp.length; i++) { for(int i=0; i<arrAuthIdGrp.length; i++) {
//마지막 권한이면 stop //마지막 권한이면 stop
if(i==arrAuthorIdGrp.length-1) if(i==arrAuthIdGrp.length-1)
break; break;
String[] arrParntsRole = arrAuthorIdGrp[i].split(";"); String[] arrParntsRole = arrAuthIdGrp[i].split(";");
String[] arrChldrnRole = arrAuthorIdGrp[i+1].split(";"); String[] arrChldrnRole = arrAuthIdGrp[i+1].split(";");
for(int j=0; j<arrParntsRole.length; j++) { for(int j=0; j<arrParntsRole.length; j++) {
String parntsRole = arrParntsRole[j]; String parntsRole = arrParntsRole[j];
for(int k=0; k<arrChldrnRole.length; k++) { for(int k=0; k<arrChldrnRole.length; k++) {
@ -112,26 +112,26 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
/** /**
* <pre> : .</pre> * <pre> : .</pre>
* @param authorId * @param authId
* @return String * @return String
* @author: * @author:
* @date: 2020. 11. 2. * @date: 2020. 11. 2.
*/ */
private String getStrAuthHierarchy(final String authorId) { private String getStrAuthHierarchy(final String authId) {
LinkedHashMap<String, String> mParnts = new LinkedHashMap<String, String>(); LinkedHashMap<String, String> mParnts = new LinkedHashMap<String, String>();
LinkedHashMap<String, String> mChldrn = new LinkedHashMap<String, String>(); LinkedHashMap<String, String> mChldrn = new LinkedHashMap<String, String>();
List<XitRoleSclsrtRescueVO> list = authAuthorMgtMapper.selectRoleSclsrtRescues(new XitRoleSclsrtRescueVO()); List<XitRoleSclsrtRescueVO> list = authAuthorMgtMapper.selectRoleSclsrtRescues(new XitRoleSclsrtRescueVO());
this.getAuthHierarchy(list, authorId, false, mParnts); this.getAuthHierarchy(list, authId, false, mParnts);
this.getAuthHierarchy(list, authorId, true, mChldrn); this.getAuthHierarchy(list, authId, true, mChldrn);
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
Iterator<String> it = mParnts.keySet().iterator(); Iterator<String> it = mParnts.keySet().iterator();
while(it.hasNext()) { while(it.hasNext()) {
sb.append(mParnts.get(it.next())).append(" > "); sb.append(mParnts.get(it.next())).append(" > ");
} }
sb.append(authorId).append(" > "); sb.append(authId).append(" > ");
it = mChldrn.keySet().iterator(); it = mChldrn.keySet().iterator();
while(it.hasNext()) { while(it.hasNext()) {
sb.append(mChldrn.get(it.next())).append(" > "); sb.append(mChldrn.get(it.next())).append(" > ");
@ -144,29 +144,29 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
/** /**
* <pre> : / resultMap(LinkedHashMap) .</pre> * <pre> : / resultMap(LinkedHashMap) .</pre>
* @param list * @param list
* @param authorId * @param authId
* @param isChldrnSearch (true: , false: ) * @param isChldrnSearch (true: , false: )
* @param resultMap * @param resultMap
* @return void * @return void
* @author: * @author:
* @date: 2020. 11. 2. * @date: 2020. 11. 2.
*/ */
private void getAuthHierarchy(final List<XitRoleSclsrtRescueVO> list, final String authorId, final boolean isChldrnSearch, final LinkedHashMap<String, String> resultMap) { private void getAuthHierarchy(final List<XitRoleSclsrtRescueVO> list, final String authId, final boolean isChldrnSearch, final LinkedHashMap<String, String> resultMap) {
for (XitRoleSclsrtRescueVO item : list) { for (XitRoleSclsrtRescueVO item : list) {
if(isChldrnSearch) { if(isChldrnSearch) {
// 권한코드가 일치하지 않으면 skip // 권한코드가 일치하지 않으면 skip
if (!item.getParntsRole().equals(authorId)) if (!item.getParntsRole().equals(authId))
continue; continue;
//권한코드 Set //권한코드 Set
if(resultMap.containsKey(authorId)) { if(resultMap.containsKey(authId)) {
//동일한 값이면 담지 않음 //동일한 값이면 담지 않음
if(resultMap.get(authorId).equals(item.getChldrnRole())) if(resultMap.get(authId).equals(item.getChldrnRole()))
continue; continue;
resultMap.put(authorId, resultMap.get(authorId)+", "+item.getChldrnRole()); resultMap.put(authId, resultMap.get(authId)+", "+item.getChldrnRole());
}else { }else {
//동일한 값이 있으면 담지 않음 //동일한 값이 있으면 담지 않음
Iterator<String> it = resultMap.values().iterator(); Iterator<String> it = resultMap.values().iterator();
@ -183,7 +183,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
} }
} }
if(!isExists) if(!isExists)
resultMap.put(authorId, item.getChldrnRole()); resultMap.put(authId, item.getChldrnRole());
} }
@ -192,23 +192,23 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
}else { }else {
// 권한코드가 일치하지 않으면 skip // 권한코드가 일치하지 않으면 skip
if (!item.getChldrnRole().equals(authorId)) if (!item.getChldrnRole().equals(authId))
continue; continue;
//재탐색 //재탐색
this.getAuthHierarchy(list, item.getParntsRole(), isChldrnSearch, resultMap); this.getAuthHierarchy(list, item.getParntsRole(), isChldrnSearch, resultMap);
//권한코드 Set //권한코드 Set
if(resultMap.containsKey(authorId)) { if(resultMap.containsKey(authId)) {
//동일한 값이면 담지 않음 //동일한 값이면 담지 않음
if(resultMap.get(authorId).equals(item.getParntsRole())) if(resultMap.get(authId).equals(item.getParntsRole()))
continue; continue;
resultMap.put(authorId, resultMap.get(authorId)+", "+item.getParntsRole()); resultMap.put(authId, resultMap.get(authId)+", "+item.getParntsRole());
}else { }else {
//동일한 값이 있으면 담지 않음 //동일한 값이 있으면 담지 않음
if(!resultMap.containsValue(item.getParntsRole())) { if(!resultMap.containsValue(item.getParntsRole())) {
resultMap.put(authorId, item.getParntsRole()); resultMap.put(authId, item.getParntsRole());
} }
} }
} }
@ -223,7 +223,7 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
List<XitAuthorInfoVO> listAuthorInfoVO = authAuthorMgtMapper.selectAuthorInfos(null); List<XitAuthorInfoVO> listAuthorInfoVO = authAuthorMgtMapper.selectAuthorInfos(null);
Map<String, String> mAuthorInfo = new HashMap<String, String>(); Map<String, String> mAuthorInfo = new HashMap<String, String>();
for(XitAuthorInfoVO item : listAuthorInfoVO) { for(XitAuthorInfoVO item : listAuthorInfoVO) {
mAuthorInfo.put(item.getAuthorId(), item.getAuthorNm()); mAuthorInfo.put(item.getAuthId(), item.getAuthorNm());
} }
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
@ -234,15 +234,15 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
if(i>0) if(i>0)
sb.append(" > "); sb.append(" > ");
String[] arrAuthorId = item.split(","); String[] arrAuthId = item.split(",");
for(int j=0; j<arrAuthorId.length; j++) { for(int j=0; j<arrAuthId.length; j++) {
String authorId = arrAuthorId[j].trim(); String authId = arrAuthId[j].trim();
if(j==0) if(j==0)
sb.append(mAuthorInfo.get(authorId)); sb.append(mAuthorInfo.get(authId));
else else
sb.append(", ").append(mAuthorInfo.get(authorId)); sb.append(", ").append(mAuthorInfo.get(authId));
} }
} }

@ -42,7 +42,7 @@ public class AuthAuthorMgtController extends AbstractController {
public ModelAndView mngAuthAuthorMgtPopup(final XitAuthorInfoVO vo){ public ModelAndView mngAuthAuthorMgtPopup(final XitAuthorInfoVO vo){
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthorId())){ if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthId())){
mav.addObject("authorInfoVO", new XitAuthorInfoVO()); mav.addObject("authorInfoVO", new XitAuthorInfoVO());
mav.addObject("pageTitle", "권한 등록"); mav.addObject("pageTitle", "권한 등록");
} else { } else {
@ -86,10 +86,10 @@ public class AuthAuthorMgtController extends AbstractController {
} }
@PostMapping(name = "", value = "/removeAuthAuthor") @PostMapping(name = "", value = "/removeAuthAuthor")
public ModelAndView removeAuthAuthor(final String authorId){ public ModelAndView removeAuthAuthor(final String authId){
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
service.removeAuthAuthor(authorId); service.removeAuthAuthor(authId);
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_DELETE_SUCCESS); AjaxMessageMapRenderer.success(mav, MessageKey.CMM_DELETE_SUCCESS);
return mav; return mav;
} }

@ -58,27 +58,27 @@ public class AuthHierarchyMgtController extends AbstractController {
//권한코드 Map 생성 //권한코드 Map 생성
List<XitAuthorInfoVO> authorInfoVOList = authAuthorMgtService.findAuthAuthors(null); List<XitAuthorInfoVO> authorInfoVOList = authAuthorMgtService.findAuthAuthors(null);
Map<String, String> mAuthorInfo = new HashMap<String, String>(); Map<String, String> mAuthorInfo = new HashMap<String, String>();
authorInfoVOList.forEach(infoVO -> mAuthorInfo.put(infoVO.getAuthorId(), infoVO.getAuthorNm())); authorInfoVOList.forEach(infoVO -> mAuthorInfo.put(infoVO.getAuthId(), infoVO.getAuthorNm()));
//권한코드 목록에서 비중복 권한만 추출 //권한코드 목록에서 비중복 권한만 추출
Map<String, String> mNoDuplAuthorInfo = new HashMap<String, String>(); Map<String, String> mNoDuplAuthorInfo = new HashMap<String, String>();
mNoDuplAuthorInfo.putAll(mAuthorInfo); mNoDuplAuthorInfo.putAll(mAuthorInfo);
String[] arrAuthorRescue = authHierarchyMngVO.getAuthorRescueCode().split(">"); String[] arrAuthorRescue = authHierarchyMngVO.getAuthorRescueCode().split(">");
for(int i=0; i<arrAuthorRescue.length; i++) { for(int i=0; i<arrAuthorRescue.length; i++) {
String[] arrAuthorId = arrAuthorRescue[i].split(","); String[] arrAuthId = arrAuthorRescue[i].split(",");
for(int j=0; j<arrAuthorId.length; j++) { for(int j=0; j<arrAuthId.length; j++) {
String authorId = arrAuthorId[j].trim(); String authId = arrAuthId[j].trim();
if(mNoDuplAuthorInfo.containsKey(authorId)) { if(mNoDuplAuthorInfo.containsKey(authId)) {
mNoDuplAuthorInfo.remove(authorId); mNoDuplAuthorInfo.remove(authId);
} }
} }
} }
//권한계층 미설정 권한 목록 설정 //권한계층 미설정 권한 목록 설정
List<XitAuthorInfoVO> listAuthorInfo = new ArrayList<>(); List<XitAuthorInfoVO> listAuthorInfo = new ArrayList<>();
for (String authorId : mNoDuplAuthorInfo.keySet()) { for (String authId : mNoDuplAuthorInfo.keySet()) {
XitAuthorInfoVO authorInfo = new XitAuthorInfoVO(); XitAuthorInfoVO authorInfo = new XitAuthorInfoVO();
authorInfo.setAuthorId(authorId); authorInfo.setAuthId(authId);
authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authorId)); authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authId));
listAuthorInfo.add(authorInfo); listAuthorInfo.add(authorInfo);
} }

@ -24,7 +24,7 @@ public class MenuCreateMngVO extends BaseVO {
/** 맵생성ID */ /** 맵생성ID */
private String mapCreatId; private String mapCreatId;
/** 권한코드 */ /** 권한코드 */
private String authorId; private String authId;
/** 권한정보설정 */ /** 권한정보설정 */
/** 권한명 */ /** 권한명 */
@ -78,18 +78,18 @@ public class MenuCreateMngVO extends BaseVO {
this.mapCreatId = mapCreatId; this.mapCreatId = mapCreatId;
} }
/** /**
* authorId attribute . * authId attribute .
* @return String * @return String
*/ */
public String getAuthorId() { public String getAuthId() {
return authorId; return authId;
} }
/** /**
* authorId attribute . * authId attribute .
* @param authorId String * @param authId String
*/ */
public void setAuthorId(String authorId) { public void setAuthId(String authId) {
this.authorId = authorId; this.authId = authId;
} }
/** /**
* authorNm attribute . * authorNm attribute .

@ -41,7 +41,7 @@ public class MenuListMngVO {
/** 권한정보설정 */ /** 권한정보설정 */
/** 권한코드 */ /** 권한코드 */
private String authorId; private String authId;
/** 기타VO변수 */ /** 기타VO변수 */
private String tempValue; private String tempValue;
@ -192,18 +192,18 @@ public class MenuListMngVO {
this.creatPersonId = creatPersonId; this.creatPersonId = creatPersonId;
} }
/** /**
* authorId attribute . * authId attribute .
* @return String * @return String
*/ */
public String getAuthorId() { public String getAuthId() {
return authorId; return authId;
} }
/** /**
* authorId attribute . * authId attribute .
* @param authorId String * @param authId String
*/ */
public void setAuthorId(String authorId) { public void setAuthId(String authId) {
this.authorId = authorId; this.authId = authId;
} }
/** /**

@ -12,6 +12,6 @@ public interface MenuByRoleMgtMapper {
<T> List<MenuCreateMngVO> selectRoleInfos(T t); <T> List<MenuCreateMngVO> selectRoleInfos(T t);
<T> List<MenuCreateMngVO> selectMenuInfoByRoleList(T t); <T> List<MenuCreateMngVO> selectMenuInfoByRoleList(T t);
int deleteMenuCreatDtls(final String authorId); int deleteMenuCreatDtls(final String authId);
int insertMenuCreatDtls(final XitMenuCreatDtlsVO vo); int insertMenuCreatDtls(final XitMenuCreatDtlsVO vo);
} }

@ -36,19 +36,19 @@ public class MenuByRoleMgtServiceBean extends AbstractServiceBean implements Men
@Override @Override
@Transactional @Transactional
public void saveMenuByRoleList(Map<String, Object> paraMap) { public void saveMenuByRoleList(Map<String, Object> paraMap) {
String authorId = String.valueOf(paraMap.get("authorId")); String authId = String.valueOf(paraMap.get("authId"));
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
List<String> menuNoList = (List<String>)paraMap.get("menuNoList"); List<String> menuNoList = (List<String>)paraMap.get("menuNoList");
// 해당 권한의 메뉴 삭제 // 해당 권한의 메뉴 삭제
mapper.deleteMenuCreatDtls(authorId); mapper.deleteMenuCreatDtls(authId);
// 메뉴 등록 // 메뉴 등록
menuNoList.forEach((menuNo) -> { menuNoList.forEach((menuNo) -> {
mapper.insertMenuCreatDtls( mapper.insertMenuCreatDtls(
XitMenuCreatDtlsVO XitMenuCreatDtlsVO
.builder() .builder()
.authorId(authorId) .authId(authId)
.menuNo(menuNo) .menuNo(menuNo)
.build() .build()
); );

@ -25,5 +25,5 @@ public class XitUserScrtySetupVO {
private static final long serialVersionUID = -4431553754531650113L; private static final long serialVersionUID = -4431553754531650113L;
protected String scrtySetupTrgetId; //보안 설정 대상 id protected String scrtySetupTrgetId; //보안 설정 대상 id
protected String authorId; //권한 코드 protected String authId; //권한 코드
} }

@ -34,7 +34,7 @@ public interface UserMgtService {
void modifyUser(final XitUserInfoVO userInfoVO); void modifyUser(final XitUserInfoVO userInfoVO);
void removeUser(final String uniqId); void removeUser(final String uniqId);
String getDefaultAuthorId(final String grpId); String getDefaultAuthId(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.getUserId()); userScrtySetupVO.setScrtySetupTrgetId(vo.getUserId());
userScrtySetupVO.setAuthorId(this.getDefaultAuthorId(vo.getGrpId())); userScrtySetupVO.setAuthId(this.getDefaultAuthId(vo.getGrpId()));
mapper.insertUserScrtySetup(userScrtySetupVO); mapper.insertUserScrtySetup(userScrtySetupVO);
// 기타 option // 기타 option
@ -117,7 +117,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
if(!Objects.equals(vo.getGrpId(), userInfoCheckMap.get("grp_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.setAuthorId(this.getDefaultAuthorId(vo.getGrpId())); userScrtySetupVO.setAuthId(this.getDefaultAuthId(vo.getGrpId()));
if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getScrtySetupTrgetId()))) { if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getScrtySetupTrgetId()))) {
mapper.insertUserScrtySetup(userScrtySetupVO); mapper.insertUserScrtySetup(userScrtySetupVO);
@ -161,7 +161,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
*/ */
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public String getDefaultAuthorId(final String grpId) { public String getDefaultAuthId(final String grpId) {
if(Checks.isEmpty(grpId)) return "ROLE_USER"; if(Checks.isEmpty(grpId)) return "ROLE_USER";
XitAuthorGroupInfoVO vo = authGrpMgtMapper.selectAuthorGroupInfo(grpId); XitAuthorGroupInfoVO vo = authGrpMgtMapper.selectAuthorGroupInfo(grpId);
@ -169,10 +169,10 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
if (Checks.isEmpty(vo)) if (Checks.isEmpty(vo))
return "ROLE_USER"; return "ROLE_USER";
else { else {
if (Checks.isEmpty(vo.getAuthorId())) if (Checks.isEmpty(vo.getAuthId()))
return "ROLE_USER"; return "ROLE_USER";
else else
return vo.getAuthorId(); return vo.getAuthId();
} }
} }
@ -212,18 +212,18 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
}else { }else {
//사용자(수정대상) 권한 조회 //사용자(수정대상) 권한 조회
XitUserScrtySetupVO scrtyVO = mapper.selectUserScrtySetup(uniqId); XitUserScrtySetupVO scrtyVO = mapper.selectUserScrtySetup(uniqId);
String tgtAuthorId = scrtyVO.getAuthorId(); String tgtAuthId = scrtyVO.getAuthId();
//사용자(수정자) 권한 조회 //사용자(수정자) 권한 조회
scrtyVO = mapper.selectUserScrtySetup(loginSessionVO.getUniqId());; scrtyVO = mapper.selectUserScrtySetup(loginSessionVO.getUniqId());;
String userAuthorId = scrtyVO.getAuthorId(); String userAuthId = scrtyVO.getAuthId();
//사용자(수정자)가 ROLE_ADMIN 권한의 사용자인 경우 //사용자(수정자)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(userAuthorId)) { if("ROLE_ADMIN".equals(userAuthId)) {
return true; return true;
}else { }else {
//사용자(수정대상)가 ROLE_ADMIN 권한의 사용자인 경우 //사용자(수정대상)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(tgtAuthorId)) { if("ROLE_ADMIN".equals(tgtAuthId)) {
return false; return false;
} }

@ -60,7 +60,7 @@ public class XitUserEtcOptMngController extends AbstractController {
/*================ /*================
* *
================*/ ================*/
model.addAttribute("dataAuthorId_result" , xitFrameCodeService.findCmmnDetailCodes("XIT401")); //자료조회및관리범위코드 목록 model.addAttribute("dataAuthId_result" , xitFrameCodeService.findCmmnDetailCodes("XIT401")); //자료조회및관리범위코드 목록
model.addAttribute("elctrnsanctnUseYnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT402")); //전자결재사용여부코드 목록 model.addAttribute("elctrnsanctnUseYnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT402")); //전자결재사용여부코드 목록
model.addAttribute("jobConfmAuthorYnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT403")); //업무승인권한코드 목록 model.addAttribute("jobConfmAuthorYnCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT403")); //업무승인권한코드 목록

@ -47,7 +47,7 @@ public class XitMenuManageVO {
/** 권한정보설정 */ /** 권한정보설정 */
/** 권한코드 */ /** 권한코드 */
private String authorId; private String authId;
/** 기타VO변수 */ /** 기타VO변수 */
private String tempValue; private String tempValue;

@ -72,7 +72,7 @@ public class MenuIntercepter extends HandlerInterceptorAdapter {
} }
else { else {
//익명사용자 메뉴 목록 조회 //익명사용자 메뉴 목록 조회
allMenuList = CacheServiceUtils.findMenuListByAuthorId("ROLE_ANONYMOUS"); allMenuList = CacheServiceUtils.findMenuListByAuthId("ROLE_ANONYMOUS");
} }
// main page만 메뉴목록 / 공지사항 조회 // main page만 메뉴목록 / 공지사항 조회

@ -39,7 +39,7 @@
<when test='type != null and type == "AUTHOR"'> <when test='type != null and type == "AUTHOR"'>
/* 권한 코드 */ /* 권한 코드 */
SELECT author_id AS code SELECT auth_Id AS code
, author_nm AS code_val , author_nm AS code_val
FROM xit_author_info FROM xit_author_info
</when> </when>

@ -42,18 +42,18 @@
INNER JOIN tb_menu B INNER JOIN tb_menu B
ON A.menu_no = B.menu_no ON A.menu_no = B.menu_no
INNER JOIN ( INNER JOIN (
SELECT FA.author_id, FA.scrty_setup_trget_id SELECT FA.auth_Id, FA.scrty_setup_trget_id
FROM xit_user_scrty_setup FA FROM xit_user_scrty_setup FA
WHERE FA.scrty_setup_trget_id = #{uniqId} WHERE FA.scrty_setup_trget_id = #{uniqId}
) C ) C
ON A.author_id = C.author_id ON A.auth_Id = C.auth_Id
INNER JOIN tree_query D INNER JOIN tree_query D
ON B.menu_no = D.menu_id ON B.menu_no = D.menu_id
ORDER BY D.parnt_menu_id, B.srt_ord ORDER BY D.parnt_menu_id, B.srt_ord
</select> </select>
<select id="selectMenuListByAuthorId" parameterType="string" resultType="java.util.Map"> <select id="selectMenuListByAuthId" parameterType="string" resultType="java.util.Map">
/* cachemenu-mysql-mapper|selectMenuListByAuthorId-권한별 메뉴 조회|julim */ /* cachemenu-mysql-mapper|selectMenuListByAuthId-권한별 메뉴 조회|julim */
<include refid="sqlTree"/> <include refid="sqlTree"/>
SELECT D.menu_id AS "menuSid" SELECT D.menu_id AS "menuSid"
, D.menu_name AS "menuName" , D.menu_name AS "menuName"
@ -72,7 +72,7 @@
ON A.menu_no = B.menu_no ON A.menu_no = B.menu_no
JOIN tree_query D JOIN tree_query D
ON B.menu_no = D.menu_id ON B.menu_no = D.menu_id
WHERE A.AUTHOR_ID = #{authorId} WHERE A.auth_Id = #{authId}
ORDER BY D.parnt_menu_id, B.srt_ord ORDER BY D.parnt_menu_id, B.srt_ord
</select> </select>

@ -9,14 +9,14 @@
,GROUP_NM ,GROUP_NM
,GROUP_CREAT_DE ,GROUP_CREAT_DE
,DSCRP ,DSCRP
,AUTHOR_ID ,auth_Id
FROM XIT_AUTHOR_GROUP_INFO FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1 WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notempty(grpId)">AND GRP_ID = #{grpId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notempty(grpId)">AND GRP_ID = #{grpId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">AND GROUP_NM = #{groupNm}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">AND GROUP_NM = #{groupNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupCreatDe)">AND GROUP_CREAT_DE = #{groupCreatDe}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupCreatDe)">AND GROUP_CREAT_DE = #{groupCreatDe}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">AND DSCRP = #{dscrp}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">AND DSCRP = #{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</if>
</select> </select>
<select id="findXitAuthorGroupInfo" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO"> <select id="findXitAuthorGroupInfo" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorGroupInfoVO">
/** findXitAuthorGroupInfo */ /** findXitAuthorGroupInfo */
@ -25,7 +25,7 @@
,GROUP_NM ,GROUP_NM
,GROUP_CREAT_DE ,GROUP_CREAT_DE
,DSCRP ,DSCRP
,AUTHOR_ID ,auth_Id
FROM XIT_AUTHOR_GROUP_INFO FROM XIT_AUTHOR_GROUP_INFO
WHERE 1=1 WHERE 1=1
AND GRP_ID = #{grpId} AND GRP_ID = #{grpId}
@ -38,13 +38,13 @@
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">,GROUP_NM</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">,GROUP_NM</if>
,GROUP_CREAT_DE ,GROUP_CREAT_DE
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,DSCRP</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,DSCRP</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">,AUTHOR_ID</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">,auth_Id</if>
)VALUES( )VALUES(
#{grpId} #{grpId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">,#{groupNm}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">,#{groupNm}</if>
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') ,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,#{dscrp}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,#{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">,#{authorId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">,#{authId}</if>
) )
</insert> </insert>
<update id="modifyXitAuthorGroupInfo"> <update id="modifyXitAuthorGroupInfo">
@ -55,7 +55,7 @@
GROUP_CREAT_DE = GROUP_CREAT_DE GROUP_CREAT_DE = GROUP_CREAT_DE
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(groupNm)">,GROUP_NM = #{groupNm}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(groupNm)">,GROUP_NM = #{groupNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp)">,DSCRP = #{dscrp}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp)">,DSCRP = #{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorId)">,AUTHOR_ID = #{authorId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authId)">,auth_Id = #{authId}</if>
WHERE 1=1 WHERE 1=1
AND GRP_ID = #{grpId} AND GRP_ID = #{grpId}
</update> </update>
@ -73,13 +73,13 @@
<select id="findXitAuthorInfos" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO"> <select id="findXitAuthorInfos" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/** findXitAuthorInfos */ /** findXitAuthorInfos */
/** 권한정보 다건 조회 */ /** 권한정보 다건 조회 */
SELECT AUTHOR_ID SELECT auth_Id
,AUTHOR_NM ,AUTHOR_NM
,DSCRP ,DSCRP
,AUTHOR_CREAT_DE ,AUTHOR_CREAT_DE
FROM XIT_AUTHOR_INFO FROM XIT_AUTHOR_INFO
WHERE 1=1 WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">AND AUTHOR_NM = #{authorNm}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">AND AUTHOR_NM = #{authorNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">AND DSCRP = #{dscrp}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">AND DSCRP = #{dscrp}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCreatDe)">AND AUTHOR_CREAT_DE = <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCreatDe)">AND AUTHOR_CREAT_DE =
@ -89,24 +89,24 @@
<select id="findXitAuthorInfo" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO"> <select id="findXitAuthorInfo" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/** findXitAuthorInfo */ /** findXitAuthorInfo */
/** 권한정보 조회 */ /** 권한정보 조회 */
SELECT AUTHOR_ID SELECT auth_Id
,AUTHOR_NM ,AUTHOR_NM
,DSCRP ,DSCRP
,AUTHOR_CREAT_DE ,AUTHOR_CREAT_DE
FROM XIT_AUTHOR_INFO FROM XIT_AUTHOR_INFO
WHERE 1=1 WHERE 1=1
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
</select> </select>
<insert id="addXitAuthorInfo"> <insert id="addXitAuthorInfo">
/** addXitAuthorInfo */ /** addXitAuthorInfo */
/** 권한정보 등록 */ /** 권한정보 등록 */
INSERT INTO XIT_AUTHOR_INFO( INSERT INTO XIT_AUTHOR_INFO(
AUTHOR_ID auth_Id
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">,AUTHOR_NM</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">,AUTHOR_NM</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,DSCRP</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,DSCRP</if>
,AUTHOR_CREAT_DE ,AUTHOR_CREAT_DE
)VALUES( )VALUES(
#{authorId} #{authId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">,#{authorNm}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">,#{authorNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,#{dscrp}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">,#{dscrp}</if>
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') ,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
@ -121,14 +121,14 @@
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorNm)">,AUTHOR_NM = #{authorNm}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorNm)">,AUTHOR_NM = #{authorNm}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp)">,DSCRP = #{dscrp}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(dscrp)">,DSCRP = #{dscrp}</if>
WHERE 1=1 WHERE 1=1
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
</update> </update>
<delete id="removeXitAuthorInfo"> <delete id="removeXitAuthorInfo">
/** removeXitAuthorInfo */ /** removeXitAuthorInfo */
/** 권한정보 삭제 */ /** 권한정보 삭제 */
DELETE FROM XIT_AUTHOR_INFO DELETE FROM XIT_AUTHOR_INFO
WHERE 1=1 WHERE 1=1
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
</delete> </delete>
@ -137,35 +137,35 @@
<select id="findXitAuthorRoleRelates" resultType="cokr.xit.fims.framework.biz.cmm.XitAuthorRoleRelateVO"> <select id="findXitAuthorRoleRelates" resultType="cokr.xit.fims.framework.biz.cmm.XitAuthorRoleRelateVO">
/** findXitAuthorRoleRelates */ /** findXitAuthorRoleRelates */
/** 권한역할관계 다건 조회 */ /** 권한역할관계 다건 조회 */
SELECT AUTHOR_ID SELECT auth_Id
,ROLE_CODE ,ROLE_CODE
,CREAT_DT ,CREAT_DT
FROM XIT_AUTHOR_ROLE_RELATE FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1 WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(roleCode)">AND ROLE_CODE = #{roleCode}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(roleCode)">AND ROLE_CODE = #{roleCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(creatDt)">AND CREAT_DT = #{creatDt}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(creatDt)">AND CREAT_DT = #{creatDt}</if>
</select> </select>
<select id="findXitAuthorRoleRelate" resultType="cokr.xit.fims.framework.biz.cmm.XitAuthorRoleRelateVO"> <select id="findXitAuthorRoleRelate" resultType="cokr.xit.fims.framework.biz.cmm.XitAuthorRoleRelateVO">
/** findXitAuthorRoleRelate */ /** findXitAuthorRoleRelate */
/** 권한역할관계 조회 */ /** 권한역할관계 조회 */
SELECT AUTHOR_ID SELECT auth_Id
,ROLE_CODE ,ROLE_CODE
,CREAT_DT ,CREAT_DT
FROM XIT_AUTHOR_ROLE_RELATE FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1 WHERE 1=1
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
AND ROLE_CODE = #{roleCode} AND ROLE_CODE = #{roleCode}
</select> </select>
<insert id="addXitAuthorRoleRelate"> <insert id="addXitAuthorRoleRelate">
/** addXitAuthorRoleRelate */ /** addXitAuthorRoleRelate */
/** 권한역할관계 등록 */ /** 권한역할관계 등록 */
INSERT INTO XIT_AUTHOR_ROLE_RELATE( INSERT INTO XIT_AUTHOR_ROLE_RELATE(
AUTHOR_ID auth_Id
,ROLE_CODE ,ROLE_CODE
,CREAT_DT ,CREAT_DT
)VALUES( )VALUES(
#{authorId} #{authId}
,#{roleCode} ,#{roleCode}
,NOW() ,NOW()
) )
@ -176,7 +176,7 @@
<!-- UPDATE XIT_AUTHOR_ROLE_RELATE --> <!-- UPDATE XIT_AUTHOR_ROLE_RELATE -->
<!-- SET --> <!-- SET -->
<!-- WHERE 1=1 --> <!-- WHERE 1=1 -->
<!-- AND AUTHOR_ID = #{authorId} --> <!-- AND auth_Id = #{authId} -->
<!-- AND ROLE_CODE = #{roleCode} --> <!-- AND ROLE_CODE = #{roleCode} -->
</update> </update>
<delete id="removeXitAuthorRoleRelate"> <delete id="removeXitAuthorRoleRelate">
@ -184,7 +184,7 @@
/** 권한역할관계 삭제 */ /** 권한역할관계 삭제 */
DELETE FROM XIT_AUTHOR_ROLE_RELATE DELETE FROM XIT_AUTHOR_ROLE_RELATE
WHERE 1=1 WHERE 1=1
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
AND ROLE_CODE = #{roleCode} AND ROLE_CODE = #{roleCode}
</delete> </delete>
@ -1317,35 +1317,35 @@
/** findXitMenuCreatDtlss */ /** findXitMenuCreatDtlss */
/** 메뉴생성내역 다건 조회 */ /** 메뉴생성내역 다건 조회 */
SELECT MENU_NO SELECT MENU_NO
,AUTHOR_ID ,auth_Id
,MAPNG_CREAT_ID ,MAPNG_CREAT_ID
FROM XIT_MENU_CREAT_DTLS FROM XIT_MENU_CREAT_DTLS
WHERE 1=1 WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menuNo)">AND MENU_NO = #{menuNo}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(menuNo)">AND MENU_NO = #{menuNo}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">AND MAPNG_CREAT_ID = #{mapngCreatId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">AND MAPNG_CREAT_ID = #{mapngCreatId}</if>
</select> </select>
<select id="findXitMenuCreatDtls" resultType="cokr.xit.fims.framework.biz.cmm.XitMenuCreatDtlsVO"> <select id="findXitMenuCreatDtls" resultType="cokr.xit.fims.framework.biz.cmm.XitMenuCreatDtlsVO">
/** findXitMenuCreatDtls */ /** findXitMenuCreatDtls */
/** 메뉴생성내역 조회 */ /** 메뉴생성내역 조회 */
SELECT MENU_NO SELECT MENU_NO
,AUTHOR_ID ,auth_Id
,MAPNG_CREAT_ID ,MAPNG_CREAT_ID
FROM XIT_MENU_CREAT_DTLS FROM XIT_MENU_CREAT_DTLS
WHERE 1=1 WHERE 1=1
AND MENU_NO = #{menuNo} AND MENU_NO = #{menuNo}
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
</select> </select>
<insert id="addXitMenuCreatDtls"> <insert id="addXitMenuCreatDtls">
/** addXitMenuCreatDtls */ /** addXitMenuCreatDtls */
/** 메뉴생성내역 등록 */ /** 메뉴생성내역 등록 */
INSERT INTO XIT_MENU_CREAT_DTLS( INSERT INTO XIT_MENU_CREAT_DTLS(
MENU_NO MENU_NO
,AUTHOR_ID ,auth_Id
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,MAPNG_CREAT_ID</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,MAPNG_CREAT_ID</if>
)VALUES( )VALUES(
#{menuNo} #{menuNo}
,#{authorId} ,#{authId}
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,#{mapngCreatId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(mapngCreatId)">,#{mapngCreatId}</if>
) )
</insert> </insert>
@ -1357,7 +1357,7 @@
MAPNG_CREAT_ID = IFNULL(#{mapngCreatId}, MAPNG_CREAT_ID) MAPNG_CREAT_ID = IFNULL(#{mapngCreatId}, MAPNG_CREAT_ID)
WHERE 1=1 WHERE 1=1
AND MENU_NO = #{menuNo} AND MENU_NO = #{menuNo}
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
</update> </update>
<delete id="removeXitMenuCreatDtls"> <delete id="removeXitMenuCreatDtls">
/** removeXitMenuCreatDtls */ /** removeXitMenuCreatDtls */
@ -1365,7 +1365,7 @@
DELETE FROM XIT_MENU_CREAT_DTLS DELETE FROM XIT_MENU_CREAT_DTLS
WHERE 1=1 WHERE 1=1
AND MENU_NO = #{menuNo} AND MENU_NO = #{menuNo}
AND AUTHOR_ID = #{authorId} AND auth_Id = #{authId}
</delete> </delete>
@ -2507,17 +2507,17 @@
/** findXitUserScrtySetups */ /** findXitUserScrtySetups */
/** 사용자보안설정 다건 조회 */ /** 사용자보안설정 다건 조회 */
SELECT SCRTY_SETUP_TRGET_ID SELECT SCRTY_SETUP_TRGET_ID
,AUTHOR_ID ,auth_Id
FROM XIT_USER_SCRTY_SETUP FROM XIT_USER_SCRTY_SETUP
WHERE 1=1 WHERE 1=1
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(scrtySetupTrgetId)">AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(scrtySetupTrgetId)">AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">AND auth_Id = #{authId}</if>
</select> </select>
<select id="findXitUserScrtySetup" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO"> <select id="findXitUserScrtySetup" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/** findXitUserScrtySetup */ /** findXitUserScrtySetup */
/** 사용자보안설정 조회 */ /** 사용자보안설정 조회 */
SELECT SCRTY_SETUP_TRGET_ID SELECT SCRTY_SETUP_TRGET_ID
,AUTHOR_ID ,auth_Id
FROM XIT_USER_SCRTY_SETUP FROM XIT_USER_SCRTY_SETUP
WHERE 1=1 WHERE 1=1
AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId} AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}
@ -2528,10 +2528,10 @@
INSERT INSERT
INTO xit_user_scrty_setup ( INTO xit_user_scrty_setup (
scrty_setup_trget_id scrty_setup_trget_id
, author_id , auth_Id
) VALUES ( ) VALUES (
#{scrtySetupTrgetId} #{scrtySetupTrgetId}
, #{authorId} , #{authId}
) )
</insert> </insert>
<update id="modifyXitUserScrtySetup"> <update id="modifyXitUserScrtySetup">
@ -2539,7 +2539,7 @@
/** 사용자보안설정 수정 */ /** 사용자보안설정 수정 */
UPDATE XIT_USER_SCRTY_SETUP UPDATE XIT_USER_SCRTY_SETUP
SET SET
AUTHOR_ID = #{authorId} auth_Id = #{authId}
WHERE 1=1 WHERE 1=1
AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId} AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}
</update> </update>

@ -46,10 +46,10 @@
,(SELECT COUNT(1) FROM TREE_QUERY SA WHERE SA.PARNT_MENU_ID=D.MENU_ID) AS "childCnt" ,(SELECT COUNT(1) FROM TREE_QUERY SA WHERE SA.PARNT_MENU_ID=D.MENU_ID) AS "childCnt"
FROM XIT_MENU_CREAT_DTLS A FROM XIT_MENU_CREAT_DTLS A
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_ID, FA.SCRTY_SETUP_TRGET_ID INNER JOIN (SELECT FA.auth_Id, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{uniqId} WHERE FA.SCRTY_SETUP_TRGET_ID = #{uniqId}
) C ON A.AUTHOR_ID = C.AUTHOR_ID ) C ON A.auth_Id = C.auth_Id
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1 WHERE 1=1
@ -57,8 +57,8 @@
<!-- ORDER BY B.MENU_NO, B.srt_ord --> <!-- ORDER BY B.MENU_NO, B.srt_ord -->
ORDER BY D.PARNT_MENU_ID, B.srt_ord ORDER BY D.PARNT_MENU_ID, B.srt_ord
</select> </select>
<select id="findMenuListByAuthorId" resultType="java.util.Map"> <select id="findMenuListByAuthId" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthorId */ /** XitFrameUnitMapper.findMenuListByAuthId */
/** 권한코드별 메뉴 목록 조회 */ /** 권한코드별 메뉴 목록 조회 */
<include refid="menuTree"/> <include refid="menuTree"/>
@ -76,7 +76,7 @@
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID INNER JOIN TREE_QUERY D ON B.MENU_NO=D.MENU_ID
WHERE 1=1 WHERE 1=1
AND A.AUTHOR_ID=#{authorId} AND A.auth_Id=#{authId}
<!-- 2020.11.05. 박민규 - tb_menu.srt_ord의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) --> <!-- 2020.11.05. 박민규 - tb_menu.srt_ord의 설정값대로 정렬이 되지 않아 수정 함 (MENU_NO를 PARNT_MENU_ID로 변경) -->
<!-- ORDER BY B.MENU_NO, B.srt_ord --> <!-- ORDER BY B.MENU_NO, B.srt_ord -->
ORDER BY D.PARNT_MENU_ID, B.srt_ord ORDER BY D.PARNT_MENU_ID, B.srt_ord

@ -18,10 +18,10 @@
,C.SCRTY_SETUP_TRGET_ID ,C.SCRTY_SETUP_TRGET_ID
FROM XIT_MENU_CREAT_DTLS A FROM XIT_MENU_CREAT_DTLS A
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_ID, FA.SCRTY_SETUP_TRGET_ID INNER JOIN (SELECT FA.auth_Id, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId} WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId}
) C ON A.AUTHOR_ID = C.AUTHOR_ID ) C ON A.auth_Id = C.auth_Id
WHERE 1=1 WHERE 1=1
AND B.MENU_NO &gt; 0 AND B.MENU_NO &gt; 0
AND B.prnt_no = 0 AND B.prnt_no = 0
@ -42,10 +42,10 @@
,(SELECT SA.URL FROM XIT_PROGRM_LIST SA WHERE B.pgrm_file_nm = SA.pgrm_file_nm) AS "chkURL" ,(SELECT SA.URL FROM XIT_PROGRM_LIST SA WHERE B.pgrm_file_nm = SA.pgrm_file_nm) AS "chkURL"
FROM XIT_MENU_CREAT_DTLS A FROM XIT_MENU_CREAT_DTLS A
INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO INNER JOIN tb_menu B ON A.MENU_NO = B.MENU_NO
INNER JOIN (SELECT FA.AUTHOR_ID, FA.SCRTY_SETUP_TRGET_ID INNER JOIN (SELECT FA.auth_Id, FA.SCRTY_SETUP_TRGET_ID
FROM XIT_USER_SCRTY_SETUP FA FROM XIT_USER_SCRTY_SETUP FA
WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId} WHERE FA.SCRTY_SETUP_TRGET_ID = #{tmpUniqId}
) C ON A.AUTHOR_ID = C.AUTHOR_ID ) C ON A.auth_Id = C.auth_Id
WHERE 1=1 WHERE 1=1
ORDER BY B.srt_ord ORDER BY B.srt_ord
</select> </select>

@ -6,14 +6,14 @@
* xit_author_info : 권한 정보 * xit_author_info : 권한 정보
************************************************************************************************************** --> ************************************************************************************************************** -->
<sql id="sqlAuthorInfo"> <sql id="sqlAuthorInfo">
SELECT author_id SELECT auth_Id
, author_nm , author_nm
, dscrp , dscrp
, author_creat_de , author_creat_de
FROM xit_author_info FROM xit_author_info
<where> <where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND author_id = #{authorId} AND auth_Id = #{authId}
</if> </if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">
AND INSTR(author_nm, #{authorNm}) > 0 AND INSTR(author_nm, #{authorNm}) > 0
@ -39,12 +39,12 @@
<insert id="insertAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO"> <insert id="insertAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/* auth-author-mysql-mapper|insertAuthorInfo-권한 정보 등록|julim */ /* auth-author-mysql-mapper|insertAuthorInfo-권한 정보 등록|julim */
INSERT INTO xit_author_info ( INSERT INTO xit_author_info (
author_id auth_Id
, author_nm , author_nm
, dscrp , dscrp
, author_creat_de , author_creat_de
) VALUES ( ) VALUES (
#{authorId} #{authId}
,#{authorNm} ,#{authorNm}
,#{dscrp} ,#{dscrp}
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') ,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
@ -56,14 +56,14 @@
UPDATE xit_author_info UPDATE xit_author_info
SET author_nm = IF(author_nm = #{authorNm}, author_nm, #{authorNm}) SET author_nm = IF(author_nm = #{authorNm}, author_nm, #{authorNm})
, dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp}) , dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp})
WHERE author_id = #{authorId} WHERE auth_Id = #{authId}
</update> </update>
<delete id="deleteAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO"> <delete id="deleteAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
/* auth-author-mysql-mapper|deleteAuthorInfos-권한 정보 삭제|julim */ /* auth-author-mysql-mapper|deleteAuthorInfos-권한 정보 삭제|julim */
DELETE DELETE
FROM xit_author_info FROM xit_author_info
WHERE author_id = #{authorId} WHERE auth_Id = #{authId}
</delete> </delete>
@ -78,11 +78,11 @@
, DATE_FORMAT(arr.creat_dt, '%Y%m%d%H%i%s') AS creatDt , DATE_FORMAT(arr.creat_dt, '%Y%m%d%H%i%s') AS creatDt
, IF(arr.role_code IS NULL, 'N', 'Y') AS "regYn" , IF(arr.role_code IS NULL, 'N', 'Y') AS "regYn"
FROM xit_role_info xri FROM xit_role_info xri
LEFT OUTER JOIN ( SELECT author_id LEFT OUTER JOIN ( SELECT auth_Id
, role_code , role_code
, creat_dt , creat_dt
FROM xit_author_role_relate FROM xit_author_role_relate
WHERE author_id = #{authorId} WHERE auth_Id = #{authId}
) arr ) arr
ON xri.role_code = arr.role_code ON xri.role_code = arr.role_code
ORDER BY arr.role_code DESC, xri.role_sort ORDER BY arr.role_code DESC, xri.role_sort
@ -92,18 +92,18 @@
/* auth-author-mysql-mapper|deleteRoleGrant-권한 롤 삭제|julim */ /* auth-author-mysql-mapper|deleteRoleGrant-권한 롤 삭제|julim */
DELETE DELETE
FROM xit_author_role_relate FROM xit_author_role_relate
WHERE author_id = #{authorId} WHERE auth_Id = #{authId}
AND role_code = #{roleCode} AND role_code = #{roleCode}
</delete> </delete>
<insert id="saveRoleGrant" parameterType="map"> <insert id="saveRoleGrant" parameterType="map">
/* auth-author-mysql-mapper|saveRoleGrant-권한 롤 등록|julim */ /* auth-author-mysql-mapper|saveRoleGrant-권한 롤 등록|julim */
INSERT INTO xit_author_role_relate ( INSERT INTO xit_author_role_relate (
author_id auth_Id
, role_code , role_code
, creat_dt , creat_dt
) VALUES ( ) VALUES (
#{authorId} #{authId}
, #{roleCode} , #{roleCode}
, NOW() , NOW()
) )

@ -11,7 +11,7 @@
, xui.user_nm , xui.user_nm
, xui.grp_id , xui.grp_id
, cdc.code_val AS mberTyNm , cdc.code_val AS mberTyNm
, uss.author_id , uss.auth_Id
, IF(uss.scrty_setup_trget_id IS NULL, 'N', 'Y') AS regYn , IF(uss.scrty_setup_trget_id IS NULL, 'N', 'Y') AS regYn
FROM ( FROM (
SELECT USER_ID SELECT USER_ID

@ -10,12 +10,12 @@
SELECT agi.grp_id SELECT agi.grp_id
, agi.group_nm , agi.group_nm
, agi.dscrp , agi.dscrp
, agi.author_id , agi.auth_Id
, xai.author_nm , xai.author_nm
, agi.group_creat_de , agi.group_creat_de
FROM xit_author_group_info agi FROM xit_author_group_info agi
LEFT OUTER JOIN xit_author_info xai LEFT OUTER JOIN xit_author_info xai
ON agi.author_id = xai.author_id ON agi.auth_Id = xai.auth_Id
<where> <where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(groupNm)">
AND agi.group_nm = #{groupNm} AND agi.group_nm = #{groupNm}
@ -28,7 +28,7 @@
SELECT grp_id SELECT grp_id
, group_nm , group_nm
, dscrp , dscrp
, author_id , auth_Id
, group_creat_de , group_creat_de
FROM xit_author_group_info FROM xit_author_group_info
WHERE grp_id = #{grpId} WHERE grp_id = #{grpId}
@ -40,13 +40,13 @@
grp_id grp_id
, group_nm , group_nm
, dscrp , dscrp
, author_id , auth_Id
, group_creat_de , group_creat_de
)VALUES( )VALUES(
#{grpId} #{grpId}
, #{groupNm} , #{groupNm}
, #{dscrp} , #{dscrp}
, #{authorId} , #{authId}
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
) )
</insert> </insert>
@ -56,7 +56,7 @@
UPDATE xit_author_group_info UPDATE xit_author_group_info
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_id = IF(author_id = #{authorId}, author_id, #{authorId}) , auth_Id = IF(auth_Id = #{authId}, auth_Id, #{authId})
WHERE grp_id = #{grpId} WHERE grp_id = #{grpId}
</update> </update>

@ -6,7 +6,7 @@
* xit_author_info : 권한 정보 * xit_author_info : 권한 정보
************************************************************************************************************** --> ************************************************************************************************************** -->
<select id="selectAuthHierarchies" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthHierarchyMngVO"> <select id="selectAuthHierarchies" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthHierarchyMngVO">
SELECT author_id SELECT auth_Id
, author_nm , author_nm
, dscrp , dscrp
, author_creat_de , author_creat_de

@ -7,17 +7,17 @@
* xit_author_info : 권한 정보 * xit_author_info : 권한 정보
************************************************************************************************************** --> ************************************************************************************************************** -->
<sql id="sqlAuthorInfo"> <sql id="sqlAuthorInfo">
SELECT xai.author_id SELECT xai.auth_Id
, xai.author_nm , xai.author_nm
, xai.dscrp , xai.dscrp
, xai.author_creat_de , xai.author_creat_de
, (SELECT COUNT(author_id) , (SELECT COUNT(auth_Id)
FROM xit_menu_creat_dtls FROM xit_menu_creat_dtls
WHERE xai.author_id = author_id ) AS chkYeoBu WHERE xai.auth_Id = auth_Id ) AS chkYeoBu
FROM xit_author_info xai FROM xit_author_info xai
<where> <where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND INSTR(xai.author_id, #{authorId}) AND INSTR(xai.auth_Id, #{authId})
</if> </if>
</where> </where>
</sql> </sql>
@ -46,7 +46,7 @@
, (SELECT count(B.menu_no) , (SELECT count(B.menu_no)
FROM xit_menu_creat_dtls B FROM xit_menu_creat_dtls B
WHERE B.menu_no = A.menu_no WHERE B.menu_no = A.menu_no
AND B.author_id = #{authorId}) AS chkYeoBu AND B.auth_Id = #{authId}) AS chkYeoBu
FROM tb_menu A FROM tb_menu A
WHERE A.menu_no &gt; 0 WHERE A.menu_no &gt; 0
ORDER BY A.srt_ord ORDER BY A.srt_ord
@ -60,7 +60,7 @@
/* menu-by-role-mysql-mapper|deleteMenuCreatDtls-권한별 메뉴 삭제|julim */ /* menu-by-role-mysql-mapper|deleteMenuCreatDtls-권한별 메뉴 삭제|julim */
DELETE DELETE
FROM xit_menu_creat_dtls FROM xit_menu_creat_dtls
WHERE author_id = #{authorId} WHERE auth_Id = #{authId}
</delete> </delete>
<insert id="insertMenuCreatDtls"> <insert id="insertMenuCreatDtls">
@ -68,11 +68,11 @@
INSERT INSERT
INTO xit_menu_creat_dtls ( INTO xit_menu_creat_dtls (
menu_no menu_no
, author_id , auth_Id
, mapng_creat_id , mapng_creat_id
) VALUES ( ) VALUES (
#{menuNo} #{menuNo}
, #{authorId} , #{authId}
, #{mapngCreatId} , #{mapngCreatId}
) )
</insert> </insert>

@ -147,7 +147,7 @@
, (SELECT count(B.MENU_NO) , (SELECT count(B.MENU_NO)
FROM XIT_MENU_CREAT_DTLS B FROM XIT_MENU_CREAT_DTLS B
WHERE B.MENU_NO = A.MENU_NO WHERE B.MENU_NO = A.MENU_NO
AND B.AUTHOR_ID = #{authorId}) AS "chkYeoBu" AND B.auth_Id = #{authId}) AS "chkYeoBu"
FROM tb_menu A FROM tb_menu A
WHERE A.MENU_NO &gt; 0 WHERE A.MENU_NO &gt; 0
ORDER BY A.srt_ord ORDER BY A.srt_ord
@ -156,7 +156,7 @@
<select id="findUserScrtySetupByUsr" resultType="cokr.xit.fims.framework.biz.mng.menu.MenuCreateMngVO"> <select id="findUserScrtySetupByUsr" resultType="cokr.xit.fims.framework.biz.mng.menu.MenuCreateMngVO">
/** XitMenuCreateMngMapper.findUserScrtySetupByUsr */ /** XitMenuCreateMngMapper.findUserScrtySetupByUsr */
/** 사용자별 사용자보안설정 데이터 조회 */ /** 사용자별 사용자보안설정 데이터 조회 */
SELECT AUTHOR_ID AS "authorId" SELECT auth_Id AS "authId"
FROM XIT_USER_SCRTY_SETUP FROM XIT_USER_SCRTY_SETUP
WHERE SCRTY_SETUP_TRGET_ID = ( WHERE SCRTY_SETUP_TRGET_ID = (
SELECT USER_ID SELECT USER_ID

@ -188,7 +188,7 @@
, group_nm , group_nm
, group_creat_de , group_creat_de
, dscrp , dscrp
, author_id , auth_Id
FROM xit_author_group_info FROM xit_author_group_info
<where> <where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(grpId)">
@ -203,8 +203,8 @@
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">
AND dscrp = #{dscrp} AND dscrp = #{dscrp}
</if> </if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND author_id = #{authorId} AND auth_Id = #{authId}
</if> </if>
</where> </where>
</select> </select>
@ -217,14 +217,14 @@
<select id="selectUserScrtySetups" parameterType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO"> <select id="selectUserScrtySetups" parameterType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|selectUserScrtySetups-사용자보안설정 목록 조회|julim */ /* user-mysql-mapper|selectUserScrtySetups-사용자보안설정 목록 조회|julim */
SELECT scrty_setup_trget_id SELECT scrty_setup_trget_id
, author_id , auth_Id
FROM xit_user_scrty_setup FROM xit_user_scrty_setup
<where> <where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(scrtySetupTrgetId)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(scrtySetupTrgetId)">
AND scrty_setup_trget_id = #{scrtySetupTrgetId} AND scrty_setup_trget_id = #{scrtySetupTrgetId}
</if> </if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
AND author_id = #{authorId} AND auth_Id = #{authId}
</if> </if>
</where> </where>
</select> </select>
@ -232,7 +232,7 @@
<select id="selectUserScrtySetup" parameterType="string" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO"> <select id="selectUserScrtySetup" parameterType="string" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|selectUserScrtySetup-사용자보안설정 조회|julim */ /* user-mysql-mapper|selectUserScrtySetup-사용자보안설정 조회|julim */
SELECT scrty_setup_trget_id SELECT scrty_setup_trget_id
, author_id , auth_Id
FROM xit_user_scrty_setup FROM xit_user_scrty_setup
WHERE scrty_setup_trget_id = #{scrtySetupTrgetId} WHERE scrty_setup_trget_id = #{scrtySetupTrgetId}
</select> </select>
@ -242,17 +242,17 @@
INSERT INSERT
INTO xit_user_scrty_setup ( INTO xit_user_scrty_setup (
scrty_setup_trget_id scrty_setup_trget_id
, author_id , auth_Id
) VALUES ( ) VALUES (
#{scrtySetupTrgetId} #{scrtySetupTrgetId}
, #{authorId} , #{authId}
) )
</insert> </insert>
<update id="updateUserScrtySetup" parameterType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO"> <update id="updateUserScrtySetup" parameterType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|updateUserScrtySetup-사용자보안설정 변경|julim */ /* user-mysql-mapper|updateUserScrtySetup-사용자보안설정 변경|julim */
UPDATE xit_user_scrty_setup UPDATE xit_user_scrty_setup
SET author_id = IF(author_id = #{authorId}, author_id, #{authorId}) SET auth_Id = IF(auth_Id = #{authId}, auth_Id, #{authId})
WHERE scrty_setup_trget_id = #{scrtySetupTrgetId} WHERE scrty_setup_trget_id = #{scrtySetupTrgetId}
</update> </update>

@ -147,7 +147,7 @@
return arrChecks.map((row) => { return arrChecks.map((row) => {
return { return {
uniqId: row.uniqId uniqId: row.uniqId
, authorId: row.authorId , authId: row.authId
, grpId: row.grpId , grpId: row.grpId
, regYn: row.regYn , regYn: row.regYn
} }

@ -44,10 +44,10 @@
<label class="required">권한</label> <label class="required">권한</label>
</th> </th>
<td nowrap="nowrap"> <td nowrap="nowrap">
<select id="authorId" name="authorId"> <select id="authId" name="authId">
<option value="">== 선택하세요 ==</option> <option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }"> <c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_id }"/>" <c:if test="${row.author_id eq groupManage.authorId}">selected="selected"</c:if> ><c:out value="${row.author_nm }"/></option> <option value="<c:out value="${row.auth_Id }"/>" <c:if test="${row.auth_Id eq groupManage.authId}">selected="selected"</c:if> ><c:out value="${row.author_nm }"/></option>
</c:forEach> </c:forEach>
</select> </select>
</td> </td>

@ -44,10 +44,10 @@
<label class="required">권한</label> <label class="required">권한</label>
</th> </th>
<td nowrap="nowrap"> <td nowrap="nowrap">
<select id="authorId" name="authorId"> <select id="authId" name="authId">
<option value="">== 선택하세요 ==</option> <option value="">== 선택하세요 ==</option>
<c:forEach var="row" items="${listAuthorInfoVO }"> <c:forEach var="row" items="${listAuthorInfoVO }">
<option value="<c:out value="${row.author_id }"/>"><c:out value="${row.author_nm }"/></option> <option value="<c:out value="${row.auth_Id }"/>"><c:out value="${row.author_nm }"/></option>
</c:forEach> </c:forEach>
</select> </select>
</td> </td>

@ -316,7 +316,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
renderer: { renderer: {
type: XitColumnMergeRenderer, type: XitColumnMergeRenderer,
options: { options: {
listColumns: ['authorNm', 'authorId'], listColumns: ['authorNm', 'authId'],
format: '{0}({1})' format: '{0}({1})'
} }
} }

@ -43,13 +43,13 @@
<tr> <tr>
<td id="authorRescue" class="connectWith"> <td id="authorRescue" class="connectWith">
<c:set var="strAuthorRescueCode" value="${fn:trim(vo.authorRescueCode) }" /> <c:set var="strAuthorRescueCode" value="${fn:trim(vo.authorRescueCode) }" />
<c:set var="arrAuthorId" value="${fn:split(strAuthorRescueCode, '>') }" /> <c:set var="arrAuthId" value="${fn:split(strAuthorRescueCode, '>') }" />
<c:forEach var="row" items="${arrAuthorId }" varStatus="status"> <c:forEach var="row" items="${arrAuthId }" varStatus="status">
<c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }" /> <c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }" />
<c:forEach var="authorId" items="${arrSilbingAutorCode }"> <c:forEach var="authId" items="${arrSilbingAutorCode }">
<li> <li>
<span><c:out value="${mAuthorInfo[fn:trim(authorId)] }"/></span> <span><c:out value="${mAuthorInfo[fn:trim(authId)] }"/></span>
<input type="hidden" id="authorId" value="<c:out value="${fn:trim(authorId) }"/>" /> <input type="hidden" id="authId" value="<c:out value="${fn:trim(authId) }"/>" />
</li> </li>
</c:forEach> </c:forEach>
@ -83,7 +83,7 @@
<li> <li>
<span> <span>
<c:out value="${row.author_nm }"/> <c:out value="${row.author_nm }"/>
<input type="hidden" id="authorId" value="<c:out value="${row.author_id }"/>" /> <input type="hidden" id="authId" value="<c:out value="${row.auth_Id }"/>" />
</span> </span>
</li> </li>
</c:forEach> </c:forEach>
@ -263,26 +263,26 @@ $(document).ready(function(){
var i = 0; var i = 0;
var totCnt = $('#authorRescue li').length; var totCnt = $('#authorRescue li').length;
var sb = []; var sb = [];
var arrAuthorId = []; var arrAuthId = [];
$('#authorRescue li').each(function(){ $('#authorRescue li').each(function(){
if($(this).hasClass('separator')){ //구분자 일때 if($(this).hasClass('separator')){ //구분자 일때
//배열에 담기 //배열에 담기
if(sb.length>0) if(sb.length>0)
arrAuthorId.push(sb.join(';')); arrAuthId.push(sb.join(';'));
//StringBuffer 초기화 //StringBuffer 초기화
sb = []; sb = [];
}else{ //구분자가 아닐때 }else{ //구분자가 아닐때
//StringBuffer에 담기 //StringBuffer에 담기
sb.push($(this).find('#authorId').val()); sb.push($(this).find('#authId').val());
} }
//마지막 요소 //마지막 요소
if(i == totCnt-1){ if(i == totCnt-1){
//배열에 담기 //배열에 담기
if(sb.length>0) if(sb.length>0)
arrAuthorId.push(sb.join(';')); arrAuthId.push(sb.join(';'));
} }
@ -292,13 +292,13 @@ $(document).ready(function(){
var frm = document.authHierarchyManage; var frm = document.authHierarchyManage;
//Elements 삭제 //Elements 삭제
$(frm).find('input[name="authorId"]').remove(); $(frm).find('input[name="authId"]').remove();
//Elements 생성 //Elements 생성
for(var i=0; i<arrAuthorId.length; i++){ for(var i=0; i<arrAuthId.length; i++){
var param = document.createElement('input'); var param = document.createElement('input');
param.setAttribute('type', 'hidden'); param.setAttribute('type', 'hidden');
param.setAttribute('name', 'authorId'); param.setAttribute('name', 'authId');
param.setAttribute('value', arrAuthorId[i]); param.setAttribute('value', arrAuthId[i]);
frm.appendChild(param); frm.appendChild(param);
} }
} }

@ -7,8 +7,8 @@
<form:form id="listForm" name="listForm" action="" method="post"> <form:form id="listForm" name="listForm" action="" method="post">
<input type="hidden" name="authorId"/> <input type="hidden" name="authId"/>
<input type="hidden" name="authorIds"/> <input type="hidden" name="authIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${searchVO.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"/>
@ -228,7 +228,7 @@ GridConfig.setOptHeader({
GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등) GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{ {
header: '권한코드', header: '권한코드',
name: 'authorId', name: 'authId',
width: 200, width: 200,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',

@ -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 authorManageVO.authorId ? 'INSERT' : 'UPDATE'}"/> <c:set var="registerFlag" value="${empty authorManageVO.authId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/> <c:set var="registerFlagName" value="${empty authorManageVO.authId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 --> <!-- 검색 필드 박스 시작 -->
<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="20%" scope="row" nowrap="nowrap"> <th width="20%" scope="row" nowrap="nowrap">
<label class="required">권한 코드</label> <label class="required">권한 코드</label>
</th> </th>
<td nowrap="nowrap"><input name="authorId" id="authorId" type="text" value="<c:out value='${authorManage.authorId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorId" /></td> <td nowrap="nowrap"><input name="authId" id="authId" type="text" value="<c:out value='${authorManage.authId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authId" /></td>
</tr> </tr>
<tr> <tr>
<th width="20%" scope="row" nowrap="nowrap"> <th width="20%" 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 authorManageVO.authorId ? 'INSERT' : 'UPDATE'}"/> <c:set var="registerFlag" value="${empty authorManageVO.authId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/> <c:set var="registerFlagName" value="${empty authorManageVO.authId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 --> <!-- 검색 필드 박스 시작 -->
<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="20%" scope="row" nowrap="nowrap"> <th width="20%" scope="row" nowrap="nowrap">
<label class="required">권한 코드</label> <label class="required">권한 코드</label>
</th> </th>
<td nowrap="nowrap"><input name="authorId" id="authorId" type="text" value="<c:out value='${authorManage.authorId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorId" /></td> <td nowrap="nowrap"><input name="authId" id="authId" type="text" value="<c:out value='${authorManage.authId}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authId" /></td>
</tr> </tr>
<tr> <tr>
<th width="20%" scope="row" nowrap="nowrap"> <th width="20%" scope="row" nowrap="nowrap">

@ -7,8 +7,8 @@
<form:form id="listForm" name="listForm" action="" method="post"> <form:form id="listForm" name="listForm" action="" method="post">
<input type="hidden" name="authorId"/> <input type="hidden" name="authId"/>
<input type="hidden" name="authorIds"/> <input type="hidden" name="authIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.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"/>
@ -107,13 +107,13 @@ var XitAuthRegMng_list = {
alert("선택된 권한이 없습니다."); alert("선택된 권한이 없습니다.");
}else{ }else{
checkArr.forEach(function(item, index){ checkArr.forEach(function(item, index){
returnValue += item.authorId; returnValue += item.authId;
if(checkArr.length -1 > index){ if(checkArr.length -1 > index){
returnValue += ";"; returnValue += ";";
} }
}) })
document.listForm.authorIds.value = returnValue; document.listForm.authIds.value = returnValue;
XitAuthRegMng_list.removeData(); XitAuthRegMng_list.removeData();
} }
} }
@ -216,7 +216,7 @@ var XitAuthRegMng_list = {
fnClickAuthRegBtn : function(props){ fnClickAuthRegBtn : function(props){
var rowData = props.grid.getRow(props.rowKey); var rowData = props.grid.getRow(props.rowKey);
var params = ""; var params = "";
params += "authorId=" + rowData.authorId; params += "authId=" + rowData.authId;
XitAuthRegMng_list.pagePopup('edit', "<c:url value='/framework/biz/mng/auth/AuthRegMng_edit.do'/>", params); XitAuthRegMng_list.pagePopup('edit', "<c:url value='/framework/biz/mng/auth/AuthRegMng_edit.do'/>", params);
}, },
/* ======================== /* ========================
@ -226,7 +226,7 @@ var XitAuthRegMng_list = {
fnClickRoleListBtn : function(props){ fnClickRoleListBtn : function(props){
var rowData = props.grid.getRow(props.rowKey); var rowData = props.grid.getRow(props.rowKey);
var params = ""; var params = "";
params += "searchKeyword=" + rowData.authorId; params += "searchKeyword=" + rowData.authId;
XitAuthRegMng_list.pagePopup('roleList', "<c:url value='/framework/biz/mng/auth/AuthRegMng_rolegrant_popup.do'/>", params); XitAuthRegMng_list.pagePopup('roleList', "<c:url value='/framework/biz/mng/auth/AuthRegMng_rolegrant_popup.do'/>", params);
} }
} }
@ -295,7 +295,7 @@ GridConfig.setOptHeader({
GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등) GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{ {
header: '권한코드', header: '권한코드',
name: 'authorId', name: 'authId',
minWidth: 200, minWidth: 200,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -306,7 +306,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.authorId formatter : rowData.authId
,element : "text" ,element : "text"
} }
return obj; return obj;

@ -75,7 +75,7 @@ function fncManageChecked() {
alert("조회된 결과가 없습니다."); alert("조회된 결과가 없습니다.");
} }
document.listForm.authorIds.value = returnValue; document.listForm.authIds.value = returnValue;
return returnBoolean; return returnBoolean;
} }
@ -88,7 +88,7 @@ function fncSelectAuthorList(pageNo){
} }
function fncSelectAuthor(author) { function fncSelectAuthor(author) {
document.listForm.authorId.value = author; document.listForm.authId.value = author;
document.listForm.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_edit.do'/>"; document.listForm.action = "<c:url value='/framework/biz/mng/auth/AuthRegMng_edit.do'/>";
document.listForm.submit(); document.listForm.submit();
} }
@ -213,12 +213,12 @@ function press() {
<c:forEach var="author" items="${authorList}" varStatus="status"> <c:forEach var="author" items="${authorList}" 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="${author.authorId}"/>" /></td> <td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${author.authId}"/>" /></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authorId}"/>')"><c:out value="${author.authorId}"/></a></td> <td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authId}"/>')"><c:out value="${author.authId}"/></a></td>
<td nowrap="nowrap"><c:out value="${author.authorNm}"/></td> <td nowrap="nowrap"><c:out value="${author.authorNm}"/></td>
<td nowrap="nowrap"><c:out value="${author.dscrp}"/></td> <td nowrap="nowrap"><c:out value="${author.dscrp}"/></td>
<td nowrap="nowrap"><c:out value="${author.authorCreatDe}"/></td> <td nowrap="nowrap"><c:out value="${author.authorCreatDe}"/></td>
<td nowrap="nowrap"><a href="#LINK" onclick="javascript:fncSelectAuthorRole('<c:out value="${author.authorId}"/>')"><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:fncSelectAuthorRole('<c:out value="${author.authId}"/>')"><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>
@ -237,8 +237,8 @@ function press() {
<input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지"/> <input type="text" name="message" value="<c:out value='${message}'/>" size="30" readonly="readonly" title="메시지"/>
</div> </div>
</c:if> </c:if>
<input type="hidden" name="authorId"/> <input type="hidden" name="authId"/>
<input type="hidden" name="authorIds"/> <input type="hidden" name="authIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${authorManageVO.pageIndex}'/>"/>
<input type="hidden" name="searchCondition"/> <input type="hidden" name="searchCondition"/>
</form:form> </form:form>

@ -63,7 +63,7 @@
<input type="hidden" name="roleCodes"/> <input type="hidden" name="roleCodes"/>
<input type="hidden" name="regYns"/> <input type="hidden" name="regYns"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorRoleManageVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${authorRoleManageVO.pageIndex}'/>"/>
<input type="hidden" name="authorId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/> <input type="hidden" name="authId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="searchCondition"/> <input type="hidden" name="searchCondition"/>
</form:form> </form:form>

@ -235,6 +235,6 @@ function press() {
<input type="hidden" name="roleCodes"/> <input type="hidden" name="roleCodes"/>
<input type="hidden" name="regYns"/> <input type="hidden" name="regYns"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorRoleManageVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${authorRoleManageVO.pageIndex}'/>"/>
<input type="hidden" name="authorId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/> <input type="hidden" name="authId" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/>
<input type="hidden" name="searchCondition"/> <input type="hidden" name="searchCondition"/>
</form:form> </form:form>

@ -9,7 +9,7 @@
<input type="hidden" id="searchGubun" name="searchGubun" value="excel"> <input type="hidden" id="searchGubun" name="searchGubun" value="excel">
<input type="hidden" name="userId" id="userId"/> <input type="hidden" name="userId" id="userId"/>
<input type="hidden" name="userIds" id="userIds"/> <input type="hidden" name="userIds" id="userIds"/>
<input type="hidden" name="authorIds" id="authorIds"/> <input type="hidden" name="authIds" id="authIds"/>
<input type="hidden" name="regYns" id="regYns"/> <input type="hidden" name="regYns" id="regYns"/>
<input type="hidden" name="grpIds" id="grpIds"/> <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}'/>"/>
@ -223,7 +223,7 @@ var XitAuthUsrMng_list = {
checkArr.forEach(function(item, index){ checkArr.forEach(function(item, index){
returnId += item.uniqId; returnId += item.uniqId;
returnAuthor += item.authorId; returnAuthor += item.authId;
returnRegYn += item.regYn; returnRegYn += item.regYn;
returnGrpId += item.grpId; returnGrpId += item.grpId;
@ -236,7 +236,7 @@ var XitAuthUsrMng_list = {
}) })
document.listForm.userIds.value = returnId; document.listForm.userIds.value = returnId;
document.listForm.authorIds.value = returnAuthor; document.listForm.authIds.value = returnAuthor;
document.listForm.regYns.value = returnRegYn; document.listForm.regYns.value = returnRegYn;
document.listForm.grpIds.value = returnGrpId; document.listForm.grpIds.value = returnGrpId;
} }
@ -329,7 +329,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
}, },
{ {
header: '권한', header: '권한',
name: 'authorId', name: 'authId',
width: 120, width: 120,
sortable: true, sortable: true,
filter: 'select', filter: 'select',
@ -342,7 +342,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
<c:if test="${not status.first}">,</c:if> <c:if test="${not status.first}">,</c:if>
{ {
text: '${row.author_nm}' text: '${row.author_nm}'
,value: '${row.author_id}' ,value: '${row.auth_Id}'
} }
</c:forEach> </c:forEach>
] ]

@ -98,7 +98,7 @@ function fncManageChecked() {
} }
document.listForm.userIds.value = returnId; document.listForm.userIds.value = returnId;
document.listForm.authorIds.value = returnAuthor; document.listForm.authIds.value = returnAuthor;
document.listForm.regYns.value = returnRegYn; document.listForm.regYns.value = returnRegYn;
@ -248,7 +248,7 @@ function press() {
<td nowrap="nowrap"> <td nowrap="nowrap">
<select name="authorManageCombo" title="권한"> <select name="authorManageCombo" title="권한">
<c:forEach var="authorManage" items="${authorManageList}" varStatus="status"> <c:forEach var="authorManage" items="${authorManageList}" varStatus="status">
<option value="<c:out value="${authorManage.author_id}"/>" <c:if test="${authorManage.author_id == authorGroup.authorId}">selected</c:if> ><c:out value="${authorManage.author_nm}"/></option> <option value="<c:out value="${authorManage.auth_Id}"/>" <c:if test="${authorManage.auth_Id == authorGroup.authId}">selected</c:if> ><c:out value="${authorManage.author_nm}"/></option>
</c:forEach> </c:forEach>
</select> </select>
</td> </td>
@ -281,7 +281,7 @@ function press() {
</c:if> </c:if>
<input type="hidden" name="userId"/> <input type="hidden" name="userId"/>
<input type="hidden" name="userIds"/> <input type="hidden" name="userIds"/>
<input type="hidden" name="authorIds"/> <input type="hidden" name="authIds"/>
<input type="hidden" name="regYns"/> <input type="hidden" name="regYns"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/> <input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/>
</form:form> </form:form>

@ -149,7 +149,7 @@
} }
,fnClickRoleListBtn : function(props){ ,fnClickRoleListBtn : function(props){
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
const params = {roleCode: rowData.authorId} const params = {roleCode: rowData.authId}
fnBiz.pagePopup('rolePopup', "<c:url value='/framework/biz/mng/auth/mngAuthRoleGrantMgtPopup.do'/>", params); fnBiz.pagePopup('rolePopup', "<c:url value='/framework/biz/mng/auth/mngAuthRoleGrantMgtPopup.do'/>", params);
} }
} }
@ -178,7 +178,7 @@
const gridColumns = [ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등) const gridColumns = [ //Grid 컬럼 정보(명칭,매핑 field, 기타옵션 등)
{ {
header: '권한코드', header: '권한코드',
name: 'authorId', name: 'authId',
minWidth: 200, minWidth: 200,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -189,7 +189,7 @@
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.authorId formatter : rowData.authId
,element : "text" ,element : "text"
} }
return obj; return obj;

@ -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 authorInfoVO.authorId}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
<c:set var="bizName" value="권한"/> <c:set var="bizName" value="권한"/>
@ -24,10 +24,10 @@
<td nowrap="nowrap"> <td nowrap="nowrap">
<c:choose> <c:choose>
<c:when test="${isUpdate}"> <c:when test="${isUpdate}">
<input name="authorId" id="authorId" type="text" value="<c:out value='${authorInfoVO.authorId}'/>" readonly size="40" title="권한코드"/>&nbsp; <input name="authId" id="authId" type="text" value="<c:out value='${authorInfoVO.authId}'/>" readonly size="40" title="권한코드"/>&nbsp;
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<input name="authorId" id="authorId" type="text" size="40" title="권한코드"/>&nbsp; <input name="authId" id="authId" type="text" size="40" title="권한코드"/>&nbsp;
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</td> </td>
@ -96,7 +96,7 @@
, remove: () => { , remove: () => {
cmmBizAjax('remove', { cmmBizAjax('remove', {
url: '<c:url value="/framework/biz/mng/auth/removeAuthAuthor.do"/>' url: '<c:url value="/framework/biz/mng/auth/removeAuthAuthor.do"/>'
, data: {authorId: $('#authorId').val()} , data: {authId: $('#authId').val()}
}); });
} }
, validate: () => { , validate: () => {
@ -104,9 +104,9 @@
alert('변경된 내용이 없습니다.'); alert('변경된 내용이 없습니다.');
return false; return false;
} }
if ($('#authorId').val() === '') { if ($('#authId').val() === '') {
alert('[권한코드]는 필수 입니다.'); alert('[권한코드]는 필수 입니다.');
$('#authorId').focus(); $('#authId').focus();
return false; return false;
} }
if ($('#authorNm').val() === '') { if ($('#authorNm').val() === '') {

@ -174,7 +174,7 @@
return arrChecks.map((row) => { return arrChecks.map((row) => {
return { return {
uniqId: row.uniqId uniqId: row.uniqId
, authorId: row.authorId , authId: row.authId
, grpId: row.grpId , grpId: row.grpId
, regYn: row.regYn , regYn: row.regYn
} }
@ -247,7 +247,7 @@
}, },
{ {
header: '권한', header: '권한',
name: 'authorId', name: 'authId',
width: 120, width: 120,
sortable: true, sortable: true,
formatter: 'listItemText', formatter: 'listItemText',

@ -206,7 +206,7 @@
renderer: { renderer: {
type: XitColumnMergeRenderer, type: XitColumnMergeRenderer,
options: { options: {
listColumns: ['authorNm', 'authorId'], listColumns: ['authorNm', 'authId'],
format: '{0}({1})' format: '{0}({1})'
} }
} }

@ -39,7 +39,7 @@
<label>권한</label> <label>권한</label>
</th> </th>
<td nowrap="nowrap"> <td nowrap="nowrap">
<code:select type="AUTHOR" id="authorId" name="authorId" defaultSelect="${groupManage.authorId}" title="권한" cls="form-select" alt="selectBox tag"/> <code:select type="AUTHOR" id="authId" name="authId" defaultSelect="${groupManage.authId}" title="권한" cls="form-select" alt="selectBox tag"/>
</td> </td>
</tr> </tr>
<tr> <tr>

@ -126,7 +126,7 @@
} }
const data = { const data = {
authorId: $('#authorId').val() authId: $('#authId').val()
,grantData: arrChecks.map((row) => { ,grantData: arrChecks.map((row) => {
return {roleCode: row.roleCode, regYn: row.regYn} return {roleCode: row.roleCode, regYn: row.regYn}
}) })
@ -187,7 +187,7 @@
const gridColumns = [ const gridColumns = [
{ {
header: '권한코드', header: '권한코드',
name: 'authorId', name: 'authId',
width: 200, width: 200,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',
@ -199,7 +199,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.authorId formatter: rowData.authId
,element: "text" ,element: "text"
} }
} }

@ -84,14 +84,14 @@
<tr> <tr>
<td id="authorRescue" class="connectWith"> <td id="authorRescue" class="connectWith">
<c:set var="strAuthorRescueCode" value="${fn:trim(authHierarchyManage.authorRescueCode) }"/> <c:set var="strAuthorRescueCode" value="${fn:trim(authHierarchyManage.authorRescueCode) }"/>
<c:set var="arrAuthorId" value="${fn:split(strAuthorRescueCode, '>') }"/> <c:set var="arrAuthId" value="${fn:split(strAuthorRescueCode, '>') }"/>
<c:forEach var="row" items="${arrAuthorId }" varStatus="status"> <c:forEach var="row" items="${arrAuthId }" varStatus="status">
<c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }"/> <c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }"/>
<c:forEach var="authorId" items="${arrSilbingAutorCode }"> <c:forEach var="authId" items="${arrSilbingAutorCode }">
<li> <li>
<span><c:out value="${mAuthorInfo[fn:trim(authorId)] }"/></span> <span><c:out value="${mAuthorInfo[fn:trim(authId)] }"/></span>
<input type="hidden" id="authorId" <input type="hidden" id="authId"
value="<c:out value="${fn:trim(authorId) }"/>"/> value="<c:out value="${fn:trim(authId) }"/>"/>
</li> </li>
</c:forEach> </c:forEach>
@ -125,8 +125,8 @@
<li> <li>
<span> <span>
<c:out value="${row.author_nm }"/> <c:out value="${row.author_nm }"/>
<input type="hidden" id="authorId" <input type="hidden" id="authId"
value="<c:out value="${row.author_id }"/>"/> value="<c:out value="${row.auth_Id }"/>"/>
</span> </span>
</li> </li>
</c:forEach> </c:forEach>
@ -153,7 +153,7 @@
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
let initArrAuthorId; let initArrAuthId;
let orgData; let orgData;
/* ******************************* /* *******************************
@ -162,7 +162,7 @@
const fnBiz = { const fnBiz = {
save: () => { save: () => {
let data = $(document.authHierarchyManage).serialize(); let data = $(document.authHierarchyManage).serialize();
if (initArrAuthorId === data) { if (initArrAuthId === data) {
alert('변경된 내역이 없습니다.'); alert('변경된 내역이 없습니다.');
return false; return false;
} }
@ -195,40 +195,40 @@
let i = 0; let i = 0;
const totCnt = $('#authorRescue li').length; const totCnt = $('#authorRescue li').length;
let sb = []; let sb = [];
const arrAuthorId = []; const arrAuthId = [];
$('#authorRescue li').each(function () { $('#authorRescue li').each(function () {
if ($(this).hasClass('separator')) { //구분자 일때 if ($(this).hasClass('separator')) { //구분자 일때
//배열에 담기 //배열에 담기
if (sb.length > 0) if (sb.length > 0)
// arrAuthorId.push(sb); // arrAuthId.push(sb);
arrAuthorId.push(sb.join(';')); arrAuthId.push(sb.join(';'));
//StringBuffer 초기화 //StringBuffer 초기화
sb = []; sb = [];
} else { //구분자가 아닐때 } else { //구분자가 아닐때
sb.push($(this).find('#authorId').val()); sb.push($(this).find('#authId').val());
} }
//마지막 요소 //마지막 요소
if (i == totCnt - 1) { if (i == totCnt - 1) {
//배열에 담기 //배열에 담기
if (sb.length > 0) if (sb.length > 0)
arrAuthorId.push(sb); arrAuthId.push(sb);
} }
i++; i++;
}); });
//if(arrAuthorId.) //if(arrAuthId.)
const frm = document.authHierarchyManage; const frm = document.authHierarchyManage;
//Elements 삭제 //Elements 삭제
$(frm).find('input[name="authorId"]').remove(); $(frm).find('input[name="authId"]').remove();
//Elements 생성 //Elements 생성
for (let i = 0; i < arrAuthorId.length; i++) { for (let i = 0; i < arrAuthId.length; i++) {
const param = document.createElement('input'); const param = document.createElement('input');
param.setAttribute('type', 'hidden'); param.setAttribute('type', 'hidden');
param.setAttribute('name', 'authorId'); param.setAttribute('name', 'authId');
param.setAttribute('value', arrAuthorId[i]); param.setAttribute('value', arrAuthId[i]);
frm.appendChild(param); frm.appendChild(param);
} }
} }
@ -239,7 +239,7 @@
} }
if ($('#grpId').val() === '') { if ($('#grpId').val() === '') {
alert('[권한그룹 ID]는 필수 입니다.'); alert('[권한그룹 ID]는 필수 입니다.');
$('#authorId').focus(); $('#authId').focus();
return false; return false;
} }
if ($('#groupNm').val() === '') { if ($('#groupNm').val() === '') {
@ -290,7 +290,7 @@
**************************************************************************/ **************************************************************************/
$(document).ready(function () { $(document).ready(function () {
fnBiz.setParam(); fnBiz.setParam();
initArrAuthorId = $(document.authHierarchyManage).serialize(); initArrAuthId = $(document.authHierarchyManage).serialize();
orgData = $('form').serialize(); orgData = $('form').serialize();
}); });

@ -22,8 +22,8 @@
<tbody> <tbody>
<tr> <tr>
<td colspan="6"> <td colspan="6">
<label for="authorId">권한코드</label> <label for="authId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="30" value="<c:out value='${authorRoleManageVO.roleCode}'/>" title="검색" readonly="readonly" /> <input id="authId" name="authId" type="text" size="30" value="<c:out value='${authorRoleManageVO.roleCode}'/>" title="검색" readonly="readonly" />
</td> </td>
<td> <td>
<button type="button" id="btnSearch" class="btn btn-search" title="검색">검색</button> <button type="button" id="btnSearch" class="btn btn-search" title="검색">검색</button>
@ -131,7 +131,7 @@
} }
const data = { const data = {
authorId: $('#authorId').val() authId: $('#authId').val()
,grantData: arrChecks.map((row) => { ,grantData: arrChecks.map((row) => {
return {roleCode: row.roleCode, regYn: row.regYn} return {roleCode: row.roleCode, regYn: row.regYn}
}) })

@ -43,8 +43,8 @@ function selectMenuCreatManageList() {
/* ******************************************************** /* ********************************************************
* 메뉴생성 화면 호출 * 메뉴생성 화면 호출
******************************************************** */ ******************************************************** */
function selectMenuCreat(vAuthorId) { function selectMenuCreat(vAuthId) {
document.menuCreatManageForm.authorId.value = vAuthorId; document.menuCreatManageForm.authId.value = vAuthId;
document.menuCreatManageForm.action = "<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>"; document.menuCreatManageForm.action = "<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>";
window.open("#", "_menuCreat", "scrollbars = yes, top=100px, left=100px, height=700px, width=850px"); window.open("#", "_menuCreat", "scrollbars = yes, top=100px, left=100px, height=700px, width=850px");
document.menuCreatManageForm.target = "_menuCreat"; document.menuCreatManageForm.target = "_menuCreat";
@ -75,7 +75,7 @@ function selectMenuCreat(vAuthorId) {
<div id="search_field_loc"><h2><strong>메뉴생성관리</strong></h2></div> <div id="search_field_loc"><h2><strong>메뉴생성관리</strong></h2></div>
<input name="checkedMenuNoForDel" type="hidden" /> <input name="checkedMenuNoForDel" type="hidden" />
<input name="authorId" type="hidden" /> <input name="authId" type="hidden" />
<input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/> <input name="pageIndex" type="hidden" value="<c:out value='${searchVO.pageIndex}'/>"/>
<fieldset><legend>조건정보 영역</legend> <fieldset><legend>조건정보 영역</legend>
@ -123,7 +123,7 @@ function selectMenuCreat(vAuthorId) {
<c:forEach var="result" items="${list_menumanage}" varStatus="status"> <c:forEach var="result" items="${list_menumanage}" varStatus="status">
<!-- loop 시작 --> <!-- loop 시작 -->
<tr> <tr>
<td nowrap="nowrap" ><c:out value="${result.authorId}"/></td> <td nowrap="nowrap" ><c:out value="${result.authId}"/></td>
<td nowrap="nowrap" ><c:out value="${result.authorNm}"/></td> <td nowrap="nowrap" ><c:out value="${result.authorNm}"/></td>
<td nowrap="nowrap" ><c:out value="${result.dscrp}"/></td> <td nowrap="nowrap" ><c:out value="${result.dscrp}"/></td>
<td nowrap="nowrap" > <td nowrap="nowrap" >
@ -131,7 +131,7 @@ function selectMenuCreat(vAuthorId) {
<c:if test="${result.chkYeoBu == 0}">N</c:if> <c:if test="${result.chkYeoBu == 0}">N</c:if>
</td> </td>
<td nowrap="nowrap" > <td nowrap="nowrap" >
<a href="<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>?authorId='<c:out value="${result.authorId}"/>'" onclick="selectMenuCreat('<c:out value="${result.authorId}"/>'); return false;">메뉴생성</a> <a href="<c:url value='/framework/biz/mng/menu/MenuCreateMng_input.do'/>?authId='<c:out value="${result.authId}"/>'" onclick="selectMenuCreat('<c:out value="${result.authId}"/>'); return false;">메뉴생성</a>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>

@ -19,8 +19,8 @@
<tbody> <tbody>
<tr> <tr>
<td> <td>
<label for="authorId">권한코드</label> <label for="authId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="80" value="" maxlength="60" title="권한코드"/> <input id="authId" name="authId" type="text" size="80" value="" maxlength="60" title="권한코드"/>
</td> </td>
<td colspan="6"> <td colspan="6">
<button type="button" id="btnSearch" class="btn btn-search" title="검색">검색</button> <button type="button" id="btnSearch" class="btn btn-search" title="검색">검색</button>
@ -130,7 +130,7 @@
} }
,onClickGrid: function(props){ ,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
fnBiz.pagePopup('add', {authorId: rowData.authorId}); fnBiz.pagePopup('add', {authId: rowData.authId});
} }
} }
@ -152,7 +152,7 @@
const gridColumns = [ const gridColumns = [
{ {
header: '권한코드', header: '권한코드',
name: 'authorId', name: 'authId',
minWidth: 250, minWidth: 250,
sortable: true, sortable: true,
sortingType: 'desc', sortingType: 'desc',

@ -24,8 +24,8 @@
<tbody> <tbody>
<tr> <tr>
<td colspan="7"> <td colspan="7">
<label for="authorId">권한코드</label> <label for="authId">권한코드</label>
<input id="authorId" name="authorId" type="text" size="30" value="${resultVO.authorId}" title="검색" readonly/> <input id="authId" name="authId" type="text" size="30" value="${resultVO.authId}" title="검색" readonly/>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -50,9 +50,9 @@
<script type="text/javaScript"> <script type="text/javaScript">
let chk_Object = true; let chk_Object = true;
let chk_browse = ""; let chk_browse = "";
if (eval(document.frmMenuTree.authorId)=="[object]") chk_browse = "IE"; if (eval(document.frmMenuTree.authId)=="[object]") chk_browse = "IE";
if (eval(document.frmMenuTree.authorId)=="[object NodeList]") chk_browse = "Fox"; if (eval(document.frmMenuTree.authId)=="[object NodeList]") chk_browse = "Fox";
if (eval(document.frmMenuTree.authorId)=="[object Collection]") chk_browse = "safai"; if (eval(document.frmMenuTree.authId)=="[object Collection]") chk_browse = "safai";
let Tree = new Array; let Tree = new Array;
if(chk_browse=="IE"&&eval(document.frmMenuTree.tmp_menuNmVal)!="[object]"){ if(chk_browse=="IE"&&eval(document.frmMenuTree.tmp_menuNmVal)!="[object]"){
@ -164,7 +164,7 @@
cmmAjax({ cmmAjax({
url: '<c:url value="/framework/biz/mng/menu/saveMenuByRoleList.do"/>' url: '<c:url value="/framework/biz/mng/menu/saveMenuByRoleList.do"/>'
, data: JSON.stringify({ , data: JSON.stringify({
authorId: document.frmSearch.authorId.value authId: document.frmSearch.authId.value
, menuNoList: arrCheckedMenu , menuNoList: arrCheckedMenu
}) })
, contentType: 'application/json; charset=utf-8' , contentType: 'application/json; charset=utf-8'

@ -325,7 +325,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
options: { options: {
listItems: [ listItems: [
{value: '', text: '== 미설정 ==' } {value: '', text: '== 미설정 ==' }
<c:forEach var="row" items="${dataAuthorId_result}" varStatus="status"> <c:forEach var="row" items="${dataAuthId_result}" varStatus="status">
,{value: '${row.code}', text: '${row.codeVal}' } ,{value: '${row.code}', text: '${row.codeVal}' }
</c:forEach> </c:forEach>
] ]
@ -345,7 +345,7 @@ GridConfig.setOptColumns([ //Grid 컬럼 정보(명칭,매핑 field, 기타옵
options: { options: {
listItems: [ listItems: [
{value: '', text: '== 미설정 ==' } {value: '', text: '== 미설정 ==' }
<c:forEach var="row" items="${dataAuthorId_result}" varStatus="status"> <c:forEach var="row" items="${dataAuthId_result}" varStatus="status">
,{value: '${row.code}', text: '${row.codeVal}' } ,{value: '${row.code}', text: '${row.codeVal}' }
</c:forEach> </c:forEach>
] ]

@ -257,7 +257,7 @@ table {
<td width="30%" > <td width="30%" >
<form:select path="jobDataAuthor" id="jobDataAuthor"> <form:select path="jobDataAuthor" id="jobDataAuthor">
<form:option value="" label="--선택하세요--"/> <form:option value="" label="--선택하세요--"/>
<form:options items="${dataAuthorId_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${dataAuthId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select> </form:select>
<form:errors path="jobDataAuthor" cssClass="error"/> <form:errors path="jobDataAuthor" cssClass="error"/>
</td> </td>
@ -266,7 +266,7 @@ table {
<td width="30%" > <td width="30%" >
<form:select path="userManageAuthor" id="userManageAuthor"> <form:select path="userManageAuthor" id="userManageAuthor">
<form:option value="" label="--선택하세요--"/> <form:option value="" label="--선택하세요--"/>
<form:options items="${dataAuthorId_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${dataAuthId_result}" itemValue="code" itemLabel="codeVal"/>
</form:select> </form:select>
<form:errors path="userManageAuthor" cssClass="error"/> <form:errors path="userManageAuthor" cssClass="error"/>
</td> </td>

@ -2,7 +2,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- TODO: 완료후 comment 삭제 <%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요 아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
--%> --%>
<!-- popup button --> <!-- popup button -->
<div class="container-window-btn1"> <div class="container-window-btn1">

@ -2,7 +2,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- TODO: 완료후 comment 삭제 <%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요 아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
--%> --%>
<!-- popup button --> <!-- popup button -->
<div class="container-window-btn2"> <div class="container-window-btn2">

@ -2,7 +2,7 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- TODO: 완료후 comment 삭제 <%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요 아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
--%> --%>
<!-- popup button --> <!-- popup button -->
<div class="container-window-btn2"> <div class="container-window-btn2">

@ -3,7 +3,7 @@
<%-- TODO: 완료후 comment 삭제 <%-- TODO: 완료후 comment 삭제
아래와 같이 isUpdate 정의 필요 아래와 같이 isUpdate 정의 필요
<c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authId}"/>
<c:set var="bizName" value="권한그룹"/> <c:set var="bizName" value="권한그룹"/>
--%> --%>
<!-- popup title --> <!-- popup title -->

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save