huliguo
5 天以前 c4d2818a546bcc15f0324b8682fa7d21abef5ccc
ruoyi-modules/ruoyi-order/src/main/resources/mapper/order/OrderMapper.xml
@@ -1218,9 +1218,6 @@
                #{item}
            </foreach>
        </if>
        <if test="param.">
            and order_from = #{param.}
        </if>
        <if test="param.startDate!=null and param.startDate!=''">
            AND Date(create_time) &gt;= #{param.startDate}
        </if>
@@ -2246,16 +2243,16 @@
            AND (toc.order_no LIKE CONCAT('%',#{param.keyword},'%') OR toc.activity_name LIKE CONCAT('%',#{param.keyword},'%') OR FIND_IN_SET(toc.user_id, #{param.userIds}) &gt; 0)
        </if>
        <if test="param.createTimeBegin != null and param.createTimeBegin != ''">
            AND Date(toc.create_time) &gt;= #{param.createTimeBegin}
            AND toc.create_time &gt;= #{param.createTimeBegin}
        </if>
        <if test="param.createTimeEnd != null and param.createTimeEnd != ''">
            AND Date(toc.create_time) &lt;= #{param.createTimeEnd}
            AND toc.create_time &lt;= #{param.createTimeEnd}
        </if>
        <if test="param.useTimeBegin != null and param.useTimeBegin != ''">
            AND Date(toc.use_time) &gt;= #{param.useTimeBegin}
            AND toc.use_time &gt;= #{param.useTimeBegin}
        </if>
        <if test="param.useTimeEnd != null and param.useTimeEnd != ''">
            AND Date(toc.use_time) &lt;= #{param.useTimeEnd}
            AND toc.use_time &lt;= #{param.useTimeEnd}
        </if>
        ORDER BY toc.create_time DESC
    </select>