|
|
|
|
@ -3,20 +3,20 @@
|
|
|
|
|
<mapper namespace="cokr.xit.fims.framework.biz.mng.auth.dao.AuthAuthorMgtMapper">
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
* xit_author_info : 권한 정보
|
|
|
|
|
* TB_AUTHORITY : 권한 정보
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
<sql id="sqlAuthorInfo">
|
|
|
|
|
SELECT auth_Id
|
|
|
|
|
, author_nm
|
|
|
|
|
, AUTH_NM
|
|
|
|
|
, dscrp
|
|
|
|
|
, author_creat_de
|
|
|
|
|
FROM xit_author_info
|
|
|
|
|
, REG_DT
|
|
|
|
|
FROM TB_AUTHORITY
|
|
|
|
|
<where>
|
|
|
|
|
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authId)">
|
|
|
|
|
AND auth_Id = #{authId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authorNm)">
|
|
|
|
|
AND INSTR(author_nm, #{authorNm}) > 0
|
|
|
|
|
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(authNm)">
|
|
|
|
|
AND INSTR(AUTH_NM, #{authNm}) > 0
|
|
|
|
|
</if>
|
|
|
|
|
<if test="@cokr.xit.fims.framework.core.utils.XitCmmnUtil@notEmpty(dscrp)">
|
|
|
|
|
AND INSTR(dscrp, #{dscrp}) > 0
|
|
|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
<select id="selectAuthorInfos" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
|
|
|
|
|
/* auth-author-mysql-mapper|selectAuthorInfos-권한 목록 조회|julim */
|
|
|
|
|
<include refid="sqlAuthorInfo"/>
|
|
|
|
|
ORDER BY author_creat_de DESC
|
|
|
|
|
ORDER BY REG_DT DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectAuthorInfo" resultType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
|
|
|
|
|
@ -38,14 +38,14 @@
|
|
|
|
|
|
|
|
|
|
<insert id="insertAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
|
|
|
|
|
/* auth-author-mysql-mapper|insertAuthorInfo-권한 정보 등록|julim */
|
|
|
|
|
INSERT INTO xit_author_info (
|
|
|
|
|
INSERT INTO TB_AUTHORITY (
|
|
|
|
|
auth_Id
|
|
|
|
|
, author_nm
|
|
|
|
|
, AUTH_NM
|
|
|
|
|
, dscrp
|
|
|
|
|
, author_creat_de
|
|
|
|
|
, REG_DT
|
|
|
|
|
) VALUES (
|
|
|
|
|
#{authId}
|
|
|
|
|
,#{authorNm}
|
|
|
|
|
,#{authNm}
|
|
|
|
|
,#{dscrp}
|
|
|
|
|
,DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
|
)
|
|
|
|
|
@ -53,8 +53,8 @@
|
|
|
|
|
|
|
|
|
|
<update id="updateAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
|
|
|
|
|
/* auth-author-mysql-mapper|updateAuthorInfos-권한 정보 변경|julim */
|
|
|
|
|
UPDATE xit_author_info
|
|
|
|
|
SET author_nm = IF(author_nm = #{authorNm}, author_nm, #{authorNm})
|
|
|
|
|
UPDATE TB_AUTHORITY
|
|
|
|
|
SET AUTH_NM = IF(AUTH_NM = #{authNm}, AUTH_NM, #{authNm})
|
|
|
|
|
, dscrp = IF(dscrp = #{dscrp}, dscrp, #{dscrp})
|
|
|
|
|
WHERE auth_Id = #{authId}
|
|
|
|
|
</update>
|
|
|
|
|
@ -62,7 +62,7 @@
|
|
|
|
|
<delete id="deleteAuthorInfo" parameterType="cokr.xit.fims.framework.biz.mng.auth.XitAuthorInfoVO">
|
|
|
|
|
/* auth-author-mysql-mapper|deleteAuthorInfos-권한 정보 삭제|julim */
|
|
|
|
|
DELETE
|
|
|
|
|
FROM xit_author_info
|
|
|
|
|
FROM TB_AUTHORITY
|
|
|
|
|
WHERE auth_Id = #{authId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|