no message

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

@ -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>> selectMenuListByAuthorCode(final String authorCode); List<Map<String, String>> selectMenuListByAuthorId(final String authorId);
} }

@ -41,10 +41,10 @@ public interface CacheService {
List<Map<String, String>> findMenuListByUser(final String uniqId); List<Map<String, String>> findMenuListByUser(final String uniqId);
/** /**
* *
* @param authorCode * @param authorId
* @return List<T> * @return List<T>
*/ */
List<Map<String, String>> findMenuListByAuthorCode(final String authorCode); List<Map<String, String>> findMenuListByAuthorId(final String authorId);
/** /**
* 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 = "#authorCode") @Cacheable(cacheNames="menuCache", key = "#authorId")
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public List<Map<String, String>> findMenuListByAuthorCode(final String authorCode) { public List<Map<String, String>> findMenuListByAuthorId(final String authorId) {
return menuMapper.selectMenuListByAuthorCode(authorCode); return menuMapper.selectMenuListByAuthorId(authorId);
} }
@Override @Override

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

@ -70,10 +70,10 @@ public class CacheController extends AbstractController {
return mav; return mav;
} }
@GetMapping(name = "", value="/getMenuListByAuthorCode") @GetMapping(name = "", value="/getMenuListByAuthorId")
public ModelAndView getMenuListByAuthorCode(final String authorCode) { public ModelAndView getMenuListByAuthorId(final String authorId) {
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
mav.addObject("allMenuList", CacheServiceUtils.findMenuListByAuthorCode(authorCode)); mav.addObject("allMenuList", CacheServiceUtils.findMenuListByAuthorId(authorId));
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 authorCode; //권한 코드 protected String authorId; //권한 코드
protected String roleCode; //역할 코드 protected String roleCode; //역할 코드
protected String creatDt; //생성 일시 protected String creatDt; //생성 일시
public String getAuthorCode() { public String getAuthorId() {
return authorCode; return authorId;
} }
public void setAuthorCode(String authorCode) { public void setAuthorId(String authorId) {
this.authorCode = authorCode; this.authorId = authorId;
} }
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 authorCode; //권한 코드 private String authorId; //권한 코드
private String mapngCreatId; //매핑 생성 id private String mapngCreatId; //매핑 생성 id

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

@ -141,12 +141,12 @@ public interface XitFrameUnitService {
* <pre> : * <pre> :
* - . * - .
* </pre> * </pre>
* @param authorCode * @param authorId
* @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>> findMenuListByAuthorCode(String authorCode); public List<Map<String, String>> findMenuListByAuthorId(String authorId);
@ -167,14 +167,14 @@ public interface XitFrameUnitService {
* <pre> : / * <pre> : /
* - (Role) . * - (Role) .
* </pre> * </pre>
* @param authorCode * @param authorId
* @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 authorCode, String roleCode, boolean isAdd); public void addAuthRoleRelation(String authorId, String roleCode, boolean isAdd);
@ -274,7 +274,7 @@ public interface XitFrameUnitService {
* @author: * @author:
* @date: 2020. 10. 30. * @date: 2020. 10. 30.
*/ */
public String getDefaultAuthorCode(String grpId); public String getDefaultAuthorId(String grpId);
@ -292,12 +292,12 @@ public interface XitFrameUnitService {
* case2. or or . * case2. or or .
* </pre> * </pre>
* @param uniqId ID * @param uniqId ID
* @param trgetAuthorCode ( ) * @param trgetAuthorId ( )
* @return boolean * @return boolean
* @author: * @author:
* @date: 2020. 11. 1. * @date: 2020. 11. 1.
*/ */
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorCode); public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorId);
/** /**
* <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 userAuthorCode * @param userAuthorId
* @param trgetAuthorCode ( ) * @param trgetAuthorId ( )
* @return boolean * @return boolean
* @author: * @author:
* @date: 2020. 11. 1. * @date: 2020. 11. 1.
*/ */
public boolean isCheckUserAuthorCodeForCanChange(String userAuthorCode, String trgetAuthorCode); public boolean isCheckUserAuthorIdForCanChange(String userAuthorId, String trgetAuthorId);
} }

@ -211,7 +211,7 @@ public class XitFrameCrudServiceBean extends AbstractServiceBean implements XitF
* *
*/ */
String emsg = null; String emsg = null;
if(XitCmmnUtil.isEmpty(vo.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
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>> findMenuListByAuthorCode(String authorCode){ public List<Map<String, String>> findMenuListByAuthorId(String authorId){
return CacheServiceUtils.findMenuListByAuthorCode(authorCode); return CacheServiceUtils.findMenuListByAuthorId(authorId);
} }
@Override @Override
@ -248,12 +248,12 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
} }
@Override @Override
public void addAuthRoleRelation(String authorCode, String roleCode, boolean isAdd) { public void addAuthRoleRelation(String authorId, String roleCode, boolean isAdd) {
/** /**
* *
*/ */
XitAuthorRoleRelateVO vo = new XitAuthorRoleRelateVO(); XitAuthorRoleRelateVO vo = new XitAuthorRoleRelateVO();
vo.setAuthorCode(authorCode); vo.setAuthorId(authorId);
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 getDefaultAuthorCode(String grpId) { public String getDefaultAuthorId(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.getAuthorCode())) if (XitCmmnUtil.isEmpty(groupInfo.getAuthorId()))
return "ROLE_USER"; return "ROLE_USER";
else else
return groupInfo.getAuthorCode(); return groupInfo.getAuthorId();
} }
} }
@Override @Override
public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorCode) { public boolean isCheckUserForCanChange(String uniqId, String trgetAuthorId) {
/** /**
* *
*/ */
@ -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 userAuthorCode = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorCode(); String userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId();
return this.isCheckUserAuthorCodeForCanChange(userAuthorCode, trgetAuthorCode); return this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId);
} }
@Override @Override
public boolean isCheckUserAuthorCodeForCanChange(String userAuthorCode, String trgetAuthorCode) { public boolean isCheckUserAuthorIdForCanChange(String userAuthorId, String trgetAuthorId) {
/** /**
* *
*/ */
@ -471,7 +471,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
return true; return true;
}else { }else {
//사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단) //사용자의 권한 정보가 없을 때(비정상적인 루트로 등록한 사용자 계정으로 판단)
if(XitCmmnUtil.isEmpty(userAuthorCode)) { if(XitCmmnUtil.isEmpty(userAuthorId)) {
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(userAuthorCode)) { if(item.getParntsRole().equals(userAuthorId)) {
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(userAuthorCode)) { if(item.getChldrnRole().equals(userAuthorId)) {
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, userAuthorCode, trgetAuthorCode)?false:true; return this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorId, trgetAuthorId)?false:true;
} }
@ -515,13 +515,13 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
* </pre> * </pre>
* *
* @param list * @param list
* @param authorCode * @param authorId
* @param highAuthorCode * @param highAuthorId
* @return boolean * @return boolean
* @author: * @author:
* @date: 2020. 11. 1. * @date: 2020. 11. 1.
*/ */
private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authorCode, String highAuthorCode) { private boolean isHighAuthor(List<XitRoleSclsrtRescueVO> list, String authorId, String highAuthorId) {
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(authorCode)) if (!item.getParntsRole().equals(authorId))
continue; continue;
if (item.getChldrnRole().equals(highAuthorCode)) { // 상위 권한과 일치하면 if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면
result = true; result = true;
} else { // 상위 권한과 일치하지 않으면 재호출 } else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorCode); result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId);
} }
} }

