• 模糊搜索和时间区间搜索


        <!-- 账单编号 -->
                <if test="billListForm.code != null and billListForm.code != ''">
                    AND a.code LIKE CONCAT('%',#{billListForm.code},'%')
                </if>
                <!-- 账单状态 -->
                <if test="billListForm.status != null and billListForm.status != ''">
                    AND a.status = #{billListForm.status}
                </if>
                <!-- 起止时间 -->
                <if test="billListForm.beginDate  != null and billListForm.beginDate != ''">
                    AND a.create_time  <![CDATA[   >=  #{billListForm.beginDate } ]]>
                </if>
                <if test="billListForm.endDate  != null and billListForm.endDate != ''">
                    AND  a.create_time <![CDATA[   <= #{billListForm.endDate } ]]>
                </if>
            </where>   

  • 相关阅读:
    & 微信支付对比
    # MySQL性能优化技巧
    & mysql简单定时增量全量备份
    & Mysql高级总结
    python面向对象
    django虚拟环境的安装
    Python 内置函数
    Python列表解析式
    函数练习
    Python装饰器
  • 原文地址:https://www.cnblogs.com/pai-da-xing/p/8065914.html
Copyright © 2020-2023  润新知