| | |
| | | where status_backend = 'SEND' and partner_id is not null |
| | | </update> |
| | | |
| | | <select id="getPartnerOrderReceive" resultType="com.mzl.flower.entity.payment.Order"> |
| | | select * from t_order t where status_backend = 'SEND' and partner_id is not null |
| | | </select> |
| | | |
| | | <select id="getOrderStatusCount" resultType="com.mzl.flower.dto.response.payment.OrderStatusCountDTO"> |
| | | SELECT q.status_backend value, count(1) orderCount |
| | | FROM t_order q |
| | |
| | | </if> |
| | | <if test="condition.customerAddress != null and condition.customerAddress != ''"> |
| | | AND q.customer_address LIKE concat('%', #{condition.customerAddress},'%') |
| | | </if> |
| | | <if test="condition.address != null and condition.address != ''"> |
| | | AND CONCAT(q.customer_province, q.customer_city, q.customer_region, q.customer_address) LIKE concat('%', |
| | | #{condition.address},'%') |
| | | </if> |
| | | <if test="condition.customer != null and condition.customer != ''"> |
| | | AND (q.customer LIKE concat('%', #{condition.customer},'%') |
| | |
| | | </foreach> |
| | | </if> |
| | | |
| | | ORDER BY q.partner_id, q.warehouse_name, q.warehouse_location_code, q.create_time desc, q.payment_time desc |
| | | ORDER BY q.partner_id DESC, q.warehouse_id, q.warehouse_location_id, q.create_time desc, q.payment_time desc |
| | | </select> |
| | | |
| | | <select id="getSupplierSaleNum" resultType="com.mzl.flower.dto.response.payment.SupplierNumDTO"> |