zoukankan      html  css  js  c++  java
  • 模糊搜索和时间区间搜索

        <!-- 账单编号 -->
                <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>   

  • 相关阅读:
    Python操作SQLServer示例
    T-SQL 谓词和运算符
    T-SQL 语句—— 游标
    SQL中的循环、for循环、游标
    web自动化快速入门
    接口自动化的总结
    jenkins知识
    SVN知识
    random.sample函数
    项目实战(六)
  • 原文地址:https://www.cnblogs.com/pai-da-xing/p/8065914.html
Copyright © 2011-2022 走看看