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>   

  • 相关阅读:
    PHP静态
    PHP批量删除
    PHP增删改查
    PHP数据访问
    PHP继承和多态
    PHP封装
    PHP字符串处理和正则表达式
    PHP数组
    PHP函数
    PHP基础
  • 原文地址:https://www.cnblogs.com/pai-da-xing/p/8065914.html
Copyright © 2011-2022 走看看