사용자와 기관 코드 조회 수정.

main
jjh 1 year ago
parent ceda4bc353
commit b606f7950b

@ -61,7 +61,7 @@ SELECT USER_ID
, GRP_ID
, ORG_ID
, DEPT_CD
, (CASE
, (CASE
WHEN A.DEPT_CD = 'default'
THEN '기본 부서'
ELSE (SELECT DEPT_NM FROM TB_DEPT_INFO WHERE DEPT_CD = A.DEPT_CD)
@ -71,7 +71,7 @@ SELECT USER_ID
, (CASE
WHEN A.NSTT_CD = 'default'
THEN '기본 기관'
ELSE (SELECT INST_NM FROM TB_SGG_INFO WHERE INST_CD = A.NSTT_CD LIMIT 1)
ELSE (SELECT INST_NM FROM TB_SGG_INFO WHERE INST_CD = A.NSTT_CD AND SGG_CD = A.ORG_ID)
END
) AS NSTT_NM
, CRTFC_DN
@ -218,7 +218,7 @@ UPDATE TB_USER SET
, LOCK_DT = NULL</if>
, MDFCN_DT =<include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)
WHERE USER_ID IN (<foreach collection="userIDs" item="userID" separator=",">#{userID}</foreach>)
</update>
<update id="setStatus" parameterType="map">/* 사용자 상태 변경(userMapper.setStatus) */

Loading…
Cancel
Save