Browse Source

BUG修复

master
汤建军 5 months ago
parent
commit
f0920b746b
  1. 1
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.xml
  2. 43
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml
  3. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java

1
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListInfoMapper.xml

@ -180,7 +180,6 @@
lddd.is_deleted = 0
AND lddd.stock_list_id = #{stockListId}
AND lddd.inventory_status != 2
AND IFNULL(SUM(ldsld.num),0) > 0
GROUP BY
ldbl.id
</select>

43
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml

@ -74,8 +74,8 @@
AND dbp2.packet_bar_status IN ( 1, 3 )
LEFT JOIN logpm_distribution_parcel_list ldpl2 ON dbp2.parce_list_id = ldpl2.id
<where>
1=1
<if test="collect != null and @org.apache.commons.collections4.CollectionUtils@isNotEmpty(collect)">
dbl2.is_deleted = 0
<if test="collect != null ">
and dbl2.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}
@ -126,16 +126,17 @@
dsa.storage_fee
FROM
logpm_distrilbution_bill_lading aaa
LEFT JOIN logpm_distrilbution_bill_stock lds ON lds.bill_lading_id = aaa.id AND lds.order status != 2
LEFT JOIN logpm_distrilbution_bill_stock lds ON lds.bill_lading_id = aaa.id AND lds.order_status != 2
LEFT JOIN logpm_distribution_stock_article dsa ON lds.stock_article_id = dsa.id
WHERE
aaa.is_deleted = 0
<if test="collect != null and @org.apache.commons.collections4.CollectionUtils@isNotEmpty(collect)">
and aaa.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<where>
aaa.is_deleted = 0
<if test="collect != null ">
and aaa.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</where>
GROUP BY
aaa.id
) AS k
@ -155,14 +156,16 @@
AND lddd.is_deleted = 0
LEFT JOIN logpm_distribution_stock_list ldsl ON lddd.stock_list_id = ldsl.id
LEFT JOIN logpm_basicdata_client lbc ON ldsl.market_id = lbc.id
WHERE
lddd.inventory_status != 2
<if test="collect != null and @org.apache.commons.collections4.CollectionUtils@isNotEmpty(collect)">
and bbb.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<where>
lddd.inventory_status != 2
<if test="collect != null ">
and bbb.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</where>
GROUP BY
bbb.id
) AS m ON m.id = k.id
@ -179,7 +182,7 @@
<if test="param.pickUpTimeStart != null">
AND DATE_FORMAT(dbl.pick_up_time,'%y%m%d') BETWEEN DATE_FORMAT(#{param.pickUpTimeStart},'%y%m%d') AND DATE_FORMAT(#{param.pickUpTimeEnd},'%y%m%d')
</if>
<if test="collect != null and @org.apache.commons.collections4.CollectionUtils@isNotEmpty(collect)">
<if test="collect != null ">
and dbl.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java

@ -2561,7 +2561,9 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
IPage<DistrilbutionBillLadingVO> distrilbutionBillLadingVOIPage = null;
List<Long> collect = basicdataWarehouseClient.getWarehouseIds();
if (collect.isEmpty()) {
collect = null;
}
distrilbutionBillLadingVOIPage = baseMapper.pageList(page, distrilbutionBillLadingDTO, collect);

Loading…
Cancel
Save