| | |
| | | ifnull(od.processing_note,"") as processingNote, |
| | | ifnull(od.building_number,"") as buildingNumber, |
| | | dd.price, |
| | | od.other_columns |
| | | od.other_columns, |
| | | od.remarks |
| | | from delivery_detail dd |
| | | left join order_detail od on dd.order_id = od.order_id and dd.order_number = od.order_number |
| | | left join product p on od.product_id = p.id |
| | |
| | | od.quantity, |
| | | od.gross_amount, |
| | | od.compute_gross_area, |
| | | od.area, |
| | | ifnull(od.processing_note,"") as processingNote, |
| | | ifnull(od.building_number,"") as buildingNumber, |
| | | od.price, |
| | | od.other_columns |
| | | od.other_columns, |
| | | od.remarks |
| | | from order_detail od |
| | | where od.order_id = #{orderId} |
| | | and od.product_id = #{productId} |