@ -41,7 +41,7 @@ public class XitAuthGrpMngVO extends BaseVO {
/** /**
* *
*/ */
private String authorCode; private String authorId;
/** /**
* *
*/ */
@ -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 getAuthorCode() { public String getAuthorId() {
return authorCode; return authorId;
} }
public void setAuthorCode(String authorCode) { public void setAuthorId(String authorId) {
this.authorCode = authorCode; this.authorId = authorId;
} }
public String getAuthorNm() { public String getAuthorNm() {
return authorNm; return authorNm;

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

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

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

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

@ -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 authorCode; //권한 코드 private String authorId; //권한 코드
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 authorCode; //권한 코드 protected String authorId; //권한 코드
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 authorCode); int deleteAuthorInfo(final String authorId);
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 authorCode); void removeAuthAuthor(final String authorId);
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 authorCode); void removeAuthGrp(final String authorId);
void isCheckUserForCanChange(final String uniqId, final String trgetAuthorCode); void isCheckUserForCanChange(final String uniqId, final String trgetAuthorId);
} }

@ -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.getAuthorCode()); roleSclsrtRescueVO.setChldrnRole(vo.getAuthorId());
mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO); mapper.insertRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 생성 //자녀관계 생성
roleSclsrtRescueVO.setParntsRole(vo.getAuthorCode()); roleSclsrtRescueVO.setParntsRole(vo.getAuthorId());
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 authorCode){ public void removeAuthAuthor(final String authorId){
//계층구조 삭제 //계층구조 삭제
XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO(); XitRoleSclsrtRescueVO roleSclsrtRescueVO = new XitRoleSclsrtRescueVO();
roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR); roleSclsrtRescueVO.setParntsRole(PARNTS_AUTHOR);
roleSclsrtRescueVO.setChldrnRole(authorCode); roleSclsrtRescueVO.setChldrnRole(authorId);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO); mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
//자녀관계 제거 //자녀관계 제거
roleSclsrtRescueVO.setParntsRole(authorCode); roleSclsrtRescueVO.setParntsRole(authorId);
roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR); roleSclsrtRescueVO.setChldrnRole(CHLDRN_AUTHOR);
mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO); mapper.deleteRoleSclsrtRescue(roleSclsrtRescueVO);
mapper.deleteAuthorInfo(authorCode); mapper.deleteAuthorInfo(authorId);
} }
@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("authorCode", paraMap.get("authorCode")); map.put("authorId", paraMap.get("authorId"));
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("authorCode"))); authGrpMgtService.isCheckUserForCanChange(sessionUniqId, String.valueOf(map.get("authorId")));
XitUserScrtySetupVO vo = new XitUserScrtySetupVO(); XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId"))); vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setAuthorCode(String.valueOf(map.get("authorCode"))); vo.setAuthorId(String.valueOf(map.get("authorId")));
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.setAuthorCode(userMgtService.getDefaultAuthorCode(String.valueOf(map.get("grpId")))); vo.setAuthorId(userMgtService.getDefaultAuthorId(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.getAuthorCode()); this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorId());
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.getAuthorCode()); this.isCheckUserForCanChange(XitCmmnUtil.getUserInfo().getUniqId(), vo.getAuthorId());
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 trgetAuthorCode) { public void isCheckUserForCanChange(final String uniqId, final String trgetAuthorId) {
//사용자보안설정 조회 //사용자보안설정 조회
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 userAuthorCode = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorCode(); String userAuthorId = XitCmmnUtil.isEmpty(listUserScrtySetupVO)?null:listUserScrtySetupVO.get(0).getAuthorId();
if(!this.isCheckUserAuthorCodeForCanChange(userAuthorCode, trgetAuthorCode)) if(!this.isCheckUserAuthorIdForCanChange(userAuthorId, trgetAuthorId))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "자신의 권한보다 상위 권한을 설정 할 수 없습니다.");; throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "자신의 권한보다 상위 권한을 설정 할 수 없습니다.");;
} }
private boolean isCheckUserAuthorCodeForCanChange(final String userAuthorCode, final String trgetAuthorCode) { private boolean isCheckUserAuthorIdForCanChange(final String userAuthorId, final String trgetAuthorId) {
//역할(권한)계층구조 데이터 목록 조회 //역할(권한)계층구조 데이터 목록 조회
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(userAuthorCode)) { if(XitCmmnUtil.isEmpty(userAuthorId)) {
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(userAuthorCode)) { if(item.getParntsRole().equals(userAuthorId)) {
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(userAuthorCode)) { if(item.getChldrnRole().equals(userAuthorId)) {
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, userAuthorCode, trgetAuthorCode); return !this.isHighAuthor(listRoleSclsrtRescueVO, userAuthorId, trgetAuthorId);
} }
private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authorCode, final String highAuthorCode) { private boolean isHighAuthor(final List<XitRoleSclsrtRescueVO> list, final String authorId, final String highAuthorId) {
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(authorCode)) if (!item.getParntsRole().equals(authorId))
continue; continue;
if (item.getChldrnRole().equals(highAuthorCode)) { // 상위 권한과 일치하면 if (item.getChldrnRole().equals(highAuthorId)) { // 상위 권한과 일치하면
result = true; result = true;
} else { // 상위 권한과 일치하지 않으면 재호출 } else { // 상위 권한과 일치하지 않으면 재호출
result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorCode); result = this.isHighAuthor(list, item.getChldrnRole(), highAuthorId);
} }
} }

