|
|
|
@ -394,85 +394,85 @@ |
|
|
|
INNER JOIN ( |
|
|
|
<foreach collection="list" item="item" separator="UNION ALL"> |
|
|
|
SELECT |
|
|
|
#{item.id} AS id, |
|
|
|
#{item.orderNo} AS order_no, |
|
|
|
#{item.site} AS site, |
|
|
|
#{item.itemNo} AS item_no, |
|
|
|
#{item.partNo} AS part_no, |
|
|
|
#{item.status} AS status, |
|
|
|
#{item.qty} AS qty, |
|
|
|
#{item.umid} AS umid, |
|
|
|
#{item.convertFactor} AS convert_factor, |
|
|
|
#{item.price} AS price, |
|
|
|
#{item.basePrice} AS base_price, |
|
|
|
#{item.wantReceiveDate} AS want_receive_date, |
|
|
|
#{item.taxRate} AS tax_rate, |
|
|
|
#{item.tax} AS tax, |
|
|
|
#{item.additionalCost} AS additional_cost, |
|
|
|
#{item.freight} AS freight, |
|
|
|
#{item.duty} AS duty, |
|
|
|
#{item.arriveQty} AS arrive_qty, |
|
|
|
#{item.receiveQty} AS receive_qty, |
|
|
|
#{item.qtyReturned} AS qty_returned, |
|
|
|
#{item.qtyReplace} AS qty_replace, |
|
|
|
#{item.qtyScrapt} AS qty_scrapt, |
|
|
|
#{item.invoiceQty} AS invoice_qty, |
|
|
|
#{item.approveResult} AS approve_result, |
|
|
|
#{item.needInspectFlag} AS need_inspect_flag, |
|
|
|
#{item.remark} AS remark, |
|
|
|
#{item.iqcQty} AS iqc_qty, |
|
|
|
#{item.lastUpdateBy} AS last_update_by, |
|
|
|
#{item.prConvertNote} AS pr_convert_note, |
|
|
|
#{item.inspectTypeDb} AS inspect_type_db, |
|
|
|
#{item.inspectType} AS inspect_type, |
|
|
|
#{item.inspectQty} AS inspect_qty, |
|
|
|
#{item.inspectPercent} AS inspect_percent, |
|
|
|
#{item.inspectionLevelNo} AS inspection_level_no, |
|
|
|
#{item.closeTolerance} AS close_tolerance, |
|
|
|
#{item.overReceiveTolerance} AS over_receive_tolerance, |
|
|
|
#{item.item} AS item, |
|
|
|
#{item.value} AS c_value, |
|
|
|
#{item.shipQty} AS c_ship_qty, |
|
|
|
#{item.sumPrice} AS c_sum_price, |
|
|
|
#{item.narrival} AS c_narrival, |
|
|
|
#{item.crd} AS c_crd, |
|
|
|
#{item.inspection} AS c_inspection, |
|
|
|
#{item.realCrd} AS c_real_crd, |
|
|
|
#{item.eta} AS c_eta, |
|
|
|
#{item.flexid} AS c_flexid, |
|
|
|
#{item.obd} AS c_obd, |
|
|
|
#{item.docSent} AS c_doc_sent, |
|
|
|
#{item.telexRelease} AS c_telex_release, |
|
|
|
#{item.advancePayment} AS c_advance_payment, |
|
|
|
#{item.advancePaid} AS c_advance_paid, |
|
|
|
#{item.createTime} AS create_time, |
|
|
|
#{item.planner} AS c_planner, |
|
|
|
#{item.edit} AS c_edit, |
|
|
|
#{item.endPlanner} AS c_end_planner, |
|
|
|
#{item.remarkDelay} AS c_remark_delay, |
|
|
|
#{item.qtyCancelled} AS qty_cancelled, |
|
|
|
#{item.inspectMethodDb} AS inspect_method_db, |
|
|
|
#{item.toInvNofityQty} AS to_inv_nofity_qty, |
|
|
|
#{item.uploadDate} AS upload_date, |
|
|
|
#{item.orderRef1} AS order_ref1, |
|
|
|
#{item.orderRef5} AS order_ref5, |
|
|
|
#{item.batchNo} AS batch_no, |
|
|
|
#{item.orderRef4} AS order_ref4, |
|
|
|
#{item.prePayAmount} AS pre_pay_amount, |
|
|
|
#{item.uploadBy} AS upload_by, |
|
|
|
#{item.purLeadTime} AS pur_lead_time, |
|
|
|
#{item.orderRefType} AS order_ref_type, |
|
|
|
#{item.orderRef3} AS order_ref3, |
|
|
|
#{item.needReceiveFlag} AS need_receive_flag, |
|
|
|
#{item.uploadFlag} AS upload_flag, |
|
|
|
#{item.prePayReverseAmount} AS pre_pay_reverse_amount, |
|
|
|
#{item.outWorkOrderFlag} AS out_work_order_flag, |
|
|
|
#{item.orderRef2} AS order_ref2, |
|
|
|
#{item.qtyRbjs} AS qty_rbjs, |
|
|
|
#{item.prePayPayAmount} AS pre_pay_pay_amount, |
|
|
|
#{item.needDate} AS need_date, |
|
|
|
#{item.inspectMethod} AS inspect_method, |
|
|
|
#{item.invNotifyQty} AS inv_notify_qty |
|
|
|
CAST(#{item.id} AS INT) AS id, |
|
|
|
CAST(#{item.orderNo} AS VARCHAR(15)) AS order_no, |
|
|
|
CAST(#{item.site} AS VARCHAR(4)) AS site, |
|
|
|
CAST(#{item.itemNo} AS INT) AS item_no, |
|
|
|
CAST(#{item.partNo} AS VARCHAR(30)) AS part_no, |
|
|
|
CAST(#{item.status} AS VARCHAR(10)) AS status, |
|
|
|
CAST(#{item.qty} AS DECIMAL(20,6)) AS qty, |
|
|
|
CAST(#{item.umid} AS VARCHAR(8)) AS umid, |
|
|
|
CAST(#{item.convertFactor} AS DECIMAL(20,6)) AS convert_factor, |
|
|
|
CAST(#{item.price} AS DECIMAL(20,6)) AS price, |
|
|
|
CAST(#{item.basePrice} AS DECIMAL(20,6)) AS base_price, |
|
|
|
CAST(#{item.wantReceiveDate} AS DATETIME) AS want_receive_date, |
|
|
|
CAST(#{item.taxRate} AS DECIMAL(20,6)) AS tax_rate, |
|
|
|
CAST(#{item.tax} AS DECIMAL(20,6)) AS tax, |
|
|
|
CAST(#{item.additionalCost} AS DECIMAL(20,6)) AS additional_cost, |
|
|
|
CAST(#{item.freight} AS DECIMAL(20,6)) AS freight, |
|
|
|
CAST(#{item.duty} AS DECIMAL(20,6)) AS duty, |
|
|
|
CAST(#{item.arriveQty} AS DECIMAL(20,6)) AS arrive_qty, |
|
|
|
CAST(#{item.receiveQty} AS DECIMAL(20,6)) AS receive_qty, |
|
|
|
CAST(#{item.qtyReturned} AS DECIMAL(20,6)) AS qty_returned, |
|
|
|
CAST(#{item.qtyReplace} AS DECIMAL(20,6)) AS qty_replace, |
|
|
|
CAST(#{item.qtyScrapt} AS DECIMAL(20,6)) AS qty_scrapt, |
|
|
|
CAST(#{item.invoiceQty} AS DECIMAL(20,6)) AS invoice_qty, |
|
|
|
CAST(#{item.approveResult} AS CHAR(1)) AS approve_result, |
|
|
|
CAST(#{item.needInspectFlag} AS CHAR(1)) AS need_inspect_flag, |
|
|
|
CAST(#{item.remark} AS VARCHAR(400)) AS remark, |
|
|
|
CAST(#{item.iqcQty} AS DECIMAL(20,6)) AS iqc_qty, |
|
|
|
CAST(#{item.lastUpdateBy} AS VARCHAR(20)) AS last_update_by, |
|
|
|
CAST(#{item.prConvertNote} AS VARCHAR(200)) AS pr_convert_note, |
|
|
|
CAST(#{item.inspectTypeDb} AS CHAR(1)) AS inspect_type_db, |
|
|
|
CAST(#{item.inspectType} AS VARCHAR(40)) AS inspect_type, |
|
|
|
CAST(#{item.inspectQty} AS DECIMAL(20,6)) AS inspect_qty, |
|
|
|
CAST(#{item.inspectPercent} AS DECIMAL(20,6)) AS inspect_percent, |
|
|
|
CAST(#{item.inspectionLevelNo} AS VARCHAR(20)) AS inspection_level_no, |
|
|
|
CAST(#{item.closeTolerance} AS DECIMAL(20,6)) AS close_tolerance, |
|
|
|
CAST(#{item.overReceiveTolerance} AS DECIMAL(20,6)) AS over_receive_tolerance, |
|
|
|
CAST(#{item.item} AS VARCHAR(64)) AS item, |
|
|
|
CAST(#{item.value} AS VARCHAR(50)) AS c_value, |
|
|
|
CAST(#{item.shipQty} AS INT) AS c_ship_qty, |
|
|
|
CAST(#{item.sumPrice} AS DECIMAL(20,6)) AS c_sum_price, |
|
|
|
CAST(#{item.narrival} AS DATETIME) AS c_narrival, |
|
|
|
CAST(#{item.crd} AS DATETIME) AS c_crd, |
|
|
|
CAST(#{item.inspection} AS DATETIME) AS c_inspection, |
|
|
|
CAST(#{item.realCrd} AS DATETIME) AS c_real_crd, |
|
|
|
CAST(#{item.eta} AS DATETIME) AS c_eta, |
|
|
|
CAST(#{item.flexid} AS VARCHAR(50)) AS c_flexid, |
|
|
|
CAST(#{item.obd} AS DATETIME) AS c_obd, |
|
|
|
CAST(#{item.docSent} AS CHAR(1)) AS c_doc_sent, |
|
|
|
CAST(#{item.telexRelease} AS CHAR(1)) AS c_telex_release, |
|
|
|
CAST(#{item.advancePayment} AS CHAR(1)) AS c_advance_payment, |
|
|
|
CAST(#{item.advancePaid} AS CHAR(1)) AS c_advance_paid, |
|
|
|
CAST(#{item.createTime} AS DATETIME) AS create_time, |
|
|
|
CAST(#{item.planner} AS VARCHAR(50)) AS c_planner, |
|
|
|
CAST(#{item.edit} AS DATETIME) AS c_edit, |
|
|
|
CAST(#{item.endPlanner} AS VARCHAR(50)) AS c_end_planner, |
|
|
|
CAST(#{item.remarkDelay} AS VARCHAR(255)) AS c_remark_delay, |
|
|
|
CAST(#{item.qtyCancelled} AS DECIMAL(20,6)) AS qty_cancelled, |
|
|
|
CAST(#{item.inspectMethodDb} AS CHAR(1)) AS inspect_method_db, |
|
|
|
CAST(#{item.toInvNofityQty} AS DECIMAL(20,6)) AS to_inv_nofity_qty, |
|
|
|
CAST(#{item.uploadDate} AS DATETIME) AS upload_date, |
|
|
|
CAST(#{item.orderRef1} AS VARCHAR(20)) AS order_ref1, |
|
|
|
CAST(#{item.orderRef5} AS VARCHAR(20)) AS order_ref5, |
|
|
|
CAST(#{item.batchNo} AS VARCHAR(18)) AS batch_no, |
|
|
|
CAST(#{item.orderRef4} AS VARCHAR(20)) AS order_ref4, |
|
|
|
CAST(#{item.prePayAmount} AS DECIMAL(20,6)) AS pre_pay_amount, |
|
|
|
CAST(#{item.uploadBy} AS VARCHAR(50)) AS upload_by, |
|
|
|
CAST(#{item.purLeadTime} AS DECIMAL(20,6)) AS pur_lead_time, |
|
|
|
CAST(#{item.orderRefType} AS VARCHAR(20)) AS order_ref_type, |
|
|
|
CAST(#{item.orderRef3} AS VARCHAR(20)) AS order_ref3, |
|
|
|
CAST(#{item.needReceiveFlag} AS CHAR(1)) AS need_receive_flag, |
|
|
|
CAST(#{item.uploadFlag} AS CHAR(1)) AS upload_flag, |
|
|
|
CAST(#{item.prePayReverseAmount} AS DECIMAL(20,6)) AS pre_pay_reverse_amount, |
|
|
|
CAST(#{item.outWorkOrderFlag} AS CHAR(1)) AS out_work_order_flag, |
|
|
|
CAST(#{item.orderRef2} AS VARCHAR(20)) AS order_ref2, |
|
|
|
CAST(#{item.qtyRbjs} AS DECIMAL(20,6)) AS qty_rbjs, |
|
|
|
CAST(#{item.prePayPayAmount} AS DECIMAL(20,6)) AS pre_pay_pay_amount, |
|
|
|
CAST(#{item.needDate} AS DATETIME) AS need_date, |
|
|
|
CAST(#{item.inspectMethod} AS VARCHAR(20)) AS inspect_method, |
|
|
|
CAST(#{item.invNotifyQty} AS DECIMAL(20,6)) AS inv_notify_qty |
|
|
|
</foreach> |
|
|
|
) t ON pd.id = t.id |
|
|
|
</update> |
|
|
|
@ -499,5 +499,5 @@ |
|
|
|
AND site = #{site} |
|
|
|
AND item = #{item} |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
</mapper> |