no message

main
이범준 1 year ago
parent ac453d62e4
commit b790033378

@ -40,10 +40,7 @@ public class XitAuthUsrMngVO {
* ID
*/
private String grpId;
/**
*
*/
private String mberTyCode;
/**
*
*/

@ -45,7 +45,6 @@ public class AuthByUserMgtServiceBean extends AbstractServiceBean implements Aut
XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setMberTyCode(String.valueOf(map.get("mberTyCode")));
vo.setAuthorCode(String.valueOf(map.get("authorCode")));
if(Objects.equals("N", map.get("regYn"))){
@ -64,7 +63,6 @@ public class AuthByUserMgtServiceBean extends AbstractServiceBean implements Aut
paraList.forEach(map -> {
XitUserScrtySetupVO vo = new XitUserScrtySetupVO();
vo.setScrtySetupTrgetId(String.valueOf(map.get("uniqId")));
vo.setMberTyCode(String.valueOf(map.get("mberTyCode")));
vo.setAuthorCode(userMgtService.getDefaultAuthorCode(String.valueOf(map.get("grpId"))));
userMapper.updateUserScrtySetup(vo);
});

@ -25,6 +25,5 @@ public class XitUserScrtySetupVO {
private static final long serialVersionUID = -4431553754531650113L;
protected String scrtySetupTrgetId; //보안 설정 대상 id
protected String mberTyCode; //회원 유형 코드
protected String authorCode; //권한 코드
}

@ -80,7 +80,6 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
// 사용자 권한
XitUserScrtySetupVO userScrtySetupVO = new XitUserScrtySetupVO();
userScrtySetupVO.setScrtySetupTrgetId(vo.getUserId());
userScrtySetupVO.setMberTyCode("USR03");
userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId()));
mapper.insertUserScrtySetup(userScrtySetupVO);
@ -121,7 +120,6 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
userScrtySetupVO.setAuthorCode(this.getDefaultAuthorCode(vo.getGrpId()));
if(Checks.isEmpty(mapper.selectUserScrtySetup(userScrtySetupVO.getScrtySetupTrgetId()))) {
userScrtySetupVO.setMberTyCode("USR03");
mapper.insertUserScrtySetup(userScrtySetupVO);
}else {
mapper.updateUserScrtySetup(userScrtySetupVO);

@ -2507,19 +2507,16 @@
/** findXitUserScrtySetups */
/** 사용자보안설정 다건 조회 */
SELECT SCRTY_SETUP_TRGET_ID
,MBER_TY_CODE
,AUTHOR_CODE
FROM XIT_USER_SCRTY_SETUP
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(mberTyCode)">AND MBER_TY_CODE = #{mberTyCode}</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">AND AUTHOR_CODE = #{authorCode}</if>
</select>
<select id="findXitUserScrtySetup" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/** findXitUserScrtySetup */
/** 사용자보안설정 조회 */
SELECT SCRTY_SETUP_TRGET_ID
,MBER_TY_CODE
,AUTHOR_CODE
FROM XIT_USER_SCRTY_SETUP
WHERE 1=1
@ -2531,11 +2528,9 @@
INSERT
INTO xit_user_scrty_setup (
scrty_setup_trget_id
, mber_ty_code
, authoR_CODE
) VALUES (
#{scrtySetupTrgetId}
, #{mberTyCode}
, #{authorCode}
)
</insert>
@ -2544,8 +2539,7 @@
/** 사용자보안설정 수정 */
UPDATE XIT_USER_SCRTY_SETUP
SET
MBER_TY_CODE = IFNULL(#{mberTyCode}, MBER_TY_CODE)
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notBlank(authorCode)">,AUTHOR_CODE = #{authorCode}</if>
AUTHOR_CODE = #{authorCode}
WHERE 1=1
AND SCRTY_SETUP_TRGET_ID = #{scrtySetupTrgetId}
</update>

@ -10,7 +10,6 @@
, xui.USER_ACNT
, xui.user_nm
, xui.grp_id
, uss.mber_ty_code
, cdc.code_val AS mberTyNm
, uss.author_code
, IF(uss.scrty_setup_trget_id IS NULL, 'N', 'Y') AS regYn
@ -24,7 +23,7 @@
ON xui.USER_ID = uss.scrty_setup_trget_id
LEFT OUTER JOIN tb_cmn_code cdc
ON cdc.grp_id = 'XIT012'
AND uss.mber_ty_code = cdc.code
AND 1=1
<where>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(userAcnt)">
AND INSTR(xui.USER_ACNT, #{userAcnt}) > 0

@ -217,15 +217,11 @@
<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 */
SELECT scrty_setup_trget_id
, mber_ty_code
, author_code
FROM xit_user_scrty_setup
<where>
<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(mberTyCode)">
AND mber_ty_code = #{mberTyCode}
</if>
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorCode)">
AND author_code = #{authorCode}
@ -236,7 +232,6 @@
<select id="selectUserScrtySetup" parameterType="string" resultType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|selectUserScrtySetup-사용자보안설정 조회|julim */
SELECT scrty_setup_trget_id
, mber_ty_code
, author_code
FROM xit_user_scrty_setup
WHERE scrty_setup_trget_id = #{scrtySetupTrgetId}
@ -247,11 +242,9 @@
INSERT
INTO xit_user_scrty_setup (
scrty_setup_trget_id
, mber_ty_code
, author_code
) VALUES (
#{scrtySetupTrgetId}
, #{mberTyCode}
, #{authorCode}
)
</insert>
@ -259,8 +252,7 @@
<update id="updateUserScrtySetup" parameterType="cokr.xit.fims.framework.biz.mng.user.XitUserScrtySetupVO">
/* user-mysql-mapper|updateUserScrtySetup-사용자보안설정 변경|julim */
UPDATE xit_user_scrty_setup
SET mber_ty_code = IF(mber_ty_code = #{mberTyCode}, mber_ty_code, #{mberTyCode})
, author_code = IF(author_code = #{authorCode}, author_code, #{authorCode})
SET author_code = IF(author_code = #{authorCode}, author_code, #{authorCode})
WHERE scrty_setup_trget_id = #{scrtySetupTrgetId}
</update>

@ -148,7 +148,6 @@
return {
uniqId: row.uniqId
, authorCode: row.authorCode
, mberTyCode: row.mberTyCode
, grpId: row.grpId
, regYn: row.regYn
}

@ -11,7 +11,6 @@
<input type="hidden" name="userIds" id="userIds"/>
<input type="hidden" name="authorCodes" id="authorCodes"/>
<input type="hidden" name="regYns" id="regYns"/>
<input type="hidden" name="mberTyCodes" id="mberTyCodes"/>
<input type="hidden" name="grpIds" id="grpIds"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/>
<div class="container-search">
@ -212,7 +211,6 @@ var XitAuthUsrMng_list = {
var returnId = "";
var returnAuthor = "";
var returnRegYn = "";
var returnmberTyCode = "";
var returnGrpId = "";
var returnBoolean = false;
@ -227,14 +225,12 @@ var XitAuthUsrMng_list = {
returnId += item.uniqId;
returnAuthor += item.authorCode;
returnRegYn += item.regYn;
returnmberTyCode += item.mberTyCode;
returnGrpId += item.grpId;
if(checkArr.length -1 > index){
returnId += ";";
returnAuthor += ";";
returnRegYn += ";";
returnmberTyCode += ";";
returnGrpId += ";";
}
})
@ -242,7 +238,6 @@ var XitAuthUsrMng_list = {
document.listForm.userIds.value = returnId;
document.listForm.authorCodes.value = returnAuthor;
document.listForm.regYns.value = returnRegYn;
document.listForm.mberTyCodes.value = returnmberTyCode;
document.listForm.grpIds.value = returnGrpId;
}
}

@ -43,12 +43,10 @@ function fncManageChecked() {
var checkId = document.listForm.checkId;
var selectAuthor = document.listForm.authorManageCombo;
var booleanRegYn = document.listForm.regYn;
var listMberTyCode = document.listForm.mberTyCode;
var returnId = "";
var returnAuthor = "";
var returnRegYn = "";
var returnmberTyCode = "";
var checkedCount = 0;
@ -62,13 +60,13 @@ function fncManageChecked() {
returnId = checkField[i].value;
returnAuthor = selectAuthor[i].value;
returnRegYn = booleanRegYn[i].value;
returnmberTyCode = listMberTyCode[i].value;
}
else {
returnId = returnId + ";" + checkField[i].value;
returnAuthor = returnAuthor + ";" + selectAuthor[i].value;
returnRegYn = returnRegYn + ";" + booleanRegYn[i].value;
returnmberTyCode = returnmberTyCode + ";" + listMberTyCode[i].value;
}
}
@ -90,7 +88,7 @@ function fncManageChecked() {
returnId = checkId.value;
returnAuthor = selectAuthor.value;
returnRegYn = booleanRegYn.value;
returnmberTyCode = listMberTyCode.value;
resultCheck = true;
}
@ -102,7 +100,7 @@ function fncManageChecked() {
document.listForm.userIds.value = returnId;
document.listForm.authorCodes.value = returnAuthor;
document.listForm.regYns.value = returnRegYn;
document.listForm.mberTyCodes.value = returnmberTyCode;
return resultCheck;
}
@ -246,7 +244,7 @@ function press() {
<td nowrap="nowrap"><input type="checkbox" name="delYn" class="check2" title="선택"><input type="hidden" name="checkId" value="<c:out value="${authorGroup.uniqId}"/>"/></td>
<td nowrap="nowrap"><c:out value="${authorGroup.userAcnt}"/></td>
<td nowrap="nowrap"><c:out value="${authorGroup.userNm}"/></td>
<td nowrap="nowrap"><c:out value="${authorGroup.mberTyNm}"/><input type="hidden" name="mberTyCode" value="${authorGroup.mberTyCode}"/></td>
<td nowrap="nowrap"></td>
<td nowrap="nowrap">
<select name="authorManageCombo" title="권한">
<c:forEach var="authorManage" items="${authorManageList}" varStatus="status">
@ -285,6 +283,5 @@ function press() {
<input type="hidden" name="userIds"/>
<input type="hidden" name="authorCodes"/>
<input type="hidden" name="regYns"/>
<input type="hidden" name="mberTyCodes"/>
<input type="hidden" name="pageIndex" value="<c:out value='${authorGroupVO.pageIndex}'/>"/>
</form:form>

@ -175,7 +175,6 @@
return {
uniqId: row.uniqId
, authorCode: row.authorCode
, mberTyCode: row.mberTyCode
, grpId: row.grpId
, regYn: row.regYn
}

Loading…
Cancel
Save