| | |
| | | <result column="product_name" property="orderDetail.productName"/> |
| | | <result column="order_id" property="orderDetail.orderId"/> |
| | | |
| | | <result column="contract_id" property="order.contractId"/> |
| | | |
| | | |
| | | |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="getSelectDeliveryPrinting" resultMap="selectDeliveryDetailOrderDetail" > |
| | | select dd.delivery_id,od.order_id,od.product_id,IF(#{type}='product_abbreviation',pt.remarks,od.product_name) as product_name,sum(dd.area) as area,sum(dd.money) as money,sum(dd.quantity) as quantity from |
| | | select dd.delivery_id,od.order_id,od.product_id,IF(#{type}='product_abbreviation',pt.remarks,od.product_name) as product_name,sum(dd.area) as area, |
| | | sum(dd.money) as money,sum(dd.quantity) as quantity,o.contract_id 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 pt on pt.id=od.product_id |
| | | |
| | | left join sd.`order` o on o.order_id=dd.order_id |
| | | |
| | | |
| | | where dd.delivery_id like concat('%',#{deliveryId},'%') |