merge master into develop - CscListRForm.jsp FAQ 아코디언 버그 수정
This commit is contained in:
@@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.wb.domainserver.domain.admin.sys.authFnctMenu.mapper.BOMaAuthFnctMenuMapper">
|
||||
|
||||
<!-- 권한그룹메뉴 등록 -->
|
||||
<insert id="insertBOAuthFnctMenu" parameterType="DataMap">
|
||||
<selectKey order="BEFORE" keyProperty="authorMenuFnctInnb" resultType="String">
|
||||
SELECT IFNULL(MAX(AUTHOR_MENU_FNCT_INNB),0) + 1
|
||||
FROM GC_AUTH_FNCT_MENU
|
||||
</selectKey>
|
||||
INSERT
|
||||
INTO GC_AUTH_FNCT_MENU
|
||||
(
|
||||
AUTHOR_MENU_FNCT_INNB,
|
||||
<if test="authorGroupCd != null || authorGroupCd != ''">
|
||||
AUTHOR_GROUP_CD,
|
||||
</if>
|
||||
<if test="url != null || url != ''">
|
||||
URL,
|
||||
</if>
|
||||
<if test="fnctCd != null || fnctCd != ''">
|
||||
FNCT_CD,
|
||||
</if>
|
||||
<if test="menuCd != null || menuCd != ''">
|
||||
MENU_CD,
|
||||
</if>
|
||||
<if test="sopmalCd != null || sopmalCd != ''">
|
||||
SOPMAL_CD,
|
||||
</if>
|
||||
REGUSR,
|
||||
REGIST_DT
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#{authorMenuFnctInnb},
|
||||
<if test="authorGroupCd != null || authorGroupCd != ''">
|
||||
#{authorGroupCd},
|
||||
</if>
|
||||
<if test="url != null || url != ''">
|
||||
#{url},
|
||||
</if>
|
||||
<if test="fnctCd != null || fnctCd != ''">
|
||||
#{fnctCd},
|
||||
</if>
|
||||
<if test="menuCd != null || menuCd != ''">
|
||||
#{menuCd},
|
||||
</if>
|
||||
<if test="sopmalCd != null || sopmalCd != ''">
|
||||
#{sopmalCd},
|
||||
</if>
|
||||
#{regusr},
|
||||
NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 권한그룹메뉴 변경 이력 등록 -->
|
||||
<insert id="insertBOAuthFnctMenuLog" parameterType="DataMap">
|
||||
<selectKey order="BEFORE" keyProperty="logSnb" resultType="String">
|
||||
SELECT IFNULL(MAX(LOG_SNB),0) + 1
|
||||
FROM GC_AUTH_FNCT_MENU_LOG
|
||||
</selectKey>
|
||||
INSERT
|
||||
INTO GC_AUTH_FNCT_MENU_LOG
|
||||
(
|
||||
LOG_SNB,
|
||||
AUTHOR_MENU_FNCT_INNB,
|
||||
<if test="authorGroupCd != null || authorGroupCd != ''">
|
||||
AUTHOR_GROUP_CD,
|
||||
</if>
|
||||
<if test="url != null || url != ''">
|
||||
URL,
|
||||
</if>
|
||||
<if test="fnctCd != null || fnctCd != ''">
|
||||
FNCT_CD,
|
||||
</if>
|
||||
<if test="menuCd != null || menuCd != ''">
|
||||
MENU_CD,
|
||||
</if>
|
||||
<if test="sopmalCd != null || sopmalCd != ''">
|
||||
SOPMAL_CD,
|
||||
</if>
|
||||
CHNG_DV_CD,
|
||||
REGUSR,
|
||||
REGIST_DT
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
#{logSnb},
|
||||
#{authorMenuFnctInnb},
|
||||
<if test="authorGroupCd != null || authorGroupCd != ''">
|
||||
#{authorGroupCd},
|
||||
</if>
|
||||
<if test="url != null || url != ''">
|
||||
#{url},
|
||||
</if>
|
||||
<if test="fnctCd != null || fnctCd != ''">
|
||||
#{fnctCd},
|
||||
</if>
|
||||
<if test="menuCd != null || menuCd != ''">
|
||||
#{menuCd},
|
||||
</if>
|
||||
<if test="sopmalCd != null || sopmalCd != ''">
|
||||
#{sopmalCd},
|
||||
</if>
|
||||
#{chngDvCd},
|
||||
#{regusr},
|
||||
NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 권한그룹메뉴 기능 삭제 -->
|
||||
<delete id="deleteBOAuthFnctMenu" parameterType="Object">
|
||||
DELETE
|
||||
FROM
|
||||
GC_AUTH_FNCT_MENU
|
||||
WHERE
|
||||
1=1
|
||||
AND
|
||||
AUTHOR_MENU_FNCT_INNB = #{authorMenuFnctInnb}
|
||||
</delete>
|
||||
|
||||
<!-- 권한그룹메뉴 기능 조회 -->
|
||||
<select id="selectBOAuthGrpFnctList" parameterType="dataMap" resultType="dataMap">
|
||||
SELECT
|
||||
AUTHOR_MENU_FNCT_INNB, FNCT_CD, MENU_CD, SOPMAL_CD, URL, AUTHOR_GROUP_CD
|
||||
FROM
|
||||
GC_AUTH_FNCT_MENU
|
||||
WHERE
|
||||
1=1
|
||||
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(authorGroupCd)">
|
||||
AND
|
||||
AUTHOR_GROUP_CD = #{authorGroupCd}
|
||||
</if>
|
||||
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(fnctCd)">
|
||||
AND
|
||||
FNCT_CD = #{fnctCd}
|
||||
</if>
|
||||
<if test="@com.wb.domainserver.util.dataaccess.MybaitsUtil@isNotEmpty(menuCd)">
|
||||
AND
|
||||
MENU_CD = #{menuCd}
|
||||
AND
|
||||
URL IS NOT NULL
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 기능 URL 중복여부 조회 -->
|
||||
<select id="selectBOFnctUrlDplct"
|
||||
parameterType = "com.wb.domainserver.domain.admin.sys.fnct.vo.BOFnctVO"
|
||||
resultType = "Integer">
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
GC_AUTH_FNCT_MENU GAFM
|
||||
WHERE
|
||||
1=1
|
||||
AND
|
||||
GAFM.URL = #{fnctUrl}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user