| | |
| | | </select> |
| | | |
| | | <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 money,sum(od.quantity) as quantity from |
| | | 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> |
| | |
| | | left join order_other_money oom on oom.order_id=dd.order_id and oom.column=#{key} |
| | | left join basic_other_money bom on bom.`column`=oom.`column` |
| | | where delivery_id = #{deliveryId} |
| | | and od.order_id = #{orderId} |
| | | and od.order_id = #{orderId} and od.order_number=#{orderNumber} and (od.other_columns!='{}' or od.other_columns!=null) |
| | | </select> |
| | | |
| | | <select id="getSelectOrderotherMoney" > |
| | |
| | | from order_detail od |
| | | left join order_other_money oom on oom.order_id=od.order_id and oom.column=#{key} |
| | | left join basic_other_money bom on bom.`column`=oom.`column` |
| | | where od.order_id = #{orderId} |
| | | where od.order_id = #{orderId} and od.order_number=#{orderNumber} and (od.other_columns!='{}' or od.other_columns!=null) |
| | | </select> |
| | | |
| | | <select id="getSelectOrderDetailPrinting" > |