mybatis:sql查询条件有时间时查询效率非常慢

参考文档:习惯守望

<if test="end != null">
<![CDATA[ 
    and bdsj < TO_date('${end}','yyyy-mm-dd hh24:mi:ss')
]]>
</if>

<if test="start != null">
<![CDATA[ 
    and bdsj >= TO_date('${start}','yyyy-mm-dd hh24:mi:ss')
]]>
</if>

猜你喜欢

转载自blog.csdn.net/m0_38084243/article/details/84344400
今日推荐