今天遇到了个奇葩问题:
<if test = "starttime != null"> and accesstime >=#{starttime} </if> <if test = "endtime != null"> and accesstime <=#{endtime} </if> 启动项目居然报错。。。。。。
换成这样就好了
<if test = "starttime != null"> and accesstime >=#{starttime} </if> <if test = "endtime != null"> and #{endtime} >= accesstime </if>