| | |
| | | join t_order o on q.order_id = o.id |
| | | join t_supplier_info s on s.id = q.supplier_id |
| | | join t_station st on st.id = s.station_id |
| | | left join t_warehouse w on o.warehouse_id=w.id |
| | | left join t_warehouse_location wl on o.warehouse_location_id=wl.id |
| | | WHERE q.deleted = 0 and o.deleted = 0 |
| | | and q.status in ('PENDING', 'ARRIVED', 'CHECKED') |
| | | AND q.supplier_id = #{condition.supplierId} |
| | |
| | | <if test="condition.endDate != null"> |
| | | AND o.payment_time < #{condition.endDate} |
| | | </if> |
| | | |
| | | ORDER BY q.arrive_time |
| | | order by w.seq,wl.seq asc |
| | | <!-- ORDER BY q.arrive_time --> |
| | | </select> |
| | | |
| | | <select id="statisticStationList" resultType="com.mzl.flower.dto.response.flower.StationStatisticDTO"> |