|
|
|
@ -638,12 +638,9 @@
|
|
|
|
|
ldpl.dealer_name, ldpl.dealer_code, ldpl.send_warehouse_id, |
|
|
|
|
ldpl.send_warehouse_name, ldpl.accept_warehouse_id, ldpl.accept_warehouse_name, |
|
|
|
|
ldpl.order_package_delivery_status, |
|
|
|
|
GROUP_CONCAT(DISTINCT lwt.pallet_name) pallet, |
|
|
|
|
GROUP_CONCAT(DISTINCT lwug.position_code) goodsAllocation |
|
|
|
|
ldpl.pallet pallet, |
|
|
|
|
ldpl.goods_allocation goodsAllocation |
|
|
|
|
From logpm_distribution_parcel_list ldpl |
|
|
|
|
LEFT JOIN logpm_warehouse_tray_goods lwtg on lwtg.association_id = ldpl.id |
|
|
|
|
LEFT JOIN logpm_warehouse_tray lwt on lwtg.tray_id = lwt.id |
|
|
|
|
LEFT JOIN logpm_warehouse_updown_goods lwug on lwug.association_id = ldpl.id |
|
|
|
|
<where> |
|
|
|
|
ldpl.conditions in ('1','3') |
|
|
|
|
<if test="param.serviceNumber != null and param.serviceNumber != ''">and ldpl.service_number like |
|
|
|
@ -685,10 +682,10 @@
|
|
|
|
|
<if test="param.orderPackageCode != null and param.orderPackageCode != ''">and ldpl.order_package_code like |
|
|
|
|
concat('%',#{param.orderPackageCode},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.pallet != null and param.pallet != ''">and lwtg.tray_code like |
|
|
|
|
<if test="param.pallet != null and param.pallet != ''">and ldpl.pallet like |
|
|
|
|
concat('%',#{param.pallet},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.goodsAllocation != null and param.goodsAllocation != ''">and lwug.position_code like |
|
|
|
|
<if test="param.goodsAllocation != null and param.goodsAllocation != ''">and ldpl.goods_allocation like |
|
|
|
|
concat('%',#{param.goodsAllocation},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.firsts != null and param.firsts != ''">and ldpl.firsts like |
|
|
|
@ -726,7 +723,6 @@
|
|
|
|
|
<if test="param.conditions != null and param.conditions != ''">and ldpl.conditions = #{param.conditions} |
|
|
|
|
</if> |
|
|
|
|
</where> |
|
|
|
|
GROUP BY ldpl.id |
|
|
|
|
</select> |
|
|
|
|
<select id="getPackageList" resultType="com.logpm.distribution.entity.DistributionParcelListEntity"> |
|
|
|
|
SELECT ldpl.id, |
|
|
|
|