소스정리

main
이범준 5 months ago
parent 06420d4c5e
commit b92fb4d657

@ -78,11 +78,7 @@ SELECT A.USER_ID
, B.SGG_NM AS SGG_NM
FROM TB_USER A
LEFT OUTER JOIN (
SELECT A.SGG_CD, SGG_NM, A.INST_CD, INST_NM, DEPT_CD, DEPT_NM
FROM TB_SGG A LEFT OUTER JOIN TB_DEPT B
ON A.SGG_CD = B.SGG_CD
AND A.INST_CD = B.INST_CD
AND A.USE_YN = 'Y' AND B.USE_YN = 'Y'
<include refid="cokr.xit.base.user.dao.DepartmentMapper.sggDepts" />
) B ON A.NSTT_CD = B.INST_CD AND A.DEPT_CD = B.DEPT_CD
<where>
<if test="by != null and term != null">AND ${by} LIKE CONCAT('%', #{term}, '%')</if>

Loading…
Cancel
Save