| | |
| | | <select id="getSelectOrderPrinting" > |
| | | select od.order_id,od.product_id,p.remarks as product_name,sum(od.compute_gross_area) as area,sum(od.gross_amount) as gross_amount ,sum(od.quantity) as quantity from |
| | | order_detail od left join product p on od.product_id=p.id |
| | | |
| | | <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 |
| | | where od.order_id = #{orderId} |
| | | and od.product_id = #{productId} |
| | | group by od.product_name,od.product_id ; |
| | | </select> |
| | | |
| | | <select id="getSelectDeliveryDetailPrinting" > |