|
|
|
@ -27,7 +27,6 @@
|
|
|
|
|
</resultMap> |
|
|
|
|
<select id="pageList" resultType="com.logpm.distribution.vo.DistrilbutionBillLadingVO"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select dbl.id,GROUP_CONCAT(DISTINCT dsa.service_number) serviceNumber,GROUP_CONCAT(DISTINCT dsa.waybill_number) waybillNumber,GROUP_CONCAT(DISTINCT dsa.consignee_unit) |
|
|
|
|
consigneeUnit,GROUP_CONCAT(DISTINCT dsa.customer_name) customerName,GROUP_CONCAT(DISTINCT dsa.customer_telephone) |
|
|
|
|
customerTelephone,dsa.warehouse,dsa.warehouse_entry_time warehouseEntryTime,dsa.storage_fee |
|
|
|
@ -45,7 +44,8 @@
|
|
|
|
|
from logpm_distrilbution_bill_stock ldbs |
|
|
|
|
LEFT JOIN logpm_distribution_stock lds on lds.stock_article = ldbs.stock_article_id |
|
|
|
|
where ldbs.bill_lading_id = dbl.id |
|
|
|
|
) stopNum |
|
|
|
|
) stopNum, |
|
|
|
|
GROUP_CONCAT(DISTINCT dsa.order_code) orderCode |
|
|
|
|
from logpm_distrilbution_bill_lading dbl |
|
|
|
|
LEFT JOIN logpm_distrilbution_bill_package dbp on dbp.bill_lading_id = dbl.id and dbp.packet_bar_status in (1,3) |
|
|
|
|
LEFT JOIN logpm_distribution_stock_article dsa on dbp.stock_article_id = dsa.id |
|
|
|
@ -54,6 +54,9 @@
|
|
|
|
|
<if test="param.serviceNumber != null and param.serviceNumber != ''">and dsa.service_number like |
|
|
|
|
concat('%',#{param.serviceNumber},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.orderCode != null and param.orderCode != ''">and dsa.order_code like |
|
|
|
|
concat('%',#{param.orderCode},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.pickupBatch != null and param.pickupBatch != ''">and dbl.pickup_batch like |
|
|
|
|
concat('%',#{param.pickupBatch},'%') |
|
|
|
|
</if> |
|
|
|
|