参考:https://bbs.csdn.net/topics/391838987
<!-- 查询条件:创建开始时间 --> <if test="createdBegintime!=null and reatedBegintime!=''"> AND CREATED >= #{createdBegintime} </if> <!-- 查询条件:创建结束时间 --> <if test="createdEndtime!=null and createdEndtime!=''"> AND CREATED <= #{createdEndtime} </if>