@ -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.getAuthorCode()); String strAuthorRescueCode = this.getStrAuthHierarchy(vo.getAuthorId());
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 topButtonAuthorCode = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole()); String topButtonAuthorId = this.getStrAuthHierarchy(listRoleSclsrtRescueVO.get(0).getChldrnRole());
topButtonAuthorCode = topButtonAuthorCode.split(">")[0].trim(); topButtonAuthorId = topButtonAuthorId.split(">")[0].trim();
String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthorCode); String strAuthorRescueCode = this.getStrAuthHierarchy(topButtonAuthorId);
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.getAuthorCode())) if(XitCmmnUtil.isEmpty(vo.getAuthorId()))
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "권한코드는 필수조건 입니다."); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, "권한코드는 필수조건 입니다.");
String[] arrAuthorCodeGrp = vo.getAuthorCode().split(","); //권한코드 묶음 목록 String[] arrAuthorIdGrp = vo.getAuthorId().split(","); //권한코드 묶음 목록
/** /**
* *
* - . * - .
* - () . * - () .
*/ */
if(arrAuthorCodeGrp[0].split(";").length>1) if(arrAuthorIdGrp[0].split(";").length>1)
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최상위 부모는 한개만 설정 가능 합니다."); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG,"최상위 부모는 한개만 설정 가능 합니다.");
// 최하위 자녀 갯수 확인 // 최하위 자녀 갯수 확인
if(arrAuthorCodeGrp[arrAuthorCodeGrp.length-1].split(";").length>1) if(arrAuthorIdGrp[arrAuthorIdGrp.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 authorCodeGrp : arrAuthorCodeGrp) { for(String authorIdGrp : arrAuthorIdGrp) {
if(authorCodeGrp.split(";").length > 1) if(authorIdGrp.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<arrAuthorCodeGrp.length; i++) { for(int i=0; i<arrAuthorIdGrp.length; i++) {
//마지막 권한이면 stop //마지막 권한이면 stop
if(i==arrAuthorCodeGrp.length-1) if(i==arrAuthorIdGrp.length-1)
break; break;
String[] arrParntsRole = arrAuthorCodeGrp[i].split(";"); String[] arrParntsRole = arrAuthorIdGrp[i].split(";");
String[] arrChldrnRole = arrAuthorCodeGrp[i+1].split(";"); String[] arrChldrnRole = arrAuthorIdGrp[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 authorCode * @param authorId
* @return String * @return String
* @author: * @author:
* @date: 2020. 11. 2. * @date: 2020. 11. 2.
*/ */
private String getStrAuthHierarchy(final String authorCode) { private String getStrAuthHierarchy(final String authorId) {
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, authorCode, false, mParnts); this.getAuthHierarchy(list, authorId, false, mParnts);
this.getAuthHierarchy(list, authorCode, true, mChldrn); this.getAuthHierarchy(list, authorId, 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(authorCode).append(" > "); sb.append(authorId).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 authorCode * @param authorId
* @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 authorCode, final boolean isChldrnSearch, final LinkedHashMap<String, String> resultMap) { private void getAuthHierarchy(final List<XitRoleSclsrtRescueVO> list, final String authorId, 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(authorCode)) if (!item.getParntsRole().equals(authorId))
continue; continue;
//권한코드 Set //권한코드 Set
if(resultMap.containsKey(authorCode)) { if(resultMap.containsKey(authorId)) {
//동일한 값이면 담지 않음 //동일한 값이면 담지 않음
if(resultMap.get(authorCode).equals(item.getChldrnRole())) if(resultMap.get(authorId).equals(item.getChldrnRole()))
continue; continue;
resultMap.put(authorCode, resultMap.get(authorCode)+", "+item.getChldrnRole()); resultMap.put(authorId, resultMap.get(authorId)+", "+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(authorCode, item.getChldrnRole()); resultMap.put(authorId, item.getChldrnRole());
} }
@ -192,23 +192,23 @@ public class AuthHierarchyMgtServiceBean extends AbstractServiceBean implements
}else { }else {
// 권한코드가 일치하지 않으면 skip // 권한코드가 일치하지 않으면 skip
if (!item.getChldrnRole().equals(authorCode)) if (!item.getChldrnRole().equals(authorId))
continue; continue;
//재탐색 //재탐색
this.getAuthHierarchy(list, item.getParntsRole(), isChldrnSearch, resultMap); this.getAuthHierarchy(list, item.getParntsRole(), isChldrnSearch, resultMap);
//권한코드 Set //권한코드 Set
if(resultMap.containsKey(authorCode)) { if(resultMap.containsKey(authorId)) {
//동일한 값이면 담지 않음 //동일한 값이면 담지 않음
if(resultMap.get(authorCode).equals(item.getParntsRole())) if(resultMap.get(authorId).equals(item.getParntsRole()))
continue; continue;
resultMap.put(authorCode, resultMap.get(authorCode)+", "+item.getParntsRole()); resultMap.put(authorId, resultMap.get(authorId)+", "+item.getParntsRole());
}else { }else {
//동일한 값이 있으면 담지 않음 //동일한 값이 있으면 담지 않음
if(!resultMap.containsValue(item.getParntsRole())) { if(!resultMap.containsValue(item.getParntsRole())) {
resultMap.put(authorCode, item.getParntsRole()); resultMap.put(authorId, 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.getAuthorCode(), item.getAuthorNm()); mAuthorInfo.put(item.getAuthorId(), 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[] arrAuthorCode = item.split(","); String[] arrAuthorId = item.split(",");
for(int j=0; j<arrAuthorCode.length; j++) { for(int j=0; j<arrAuthorId.length; j++) {
String authorCode = arrAuthorCode[j].trim(); String authorId = arrAuthorId[j].trim();
if(j==0) if(j==0)
sb.append(mAuthorInfo.get(authorCode)); sb.append(mAuthorInfo.get(authorId));
else else
sb.append(", ").append(mAuthorInfo.get(authorCode)); sb.append(", ").append(mAuthorInfo.get(authorId));
} }
} }

@ -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.getAuthorCode())){ if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthorId())){
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 authorCode){ public ModelAndView removeAuthAuthor(final String authorId){
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW); ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
service.removeAuthAuthor(authorCode); service.removeAuthAuthor(authorId);
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.getAuthorCode(), infoVO.getAuthorNm())); authorInfoVOList.forEach(infoVO -> mAuthorInfo.put(infoVO.getAuthorId(), 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[] arrAuthorCode = arrAuthorRescue[i].split(","); String[] arrAuthorId = arrAuthorRescue[i].split(",");
for(int j=0; j<arrAuthorCode.length; j++) { for(int j=0; j<arrAuthorId.length; j++) {
String authorCode = arrAuthorCode[j].trim(); String authorId = arrAuthorId[j].trim();
if(mNoDuplAuthorInfo.containsKey(authorCode)) { if(mNoDuplAuthorInfo.containsKey(authorId)) {
mNoDuplAuthorInfo.remove(authorCode); mNoDuplAuthorInfo.remove(authorId);
} }
} }
} }
//권한계층 미설정 권한 목록 설정 //권한계층 미설정 권한 목록 설정
List<XitAuthorInfoVO> listAuthorInfo = new ArrayList<>(); List<XitAuthorInfoVO> listAuthorInfo = new ArrayList<>();
for (String authorCode : mNoDuplAuthorInfo.keySet()) { for (String authorId : mNoDuplAuthorInfo.keySet()) {
XitAuthorInfoVO authorInfo = new XitAuthorInfoVO(); XitAuthorInfoVO authorInfo = new XitAuthorInfoVO();
authorInfo.setAuthorCode(authorCode); authorInfo.setAuthorId(authorId);
authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authorCode)); authorInfo.setAuthorNm(mNoDuplAuthorInfo.get(authorId));
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 authorCode; private String authorId;
/** 권한정보설정 */ /** 권한정보설정 */
/** 권한명 */ /** 권한명 */
@ -78,18 +78,18 @@ public class MenuCreateMngVO extends BaseVO {
this.mapCreatId = mapCreatId; this.mapCreatId = mapCreatId;
} }
/** /**
* authorCode attribute . * authorId attribute .
* @return String * @return String
*/ */
public String getAuthorCode() { public String getAuthorId() {
return authorCode; return authorId;
} }
/** /**
* authorCode attribute . * authorId attribute .
* @param authorCode String * @param authorId String
*/ */
public void setAuthorCode(String authorCode) { public void setAuthorId(String authorId) {
this.authorCode = authorCode; this.authorId = authorId;
} }
/** /**
* authorNm attribute . * authorNm attribute .

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

@ -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 authorCode); int deleteMenuCreatDtls(final String authorId);
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 authorCode = String.valueOf(paraMap.get("authorCode")); String authorId = String.valueOf(paraMap.get("authorId"));
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
List<String> menuNoList = (List<String>)paraMap.get("menuNoList"); List<String> menuNoList = (List<String>)paraMap.get("menuNoList");
// 해당 권한의 메뉴 삭제 // 해당 권한의 메뉴 삭제
mapper.deleteMenuCreatDtls(authorCode); mapper.deleteMenuCreatDtls(authorId);
// 메뉴 등록 // 메뉴 등록
menuNoList.forEach((menuNo) -> { menuNoList.forEach((menuNo) -> {
mapper.insertMenuCreatDtls( mapper.insertMenuCreatDtls(
XitMenuCreatDtlsVO XitMenuCreatDtlsVO
.builder() .builder()
.authorCode(authorCode) .authorId(authorId)
.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 authorCode; //권한 코드 protected String authorId; //권한 코드
} }

@ -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 getDefaultAuthorCode(final String grpId); String getDefaultAuthorId(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.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId())); userScrtySetupVO.setAuthorId(this.getDefaultAuthorId(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.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId())); userScrtySetupVO.setAuthorId(this.getDefaultAuthorId(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 getDefaultAuthorCode(final String grpId) { public String getDefaultAuthorId(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.getAuthorCode())) if (Checks.isEmpty(vo.getAuthorId()))
return "ROLE_USER"; return "ROLE_USER";
else else
return vo.getAuthorCode(); return vo.getAuthorId();
} }
} }
@ -212,18 +212,18 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
}else { }else {
//사용자(수정대상) 권한 조회 //사용자(수정대상) 권한 조회
XitUserScrtySetupVO scrtyVO = mapper.selectUserScrtySetup(uniqId); XitUserScrtySetupVO scrtyVO = mapper.selectUserScrtySetup(uniqId);
String tgtAuthorCode = scrtyVO.getAuthorCode(); String tgtAuthorId = scrtyVO.getAuthorId();
//사용자(수정자) 권한 조회 //사용자(수정자) 권한 조회
scrtyVO = mapper.selectUserScrtySetup(loginSessionVO.getUniqId());; scrtyVO = mapper.selectUserScrtySetup(loginSessionVO.getUniqId());;
String userAuthorCode = scrtyVO.getAuthorCode(); String userAuthorId = scrtyVO.getAuthorId();
//사용자(수정자)가 ROLE_ADMIN 권한의 사용자인 경우 //사용자(수정자)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(userAuthorCode)) { if("ROLE_ADMIN".equals(userAuthorId)) {
return true; return true;
}else { }else {
//사용자(수정대상)가 ROLE_ADMIN 권한의 사용자인 경우 //사용자(수정대상)가 ROLE_ADMIN 권한의 사용자인 경우
if("ROLE_ADMIN".equals(tgtAuthorCode)) { if("ROLE_ADMIN".equals(tgtAuthorId)) {
return false; return false;
} }

@ -60,7 +60,7 @@ public class XitUserEtcOptMngController extends AbstractController {
/*================ /*================
* *
================*/ ================*/
model.addAttribute("dataAuthorCode_result" , xitFrameCodeService.findCmmnDetailCodes("XIT401")); //자료조회및관리범위코드 목록 model.addAttribute("dataAuthorId_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 authorCode; private String authorId;
/** 기타VO변수 */ /** 기타VO변수 */
private String tempValue; private String tempValue;

@ -72,7 +72,7 @@ public class MenuIntercepter extends HandlerInterceptorAdapter {
} }
else { else {
//익명사용자 메뉴 목록 조회 //익명사용자 메뉴 목록 조회
allMenuList = CacheServiceUtils.findMenuListByAuthorCode("ROLE_ANONYMOUS"); allMenuList = CacheServiceUtils.findMenuListByAuthorId("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_code AS code SELECT author_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_code, FA.scrty_setup_trget_id SELECT FA.author_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_code = C.author_code ON A.author_id = C.author_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="selectMenuListByAuthorCode" parameterType="string" resultType="java.util.Map"> <select id="selectMenuListByAuthorId" parameterType="string" resultType="java.util.Map">
/* cachemenu-mysql-mapper|selectMenuListByAuthorCode-권한별 메뉴 조회|julim */ /* cachemenu-mysql-mapper|selectMenuListByAuthorId-권한별 메뉴 조회|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_CODE = #{authorCode} WHERE A.AUTHOR_ID = #{authorId}
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_CODE ,AUTHOR_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(authorCode)">AND AUTHOR_CODE = #{authorCode}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</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_CODE ,AUTHOR_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(authorCode)">,AUTHOR_CODE</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">,AUTHOR_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(authorCode)">,#{authorCode}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">,#{authorId}</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(authorCode)">,AUTHOR_CODE = #{authorCode}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorId)">,AUTHOR_ID = #{authorId}</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_CODE SELECT AUTHOR_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(authorCode)">AND AUTHOR_CODE = #{authorCode}</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(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_CODE SELECT AUTHOR_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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
</select> </select>
<insert id="addXitAuthorInfo"> <insert id="addXitAuthorInfo">
/** addXitAuthorInfo */ /** addXitAuthorInfo */
/** 권한정보 등록 */ /** 권한정보 등록 */
INSERT INTO XIT_AUTHOR_INFO( INSERT INTO XIT_AUTHOR_INFO(
AUTHOR_CODE AUTHOR_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(
#{authorCode} #{authorId}
<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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
</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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
</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_CODE SELECT AUTHOR_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(authorCode)">AND AUTHOR_CODE = #{authorCode}</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(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_CODE SELECT AUTHOR_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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
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_CODE AUTHOR_ID
,ROLE_CODE ,ROLE_CODE
,CREAT_DT ,CREAT_DT
)VALUES( )VALUES(
#{authorCode} #{authorId}
,#{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_CODE = #{authorCode} --> <!-- AND AUTHOR_ID = #{authorId} -->
<!-- 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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
AND ROLE_CODE = #{roleCode} AND ROLE_CODE = #{roleCode}
</delete> </delete>
@ -1317,35 +1317,35 @@
/** findXitMenuCreatDtlss */ /** findXitMenuCreatDtlss */
/** 메뉴생성내역 다건 조회 */ /** 메뉴생성내역 다건 조회 */
SELECT MENU_NO SELECT MENU_NO
,AUTHOR_CODE ,AUTHOR_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(authorCode)">AND AUTHOR_CODE = #{authorCode}</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(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_CODE ,AUTHOR_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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
</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_CODE ,AUTHOR_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}
,#{authorCode} ,#{authorId}
<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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
</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_CODE = #{authorCode} AND AUTHOR_ID = #{authorId}
</delete> </delete>
@ -2507,17 +2507,17 @@
/** findXitUserScrtySetups */ /** findXitUserScrtySetups */
/** 사용자보안설정 다건 조회 */ /** 사용자보안설정 다건 조회 */
SELECT SCRTY_SETUP_TRGET_ID SELECT SCRTY_SETUP_TRGET_ID
,AUTHOR_CODE ,AUTHOR_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(authorCode)">AND AUTHOR_CODE = #{authorCode}</if> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">AND AUTHOR_ID = #{authorId}</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_CODE ,AUTHOR_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_CODE , author_id
) VALUES ( ) VALUES (
#{scrtySetupTrgetId} #{scrtySetupTrgetId}
, #{authorCode} , #{authorId}
) )
</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_CODE = #{authorCode} AUTHOR_ID = #{authorId}
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_CODE, FA.SCRTY_SETUP_TRGET_ID INNER JOIN (SELECT FA.AUTHOR_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_CODE = C.AUTHOR_CODE ) C ON A.AUTHOR_ID = C.AUTHOR_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="findMenuListByAuthorCode" resultType="java.util.Map"> <select id="findMenuListByAuthorId" resultType="java.util.Map">
/** XitFrameUnitMapper.findMenuListByAuthorCode */ /** XitFrameUnitMapper.findMenuListByAuthorId */
/** 권한코드별 메뉴 목록 조회 */ /** 권한코드별 메뉴 목록 조회 */
<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_CODE=#{authorCode} AND A.AUTHOR_ID=#{authorId}
<!-- 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_CODE, FA.SCRTY_SETUP_TRGET_ID INNER JOIN (SELECT FA.AUTHOR_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_CODE = C.AUTHOR_CODE ) C ON A.AUTHOR_ID = C.AUTHOR_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_CODE, FA.SCRTY_SETUP_TRGET_ID INNER JOIN (SELECT FA.AUTHOR_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_CODE = C.AUTHOR_CODE ) C ON A.AUTHOR_ID = C.AUTHOR_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_code SELECT author_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(authorCode)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND author_code = #{authorCode} AND author_id = #{authorId}
</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_code author_id
, author_nm , author_nm
, dscrp , dscrp
, author_creat_de , author_creat_de
) VALUES ( ) VALUES (
#{authorCode} #{authorId}
,#{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_code = #{authorCode} WHERE author_id = #{authorId}
</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_code = #{authorCode} WHERE author_id = #{authorId}
</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_code LEFT OUTER JOIN ( SELECT author_id
, role_code , role_code
, creat_dt , creat_dt
FROM xit_author_role_relate FROM xit_author_role_relate
WHERE author_code = #{authorCode} WHERE author_id = #{authorId}
) 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_code = #{authorCode} WHERE author_id = #{authorId}
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_code author_id
, role_code , role_code
, creat_dt , creat_dt
) VALUES ( ) VALUES (
#{authorCode} #{authorId}
, #{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_code , uss.author_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_code , agi.author_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_code = xai.author_code ON agi.author_id = xai.author_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_code , author_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_code , author_id
, group_creat_de , group_creat_de
)VALUES( )VALUES(
#{grpId} #{grpId}
, #{groupNm} , #{groupNm}
, #{dscrp} , #{dscrp}
, #{authorCode} , #{authorId}
, 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_code = IF(author_code = #{authorCode}, author_code, #{authorCode}) , author_id = IF(author_id = #{authorId}, author_id, #{authorId})
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_code SELECT author_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_code SELECT xai.author_id
, xai.author_nm , xai.author_nm
, xai.dscrp , xai.dscrp
, xai.author_creat_de , xai.author_creat_de
, (SELECT COUNT(author_code) , (SELECT COUNT(author_id)
FROM xit_menu_creat_dtls FROM xit_menu_creat_dtls
WHERE xai.author_code = author_code ) AS chkYeoBu WHERE xai.author_id = author_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(authorCode)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND INSTR(xai.author_code, #{authorCode}) AND INSTR(xai.author_id, #{authorId})
</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_code = #{authorCode}) AS chkYeoBu AND B.author_id = #{authorId}) 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_code = #{authorCode} WHERE author_id = #{authorId}
</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_code , author_id
, mapng_creat_id , mapng_creat_id
) VALUES ( ) VALUES (
#{menuNo} #{menuNo}
, #{authorCode} , #{authorId}
, #{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_CODE = #{authorCode}) AS "chkYeoBu" AND B.AUTHOR_ID = #{authorId}) 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_CODE AS "authorCode" SELECT AUTHOR_ID AS "authorId"
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_code , author_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(authorCode)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND author_code = #{authorCode} AND author_id = #{authorId}
</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_code , author_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(authorCode)"> <if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorId)">
AND author_code = #{authorCode} AND author_id = #{authorId}
</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_code , author_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_code , author_id
) VALUES ( ) VALUES (
#{scrtySetupTrgetId} #{scrtySetupTrgetId}
, #{authorCode} , #{authorId}
) )
</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_code = IF(author_code = #{authorCode}, author_code, #{authorCode}) SET author_id = IF(author_id = #{authorId}, author_id, #{authorId})
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
, authorCode: row.authorCode , authorId: row.authorId
, 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="authorCode" name="authorCode"> <select id="authorId" name="authorId">
<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_code }"/>" <c:if test="${row.author_code eq groupManage.authorCode}">selected="selected"</c:if> ><c:out value="${row.author_nm }"/></option> <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>
</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="authorCode" name="authorCode"> <select id="authorId" name="authorId">
<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_code }"/>"><c:out value="${row.author_nm }"/></option> <option value="<c:out value="${row.author_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', 'authorCode'], listColumns: ['authorNm', 'authorId'],
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="arrAuthorCode" value="${fn:split(strAuthorRescueCode, '>') }" /> <c:set var="arrAuthorId" value="${fn:split(strAuthorRescueCode, '>') }" />
<c:forEach var="row" items="${arrAuthorCode }" varStatus="status"> <c:forEach var="row" items="${arrAuthorId }" varStatus="status">
<c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }" /> <c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }" />
<c:forEach var="authorCode" items="${arrSilbingAutorCode }"> <c:forEach var="authorId" items="${arrSilbingAutorCode }">
<li> <li>
<span><c:out value="${mAuthorInfo[fn:trim(authorCode)] }"/></span> <span><c:out value="${mAuthorInfo[fn:trim(authorId)] }"/></span>
<input type="hidden" id="authorCode" value="<c:out value="${fn:trim(authorCode) }"/>" /> <input type="hidden" id="authorId" value="<c:out value="${fn:trim(authorId) }"/>" />
</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="authorCode" value="<c:out value="${row.author_code }"/>" /> <input type="hidden" id="authorId" value="<c:out value="${row.author_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 arrAuthorCode = []; var arrAuthorId = [];
$('#authorRescue li').each(function(){ $('#authorRescue li').each(function(){
if($(this).hasClass('separator')){ //구분자 일때 if($(this).hasClass('separator')){ //구분자 일때
//배열에 담기 //배열에 담기
if(sb.length>0) if(sb.length>0)
arrAuthorCode.push(sb.join(';')); arrAuthorId.push(sb.join(';'));
//StringBuffer 초기화 //StringBuffer 초기화
sb = []; sb = [];
}else{ //구분자가 아닐때 }else{ //구분자가 아닐때
//StringBuffer에 담기 //StringBuffer에 담기
sb.push($(this).find('#authorCode').val()); sb.push($(this).find('#authorId').val());
} }
//마지막 요소 //마지막 요소
if(i == totCnt-1){ if(i == totCnt-1){
//배열에 담기 //배열에 담기
if(sb.length>0) if(sb.length>0)
arrAuthorCode.push(sb.join(';')); arrAuthorId.push(sb.join(';'));
} }
@ -292,13 +292,13 @@ $(document).ready(function(){
var frm = document.authHierarchyManage; var frm = document.authHierarchyManage;
//Elements 삭제 //Elements 삭제
$(frm).find('input[name="authorCode"]').remove(); $(frm).find('input[name="authorId"]').remove();
//Elements 생성 //Elements 생성
for(var i=0; i<arrAuthorCode.length; i++){ for(var i=0; i<arrAuthorId.length; i++){
var param = document.createElement('input'); var param = document.createElement('input');
param.setAttribute('type', 'hidden'); param.setAttribute('type', 'hidden');
param.setAttribute('name', 'authorCode'); param.setAttribute('name', 'authorId');
param.setAttribute('value', arrAuthorCode[i]); param.setAttribute('value', arrAuthorId[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="authorCode"/> <input type="hidden" name="authorId"/>
<input type="hidden" name="authorCodes"/> <input type="hidden" name="authorIds"/>
<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: 'authorCode', name: 'authorId',
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.authorCode ? 'INSERT' : 'UPDATE'}"/> <c:set var="registerFlag" value="${empty authorManageVO.authorId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/> <c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 --> <!-- 검색 필드 박스 시작 -->
<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="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td> <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>
</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.authorCode ? 'INSERT' : 'UPDATE'}"/> <c:set var="registerFlag" value="${empty authorManageVO.authorId ? 'INSERT' : 'UPDATE'}"/>
<c:set var="registerFlagName" value="${empty authorManageVO.authorCode ? '권한 등록' : '권한 수정'}"/> <c:set var="registerFlagName" value="${empty authorManageVO.authorId ? '권한 등록' : '권한 수정'}"/>
<!-- 검색 필드 박스 시작 --> <!-- 검색 필드 박스 시작 -->
<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="authorCode" id="authorCode" type="text" value="<c:out value='${authorManage.authorCode}'/>" size="40" title="권한코드" />&nbsp;<form:errors path="authorCode" /></td> <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>
</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="authorCode"/> <input type="hidden" name="authorId"/>
<input type="hidden" name="authorCodes"/> <input type="hidden" name="authorIds"/>
<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.authorCode; returnValue += item.authorId;
if(checkArr.length -1 > index){ if(checkArr.length -1 > index){
returnValue += ";"; returnValue += ";";
} }
}) })
document.listForm.authorCodes.value = returnValue; document.listForm.authorIds.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 += "authorCode=" + rowData.authorCode; params += "authorId=" + rowData.authorId;
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.authorCode; params += "searchKeyword=" + rowData.authorId;
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: 'authorCode', name: 'authorId',
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.authorCode formatter : rowData.authorId
,element : "text" ,element : "text"
} }
return obj; return obj;

@ -75,7 +75,7 @@ function fncManageChecked() {
alert("조회된 결과가 없습니다."); alert("조회된 결과가 없습니다.");
} }
document.listForm.authorCodes.value = returnValue; document.listForm.authorIds.value = returnValue;
return returnBoolean; return returnBoolean;
} }
@ -88,7 +88,7 @@ function fncSelectAuthorList(pageNo){
} }
function fncSelectAuthor(author) { function fncSelectAuthor(author) {
document.listForm.authorCode.value = author; document.listForm.authorId.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.authorCode}"/>" /></td> <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"><a href="#LINK" onclick="javascript:fncSelectAuthor('<c:out value="${author.authorCode}"/>')"><c:out value="${author.authorCode}"/></a></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"><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.authorCode}"/>')"><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.authorId}"/>')"><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="authorCode"/> <input type="hidden" name="authorId"/>
<input type="hidden" name="authorCodes"/> <input type="hidden" name="authorIds"/>
<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="authorCode" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/> <input type="hidden" name="authorId" 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="authorCode" value="<c:out value="${authorRoleManageVO.searchKeyword}"/>"/> <input type="hidden" name="authorId" 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="authorCodes" id="authorCodes"/> <input type="hidden" name="authorIds" id="authorIds"/>
<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.authorCode; returnAuthor += item.authorId;
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.authorCodes.value = returnAuthor; document.listForm.authorIds.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: 'authorCode', name: 'authorId',
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_code}' ,value: '${row.author_id}'
} }
</c:forEach> </c:forEach>
] ]

@ -98,7 +98,7 @@ function fncManageChecked() {
} }
document.listForm.userIds.value = returnId; document.listForm.userIds.value = returnId;
document.listForm.authorCodes.value = returnAuthor; document.listForm.authorIds.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_code}"/>" <c:if test="${authorManage.author_code == authorGroup.authorCode}">selected</c:if> ><c:out value="${authorManage.author_nm}"/></option> <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>
</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="authorCodes"/> <input type="hidden" name="authorIds"/>
<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.authorCode} const params = {roleCode: rowData.authorId}
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: 'authorCode', name: 'authorId',
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.authorCode formatter : rowData.authorId
,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.authorCode}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
<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="authorCode" id="authorCode" type="text" value="<c:out value='${authorInfoVO.authorCode}'/>" readonly size="40" title="권한코드"/>&nbsp; <input name="authorId" id="authorId" type="text" value="<c:out value='${authorInfoVO.authorId}'/>" readonly size="40" title="권한코드"/>&nbsp;
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<input name="authorCode" id="authorCode" type="text" size="40" title="권한코드"/>&nbsp; <input name="authorId" id="authorId" 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: {authorCode: $('#authorCode').val()} , data: {authorId: $('#authorId').val()}
}); });
} }
, validate: () => { , validate: () => {
@ -104,9 +104,9 @@
alert('변경된 내용이 없습니다.'); alert('변경된 내용이 없습니다.');
return false; return false;
} }
if ($('#authorCode').val() === '') { if ($('#authorId').val() === '') {
alert('[권한코드]는 필수 입니다.'); alert('[권한코드]는 필수 입니다.');
$('#authorCode').focus(); $('#authorId').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
, authorCode: row.authorCode , authorId: row.authorId
, grpId: row.grpId , grpId: row.grpId
, regYn: row.regYn , regYn: row.regYn
} }
@ -247,7 +247,7 @@
}, },
{ {
header: '권한', header: '권한',
name: 'authorCode', name: 'authorId',
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', 'authorCode'], listColumns: ['authorNm', 'authorId'],
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="authorCode" name="authorCode" defaultSelect="${groupManage.authorCode}" title="권한" cls="form-select" alt="selectBox tag"/> <code:select type="AUTHOR" id="authorId" name="authorId" defaultSelect="${groupManage.authorId}" title="권한" cls="form-select" alt="selectBox tag"/>
</td> </td>
</tr> </tr>
<tr> <tr>

@ -126,7 +126,7 @@
} }
const data = { const data = {
authorCode: $('#authorCode').val() authorId: $('#authorId').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: 'authorCode', name: 'authorId',
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.authorCode formatter: rowData.authorId
,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="arrAuthorCode" value="${fn:split(strAuthorRescueCode, '>') }"/> <c:set var="arrAuthorId" value="${fn:split(strAuthorRescueCode, '>') }"/>
<c:forEach var="row" items="${arrAuthorCode }" varStatus="status"> <c:forEach var="row" items="${arrAuthorId }" varStatus="status">
<c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }"/> <c:set var="arrSilbingAutorCode" value="${fn:split(row, ',') }"/>
<c:forEach var="authorCode" items="${arrSilbingAutorCode }"> <c:forEach var="authorId" items="${arrSilbingAutorCode }">
<li> <li>
<span><c:out value="${mAuthorInfo[fn:trim(authorCode)] }"/></span> <span><c:out value="${mAuthorInfo[fn:trim(authorId)] }"/></span>
<input type="hidden" id="authorCode" <input type="hidden" id="authorId"
value="<c:out value="${fn:trim(authorCode) }"/>"/> value="<c:out value="${fn:trim(authorId) }"/>"/>
</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="authorCode" <input type="hidden" id="authorId"
value="<c:out value="${row.author_code }"/>"/> value="<c:out value="${row.author_id }"/>"/>
</span> </span>
</li> </li>
</c:forEach> </c:forEach>
@ -153,7 +153,7 @@
/************************************************************************** /**************************************************************************
* Global Variable * Global Variable
**************************************************************************/ **************************************************************************/
let initArrAuthorCode; let initArrAuthorId;
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 (initArrAuthorCode === data) { if (initArrAuthorId === 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 arrAuthorCode = []; const arrAuthorId = [];
$('#authorRescue li').each(function () { $('#authorRescue li').each(function () {
if ($(this).hasClass('separator')) { //구분자 일때 if ($(this).hasClass('separator')) { //구분자 일때
//배열에 담기 //배열에 담기
if (sb.length > 0) if (sb.length > 0)
// arrAuthorCode.push(sb); // arrAuthorId.push(sb);
arrAuthorCode.push(sb.join(';')); arrAuthorId.push(sb.join(';'));
//StringBuffer 초기화 //StringBuffer 초기화
sb = []; sb = [];
} else { //구분자가 아닐때 } else { //구분자가 아닐때
sb.push($(this).find('#authorCode').val()); sb.push($(this).find('#authorId').val());
} }
//마지막 요소 //마지막 요소
if (i == totCnt - 1) { if (i == totCnt - 1) {
//배열에 담기 //배열에 담기
if (sb.length > 0) if (sb.length > 0)
arrAuthorCode.push(sb); arrAuthorId.push(sb);
} }
i++; i++;
}); });
//if(arrAuthorCode.) //if(arrAuthorId.)
const frm = document.authHierarchyManage; const frm = document.authHierarchyManage;
//Elements 삭제 //Elements 삭제
$(frm).find('input[name="authorCode"]').remove(); $(frm).find('input[name="authorId"]').remove();
//Elements 생성 //Elements 생성
for (let i = 0; i < arrAuthorCode.length; i++) { for (let i = 0; i < arrAuthorId.length; i++) {
const param = document.createElement('input'); const param = document.createElement('input');
param.setAttribute('type', 'hidden'); param.setAttribute('type', 'hidden');
param.setAttribute('name', 'authorCode'); param.setAttribute('name', 'authorId');
param.setAttribute('value', arrAuthorCode[i]); param.setAttribute('value', arrAuthorId[i]);
frm.appendChild(param); frm.appendChild(param);
} }
} }
@ -239,7 +239,7 @@
} }
if ($('#grpId').val() === '') { if ($('#grpId').val() === '') {
alert('[권한그룹 ID]는 필수 입니다.'); alert('[권한그룹 ID]는 필수 입니다.');
$('#authorCode').focus(); $('#authorId').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();
initArrAuthorCode = $(document.authHierarchyManage).serialize(); initArrAuthorId = $(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="authorCode">권한코드</label> <label for="authorId">권한코드</label>
<input id="authorCode" name="authorCode" type="text" size="30" value="<c:out value='${authorRoleManageVO.roleCode}'/>" title="검색" readonly="readonly" /> <input id="authorId" name="authorId" 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 = {
authorCode: $('#authorCode').val() authorId: $('#authorId').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(vAuthorCode) { function selectMenuCreat(vAuthorId) {
document.menuCreatManageForm.authorCode.value = vAuthorCode; document.menuCreatManageForm.authorId.value = vAuthorId;
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(vAuthorCode) {
<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="authorCode" type="hidden" /> <input name="authorId" 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(vAuthorCode) {
<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.authorCode}"/></td> <td nowrap="nowrap" ><c:out value="${result.authorId}"/></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(vAuthorCode) {
<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'/>?authorCode='<c:out value="${result.authorCode}"/>'" onclick="selectMenuCreat('<c:out value="${result.authorCode}"/>'); return false;">메뉴생성</a> <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>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>

@ -19,8 +19,8 @@
<tbody> <tbody>
<tr> <tr>
<td> <td>
<label for="authorCode">권한코드</label> <label for="authorId">권한코드</label>
<input id="authorCode" name="authorCode" type="text" size="80" value="" maxlength="60" title="권한코드"/> <input id="authorId" name="authorId" 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', {authorCode: rowData.authorCode}); fnBiz.pagePopup('add', {authorId: rowData.authorId});
} }
} }
@ -152,7 +152,7 @@
const gridColumns = [ const gridColumns = [
{ {
header: '권한코드', header: '권한코드',
name: 'authorCode', name: 'authorId',
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="authorCode">권한코드</label> <label for="authorId">권한코드</label>
<input id="authorCode" name="authorCode" type="text" size="30" value="${resultVO.authorCode}" title="검색" readonly/> <input id="authorId" name="authorId" type="text" size="30" value="${resultVO.authorId}" 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.authorCode)=="[object]") chk_browse = "IE"; if (eval(document.frmMenuTree.authorId)=="[object]") chk_browse = "IE";
if (eval(document.frmMenuTree.authorCode)=="[object NodeList]") chk_browse = "Fox"; if (eval(document.frmMenuTree.authorId)=="[object NodeList]") chk_browse = "Fox";
if (eval(document.frmMenuTree.authorCode)=="[object Collection]") chk_browse = "safai"; if (eval(document.frmMenuTree.authorId)=="[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({
authorCode: document.frmSearch.authorCode.value authorId: document.frmSearch.authorId.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="${dataAuthorCode_result}" varStatus="status"> <c:forEach var="row" items="${dataAuthorId_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="${dataAuthorCode_result}" varStatus="status"> <c:forEach var="row" items="${dataAuthorId_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="${dataAuthorCode_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${dataAuthorId_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="${dataAuthorCode_result}" itemValue="code" itemLabel="codeVal"/> <form:options items="${dataAuthorId_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.authorCode}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
--%> --%>
<!-- 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.authorCode}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
--%> --%>
<!-- 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.authorCode}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
--%> --%>
<!-- 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.authorCode}"/> <c:set var="isUpdate" value="${!empty authorInfoVO.authorId}"/>
<c:set var="bizName" value="권한그룹"/> <c:set var="bizName" value="권한그룹"/>
--%> --%>
<!-- popup title --> <!-- popup title -->

Loading…
Cancel
Save