| | |
| | | group by od.order_id,od.product_name,od.product_id |
| | | </select> |
| | | |
| | | <select id="getSelectOrderPrinting" > |
| | | select od.order_id,od.product_id,od.product_name,sum(od.area) as area,sum(od.gross_amount) as money,sum(od.quantity) as quantity from |
| | | order_detail od |
| | | <where> |
| | | <if test="orderDetail.orderId != null and orderDetail.orderId != ''"> |
| | | and od.order_id like concat('%',#{orderDetail.orderId},'%') |
| | | </if> |
| | | </where> |
| | | group by od.product_name,od.product_id |
| | | </select> |
| | | |
| | | <select id="getSelectDeliveryDetailPrinting" > |
| | | select od.order_id, |
| | | od.order_number, |
| | |
| | | and od.product_id = #{productId} |
| | | </select> |
| | | |
| | | <select id="getSelectOrderDetailPrinting" > |
| | | select od.order_id, |
| | | od.order_number, |
| | | od.product_name, |
| | | od.width, |
| | | od.height, |
| | | od.quantity, |
| | | od.gross_amount, |
| | | od.area, |
| | | ifnull(od.processing_note,"") as processingNote, |
| | | ifnull(od.remarks,"") as buildingNumber, |
| | | od.price |
| | | from order_detail od |
| | | where od.order_id = #{orderId} |
| | | and od.product_id = #{productId} |
| | | </select> |
| | | |
| | | |
| | | <select id="exportDeliveryDetailReport"> |
| | | select dd.id, |