|
|
|
@ -61,10 +61,10 @@
|
|
|
|
|
<include refid="sqlRtReglt"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test='sch_date_opt eq "regltDe"'>
|
|
|
|
|
AND trr.reglt_de BETWEEN #{sch_date_from} AND #{sch_date_to}
|
|
|
|
|
AND trr.reglt_de BETWEEN REPLACE(#{sch_date_from},'-','') AND REPLACE(#{sch_date_to},'-','')
|
|
|
|
|
</if>
|
|
|
|
|
<if test='sch_date_opt eq "registDt"'>
|
|
|
|
|
AND trr.regist_dt BETWEEN #{sch_date_from} AND #{sch_date_to}
|
|
|
|
|
AND SUBSTR(trr.regist_dt,1,8) BETWEEN REPLACE(#{sch_date_from},'-','') AND REPLACE(#{sch_date_to},'-','')
|
|
|
|
|
</if>
|
|
|
|
|
<if test='vhcleNo != null and vhcleNo != ""'>
|
|
|
|
|
AND INSTR(trr.vhcle_no, #{vhcleNo}) > 0
|
|
|
|
|