chenlu
2024-02-22 c6b112564e0a97fc20db23e67dae0adee03f941c
north-glass-erp/src/main/resources/mapper/sd/OrderMapper.xml
@@ -33,7 +33,7 @@
            *
        from
            `order` as o
        where  o.create_time>=#{startDate} and o.create_time <= #{endDate}
        where  date(o.create_time)>=#{startDate} and date(o.create_time) <= #{endDate}
          <if test="orderType!= null and orderType != ''">
               and o.create_order = #{orderType}
@@ -97,10 +97,11 @@
    <select id="getPageTotal">
        select
            CEILING(count(o.id)/#{pageSize})
            CEILING(count(o.id)/#{pageSize}) as 'pageTotal',
            count(o.id) as 'total'
        from
        `order` as o
        where o.create_time>=#{startDate} and o.create_time &lt;= #{endDate}
        where date (o.create_time)>=#{startDate} and date(o.create_time) &lt;= #{endDate}
            <if test="orderType!= null and orderType != ''">
                and o.create_order = #{orderType}
            </if>
@@ -156,9 +157,16 @@
            <if test="order.deliveryAddress != null and order.deliveryAddress != ''">
                and o.delivery_address REGEXP #{order.deliveryAddress}
            </if>
        order by o.id desc
        limit #{offset},#{pageSize}
    </select>
    <update id="reviewOrderById">
        update `order` set order_review = #{status} where order_id = #{id}
    </update>
    <update id="reviewProcessById">
        update `order` set process_review = #{status} where order_id = #{id}
    </update>
</mapper>