| | |
| | | |
| | | where date(d.create_time)>=#{startDate} and date(d.create_time) <= #{endDate} |
| | | and d.customer_id = #{orderDetail.order.customerId} |
| | | group by od.order_id,od.product_id |
| | | group by dd.delivery_id,od.order_id,od.product_id |
| | | limit #{offset},#{pageSize}; |
| | | </select> |
| | | |
| | |
| | | where |
| | | date(d.create_time)>=#{startDate} and date(d.create_time) <= #{endDate} |
| | | and d.customer_id = #{orderDetail.order.customerId} |
| | | group by od.order_id,od.product_id) as zu |
| | | group by dd.delivery_id,od.order_id,od.product_id) as zu |
| | | </select> |
| | | |
| | | <select id="getSelectCustomerOderDate" > |
| | |
| | | where date(d.create_time) >= #{startDate} |
| | | and date(d.create_time) <= #{endDate} |
| | | and d.customer_id = #{orderDetail.order.customerId} |
| | | group by od.order_id,od.product_id |
| | | group by dd.delivery_id,od.order_id,od.product_id |
| | | |
| | | UNION ALL |
| | | |