|
|
@ -61,10 +61,10 @@
|
|
|
|
<include refid="sqlRtReglt"/>
|
|
|
|
<include refid="sqlRtReglt"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test='sch_date_opt eq "regltDe"'>
|
|
|
|
<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>
|
|
|
|
<if test='sch_date_opt eq "registDt"'>
|
|
|
|
<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>
|
|
|
|
<if test='vhcleNo != null and vhcleNo != ""'>
|
|
|
|
<if test='vhcleNo != null and vhcleNo != ""'>
|
|
|
|
AND INSTR(trr.vhcle_no, #{vhcleNo}) > 0
|
|
|
|
AND INSTR(trr.vhcle_no, #{vhcleNo}) > 0
|
|
|
|