原因: 时间与空字符串比较是无效的,如果拿传入的时间类型参数与空字符串''进行对比则会引发invalid comparison:java.util.data and java.lang.string异常
''
invalid comparison:java.util.data and java.lang.string
解决方法: 把xxx.xml中的
<if test="XXX !=null and XXX!='' ">
XXX!='' 去掉,只保留非空判断