传入对象进行 !=''比较会报错 entity.createTime != ''
<if test = "entity.createTime != null "> <![CDATA[ and record.create_time >= #{entity.createTime} ]]> </if>