mybatis时间对比

<!-- 查询条件:创建开始时间 -->
            <if test="createdBegintime!=null and createdBegintime!=''">
                AND CREATED &gt;= #{createdBegintime}
            </if>

            <!-- 查询条件:创建结束时间 -->
            <if test="createdEndtime!=null and createdEndtime!=''">
                AND CREATED &lt;= #{createdEndtime}
            </if>

猜你喜欢

转载自blog.csdn.net/aiyongbo123456/article/details/81457077