mybaits查询时间段,传日期参数出现的问题

mybaits查询日期时,对于Date类型的日期参数,在xml里面不能这样写: <if test="createTime != null and createTime !=''" >     。。。  </if>  由于拿传入的时间类型参数与空字符串''进行对比判断则会引起异常。 改成: <if test="createTime != null">     ...   </if>spa 若是日期参
相关文章
相关标签/搜索