|
@@ -7,6 +7,7 @@
|
|
COUNT(p.id)
|
|
COUNT(p.id)
|
|
FROM purchase_order p
|
|
FROM purchase_order p
|
|
left join procurement_plan_info i on p.procurement_plan=i.procurement_plan_no
|
|
left join procurement_plan_info i on p.procurement_plan=i.procurement_plan_no
|
|
|
|
+ left join customer_info c on p.customer = c.customer_name
|
|
WHERE
|
|
WHERE
|
|
p.delete_flag = '0'
|
|
p.delete_flag = '0'
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType != null and searchType != ''">
|
|
@@ -48,6 +49,8 @@
|
|
p.customer,
|
|
p.customer,
|
|
p.unit_price as unitPrice,
|
|
p.unit_price as unitPrice,
|
|
p.basis,
|
|
p.basis,
|
|
|
|
+ c.deposit_ratio as depositRatio,
|
|
|
|
+ c.total_deposit as totalDeposit,
|
|
p.freezing_deposit as freezingDeposit,
|
|
p.freezing_deposit as freezingDeposit,
|
|
p.default_deposit as defaultDeposit,
|
|
p.default_deposit as defaultDeposit,
|
|
p.unloading_charge as unloadingCharge,
|
|
p.unloading_charge as unloadingCharge,
|
|
@@ -70,6 +73,7 @@
|
|
i.packing_type as planPackingType
|
|
i.packing_type as planPackingType
|
|
FROM purchase_order p
|
|
FROM purchase_order p
|
|
left join procurement_plan_info i on p.procurement_plan=i.procurement_plan_no
|
|
left join procurement_plan_info i on p.procurement_plan=i.procurement_plan_no
|
|
|
|
+ left join customer_info c on p.customer = c.customer_name
|
|
WHERE
|
|
WHERE
|
|
p.delete_flag = '0'
|
|
p.delete_flag = '0'
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType != null and searchType != ''">
|