|
|
@@ -15,31 +15,43 @@ public class GropMenuAthrDto implements Serializable {
|
|
|
@Getter
|
|
|
public static class GropMenuAthrInfo {
|
|
|
private final String GROP_ID; // N VARCHAR2(30) N 그룹ID
|
|
|
+ private final String GROP_NM;
|
|
|
+ private final String OPERSYST_ID; // N VARCHAR2(30) Y 운영시스템ID
|
|
|
+ private final String OPERSYST_NM;
|
|
|
private final String OPERSYST_MENU_ID; // N VARCHAR2(30) N 운영시스템메뉴ID
|
|
|
- private String ATHR_YN; // N CHAR(1) Y 'N' 권한 여부
|
|
|
+ private final String OPERSYST_MENU_NM;
|
|
|
|
|
|
+ private String ATHR_YN; // N CHAR(1) Y 'N' 권한 여부
|
|
|
private String ATHR_YN_DESC;
|
|
|
- private final String GROP_NM;
|
|
|
- private final String MENU_NAME;
|
|
|
|
|
|
+ // 메뉴권한 변경할 때 사용하는 생성자
|
|
|
public GropMenuAthrInfo(GropMenuAthr entity) {
|
|
|
- this.GROP_ID = entity.getGROP_ID();
|
|
|
- this.OPERSYST_MENU_ID = entity.getOPERSYST_MENU_ID();
|
|
|
+ this.GROP_ID = entity.getGROP_ID();
|
|
|
+ this.GROP_NM = entity.getUserGrop().getGROP_NM();
|
|
|
+
|
|
|
+ this.OPERSYST_ID = entity.getOperMenu().getOPER_SYST_ID();
|
|
|
+ this.OPERSYST_NM = entity.getOperMenu().getOPER_SYST_NM();
|
|
|
+
|
|
|
+ this.OPERSYST_MENU_ID = entity.getOPERSYST_MENU_ID();
|
|
|
+ this.OPERSYST_MENU_NM = entity.getOperMenu().getMENU_NAME();
|
|
|
this.ATHR_YN = entity.getATHR_YN();
|
|
|
|
|
|
this.ATHR_YN_DESC = this.ATHR_YN.equals("Y") ? "[Y] 권한있음" : "[N] 권한없음";
|
|
|
- this.GROP_NM = entity.getUserGrop().getGROP_NM();
|
|
|
- this.MENU_NAME = entity.getOperMenu().getMENU_NAME();
|
|
|
}
|
|
|
|
|
|
+ // 메뉴권한 조회할 때 사용하는 생성자
|
|
|
public GropMenuAthrInfo(UserGropInfr userGrop, OperSystMenu systMenu) {
|
|
|
- this.GROP_ID = userGrop.getGROP_ID();
|
|
|
- this.OPERSYST_MENU_ID = systMenu.getOPERSYST_MENU_ID();
|
|
|
- this.ATHR_YN = "Y";
|
|
|
+ this.GROP_ID = userGrop.getGROP_ID();
|
|
|
+ this.GROP_NM = userGrop.getGROP_NM();
|
|
|
+
|
|
|
+ this.OPERSYST_ID = systMenu.getOPER_SYST_ID();
|
|
|
+ this.OPERSYST_NM = systMenu.getOPER_SYST_NM();
|
|
|
|
|
|
+ this.OPERSYST_MENU_ID = systMenu.getOPERSYST_MENU_ID();
|
|
|
+ this.OPERSYST_MENU_NM = systMenu.getMENU_NAME();
|
|
|
+
|
|
|
+ this.ATHR_YN = "Y";
|
|
|
this.ATHR_YN_DESC = "[Y] 권한있음";
|
|
|
- this.GROP_NM = userGrop.getGROP_NM();
|
|
|
- this.MENU_NAME = systMenu.getMENU_NAME();
|
|
|
}
|
|
|
|
|
|
public void updateMenuAuth(GropMenuAthr entity) {
|