fix : 유저 관련 수정

main
이범준 1 year ago
parent 15d4393b73
commit 8801a98305

@ -41,7 +41,7 @@
</sql> </sql>
<sql id="findList_FROM"> <sql id="findList_FROM">
FROM XIT_BBS A FROM XIT_BBS A
LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.RGTR = B.USER_KEY LEFT OUTER JOIN XIT_VW_USER_MASTR B ON A.RGTR = B.USER_ID
LEFT OUTER JOIN XIT_BBS_MASTR C ON A.BBS_ID = C.BBS_ID LEFT OUTER JOIN XIT_BBS_MASTR C ON A.BBS_ID = C.BBS_ID
</sql> </sql>
<sql id="findList_WHERE"> <sql id="findList_WHERE">

@ -27,7 +27,7 @@
,A.ATCH_POSBL_FILE_SIZE AS "posblAtchFileSize" ,A.ATCH_POSBL_FILE_SIZE AS "posblAtchFileSize"
,A.REPLY_POSBL_YN AS "replyPosblYn" ,A.REPLY_POSBL_YN AS "replyPosblYn"
,A.RGTR AS "rgtr" ,A.RGTR AS "rgtr"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_KEY = A.RGTR) AS "frstRgtrNm" ,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_ID = A.RGTR) AS "frstRgtrNm"
,A.USE_YN AS "useYn" ,A.USE_YN AS "useYn"
,DATE_FORMAT(A.REG_DT, '%Y-%m-%d') AS "regDt" ,DATE_FORMAT(A.REG_DT, '%Y-%m-%d') AS "regDt"
,(SELECT IFNULL (SA.USE_YN, 'N') ,(SELECT IFNULL (SA.USE_YN, 'N')

@ -23,8 +23,8 @@
,A.MDFR AS "mdfr" ,A.MDFR AS "mdfr"
,A.MDFCN_DT AS "mdfcnDt" ,A.MDFCN_DT AS "mdfcnDt"
,B.CODE_VAL AS "tmplatSeCodeNm" ,B.CODE_VAL AS "tmplatSeCodeNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_KEY=A.RGTR) AS "frstRgtrNm" ,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_ID=A.RGTR) AS "frstRgtrNm"
,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_KEY=A.MDFR) AS "lastMdfrNm" ,(SELECT SA.USER_NM FROM XIT_VW_USER_MASTR SA WHERE SA.USER_ID=A.MDFR) AS "lastMdfrNm"
</sql> </sql>
<sql id="findList_FROM"> <sql id="findList_FROM">
FROM XIT_TMPLAT_INFO A FROM XIT_TMPLAT_INFO A

@ -40,7 +40,7 @@
<include refid="sqlBoardMaster"/> <include refid="sqlBoardMaster"/>
FROM xit_bbs xb FROM xit_bbs xb
LEFT OUTER JOIN xit_vw_user_mastr xvum LEFT OUTER JOIN xit_vw_user_mastr xvum
ON xb.rgtr = xvum.user_key ON xb.rgtr = xvum.USER_ID
LEFT OUTER JOIN xit_bbs_mastr xbm LEFT OUTER JOIN xit_bbs_mastr xbm
ON xb.bbs_id = xbm.bbs_id ON xb.bbs_id = xbm.bbs_id
</sql> </sql>

@ -24,7 +24,7 @@
, xbm.rgtr , xbm.rgtr
, (SELECT sa.user_nm , (SELECT sa.user_nm
FROM XIT_VW_USER_MASTR SA FROM XIT_VW_USER_MASTR SA
WHERE sa.user_key = xbm.rgtr) AS frstRgtrNm WHERE sa.USER_ID = xbm.rgtr) AS frstRgtrNm
, xbm.use_yn AS useYn , xbm.use_yn AS useYn
, DATE_FORMAT(xbm.reg_dt, '%Y-%m-%d') AS regDt , DATE_FORMAT(xbm.reg_dt, '%Y-%m-%d') AS regDt
, (SELECT IFNULL(sa.use_yn, 'N') , (SELECT IFNULL(sa.use_yn, 'N')

@ -17,8 +17,8 @@
, xti.mdfr , xti.mdfr
, xti.mdfcn_dt , xti.mdfcn_dt
, cdc.code_val AS tmplatSeCodeNm , cdc.code_val AS tmplatSeCodeNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.user_key = xti.rgtr) AS frstRgtrNm , (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.USER_ID = xti.rgtr) AS frstRgtrNm
, (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.user_key = xti.mdfr) AS lastMdfrNm , (SELECT SA.user_nm FROM xit_vw_user_mastr SA WHERE SA.USER_ID = xti.mdfr) AS lastMdfrNm
FROM xit_tmplat_info xti FROM xit_tmplat_info xti
LEFT OUTER JOIN tb_cmn_code cdc LEFT OUTER JOIN tb_cmn_code cdc
ON xti.tmplat_se_code = cdc.code ON xti.tmplat_se_code = cdc.code

Loading…
Cancel
Save