Browse Source

1.优化在库订单详情查询

master
pref_mail@163.com 8 months ago
parent
commit
fa88c36865
  1. 12
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml

12
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml

@ -638,12 +638,9 @@
ldpl.dealer_name, ldpl.dealer_code, ldpl.send_warehouse_id, ldpl.dealer_name, ldpl.dealer_code, ldpl.send_warehouse_id,
ldpl.send_warehouse_name, ldpl.accept_warehouse_id, ldpl.accept_warehouse_name, ldpl.send_warehouse_name, ldpl.accept_warehouse_id, ldpl.accept_warehouse_name,
ldpl.order_package_delivery_status, ldpl.order_package_delivery_status,
GROUP_CONCAT(DISTINCT lwt.pallet_name) pallet, ldpl.pallet pallet,
GROUP_CONCAT(DISTINCT lwug.position_code) goodsAllocation ldpl.goods_allocation goodsAllocation
From logpm_distribution_parcel_list ldpl 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> <where>
ldpl.conditions in ('1','3') ldpl.conditions in ('1','3')
<if test="param.serviceNumber != null and param.serviceNumber != ''">and ldpl.service_number like <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 <if test="param.orderPackageCode != null and param.orderPackageCode != ''">and ldpl.order_package_code like
concat('%',#{param.orderPackageCode},'%') concat('%',#{param.orderPackageCode},'%')
</if> </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},'%') concat('%',#{param.pallet},'%')
</if> </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},'%') concat('%',#{param.goodsAllocation},'%')
</if> </if>
<if test="param.firsts != null and param.firsts != ''">and ldpl.firsts like <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 test="param.conditions != null and param.conditions != ''">and ldpl.conditions = #{param.conditions}
</if> </if>
</where> </where>
GROUP BY ldpl.id
</select> </select>
<select id="getPackageList" resultType="com.logpm.distribution.entity.DistributionParcelListEntity"> <select id="getPackageList" resultType="com.logpm.distribution.entity.DistributionParcelListEntity">
SELECT ldpl.id, SELECT ldpl.id,

Loading…
Cancel
Save