|
@@ -7,8 +7,6 @@
|
|
|
COUNT(p.id)
|
|
|
FROM purchase_order p
|
|
|
left join procurement_plan_info i on p.procurement_plan=i.procurement_plan_no
|
|
|
- left join price_change_record c on p.id=c.order_id
|
|
|
- left join transaction_record t on p.id=t.order_id
|
|
|
WHERE
|
|
|
p.delete_flag = '0'
|
|
|
<if test="searchType != null and searchType != ''">
|
|
@@ -54,22 +52,19 @@
|
|
|
p.open_position as openPosition,
|
|
|
p.closed_position as closedPosition,
|
|
|
p.cumulative_turnover as cumulativeTurnover,
|
|
|
+ p.trading_target as tradingTarget,
|
|
|
+ p.seller,
|
|
|
+ p.seller_phone as sellerPhone,
|
|
|
+ p.transactions_number as transactionsNumber,
|
|
|
+ p.packing_type as packingType,
|
|
|
+ p.bagging_notes as baggingNotes,
|
|
|
p.type,
|
|
|
p.status,
|
|
|
p.update_date as updateDate,
|
|
|
- i.packing_type as packingType,
|
|
|
- i.weight,
|
|
|
- c.price_type as priceType,
|
|
|
- c.price,
|
|
|
- t.record_flag as recordfFlag,
|
|
|
- t.transaction_price as transactionPrice,
|
|
|
- t.turnover,
|
|
|
- t.basis,
|
|
|
- t.deal_date as dealDate
|
|
|
+ i.packing_type as planPackingType,
|
|
|
+ i.weight
|
|
|
FROM purchase_order p
|
|
|
left join procurement_plan_info i on p.procurement_plan=i.procurement_plan_no
|
|
|
- left join price_change_record c on p.id=c.order_id
|
|
|
- left join transaction_record t on p.id=t.order_id
|
|
|
WHERE
|
|
|
p.delete_flag = '0'
|
|
|
<if test="searchType != null and searchType != ''">
|