|
|
|
|
@ -3,19 +3,9 @@
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
|
|
|
|
<mapper namespace="go.kr.project.carInspectionPenalty.registration.mapper.CarFfnlgTrgtMapper">
|
|
|
|
|
|
|
|
|
|
<!-- 과태료 대상 목록 총 개수 조회 -->
|
|
|
|
|
<select id="selectListTotalCount" parameterType="CarFfnlgTrgtVO" resultType="int">
|
|
|
|
|
SELECT COUNT(*)
|
|
|
|
|
FROM tb_car_ffnlg_trgt t
|
|
|
|
|
LEFT JOIN tb_user u ON t.RGTR = u.USER_ID
|
|
|
|
|
LEFT JOIN (
|
|
|
|
|
SELECT CD_ID, CD_NM
|
|
|
|
|
FROM tb_cd_detail
|
|
|
|
|
WHERE CD_GROUP_ID = 'TASK_PRCS_STTS_CD'
|
|
|
|
|
AND USE_YN = 'Y'
|
|
|
|
|
) cd ON t.TASK_PRCS_STTS_CD = cd.CD_ID
|
|
|
|
|
WHERE t.DEL_DT IS NULL
|
|
|
|
|
|
|
|
|
|
<!-- 공통 검색 조건 -->
|
|
|
|
|
<sql id="searchCondition">
|
|
|
|
|
<if test='schRcptYmdStart != null and schRcptYmdStart != ""'>
|
|
|
|
|
AND t.RCPT_YMD >= #{schRcptYmdStart}
|
|
|
|
|
</if>
|
|
|
|
|
@ -37,6 +27,21 @@
|
|
|
|
|
<if test='schInspYmdEnd != null and schInspYmdEnd != ""'>
|
|
|
|
|
AND t.INSP_YMD <= #{schInspYmdEnd}
|
|
|
|
|
</if>
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<!-- 과태료 대상 목록 총 개수 조회 -->
|
|
|
|
|
<select id="selectListTotalCount" parameterType="CarFfnlgTrgtVO" resultType="int">
|
|
|
|
|
SELECT COUNT(*)
|
|
|
|
|
FROM tb_car_ffnlg_trgt t
|
|
|
|
|
LEFT JOIN tb_user u ON t.RGTR = u.USER_ID
|
|
|
|
|
LEFT JOIN (
|
|
|
|
|
SELECT CD_ID, CD_NM
|
|
|
|
|
FROM tb_cd_detail
|
|
|
|
|
WHERE CD_GROUP_ID = 'TASK_PRCS_STTS_CD'
|
|
|
|
|
AND USE_YN = 'Y'
|
|
|
|
|
) cd ON t.TASK_PRCS_STTS_CD = cd.CD_ID
|
|
|
|
|
WHERE t.DEL_DT IS NULL
|
|
|
|
|
<include refid="searchCondition"/>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 과태료 대상 목록 조회 -->
|
|
|
|
|
@ -80,27 +85,7 @@
|
|
|
|
|
AND USE_YN = 'Y'
|
|
|
|
|
) cd ON t.TASK_PRCS_STTS_CD = cd.CD_ID
|
|
|
|
|
WHERE t.DEL_DT IS NULL
|
|
|
|
|
<if test='schRcptYmdStart != null and schRcptYmdStart != ""'>
|
|
|
|
|
AND t.RCPT_YMD >= #{schRcptYmdStart}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schRcptYmdEnd != null and schRcptYmdEnd != ""'>
|
|
|
|
|
AND t.RCPT_YMD <= #{schRcptYmdEnd}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schVhclno != null and schVhclno != ""'>
|
|
|
|
|
AND t.VHCLNO LIKE CONCAT('%', #{schVhclno}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schOwnrNm != null and schOwnrNm != ""'>
|
|
|
|
|
AND t.OWNR_NM LIKE CONCAT('%', #{schOwnrNm}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schTaskPrcsSttsCd != null and schTaskPrcsSttsCd != ""'>
|
|
|
|
|
AND t.TASK_PRCS_STTS_CD = #{schTaskPrcsSttsCd}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schInspYmdStart != null and schInspYmdStart != ""'>
|
|
|
|
|
AND t.INSP_YMD >= #{schInspYmdStart}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schInspYmdEnd != null and schInspYmdEnd != ""'>
|
|
|
|
|
AND t.INSP_YMD <= #{schInspYmdEnd}
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="searchCondition"/>
|
|
|
|
|
ORDER BY t.REG_DT DESC
|
|
|
|
|
<if test='pagingYn == "Y"'>
|
|
|
|
|
limit #{startIndex}, #{perPage} /* 서버사이드 페이징 처리 */
|
|
|
|
|
|