Below is my select statement in xml file where as data type of column createdon is date in oracle db. #{dt} is the date value passing through application. But below select doesn't give me output back if i add createdon filed in query
<select id="getBatchDtls" resultType="io.billdesk.fileuploaddownload.payload.BatchResponse">
select b.inputValue,f.fileName
from aaa a, bbb b, ccc c, ddd d ,eee e, fff f
where a.inputId=b.inputId
and a.Id=c.Id
and a.meCode=d.meCode
and a.inputid= f.inputid(+)
and f.batchid(+)=e.batchid
and a.Id=#{bCode}
and a.code=#{mCode}
<if test="dt != null">
and createdon like #{dt}
</if>
</select>