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