Browse Source

Merge branch 'dev' into pre-production

master
汤建军 10 months ago
parent
commit
3c33c67c4b
  1. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryDetailsMapper.xml
  2. 3
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryDetailsMapper.xml

@ -76,8 +76,12 @@
</select> </select>
<select id="listCode" resultType="com.logpm.distribution.vo.app.DistrilbutionBillLadingInventoryAppVO"> <select id="listCode" resultType="com.logpm.distribution.vo.app.DistrilbutionBillLadingInventoryAppVO">
select lddd.quantity,lddd.stock_list_id stockListId,lddd.id ldddId select lddd.quantity,lddd.stock_list_id stockListId,lddd.id ldddId
from logpm_distribution_delivery_details lddd LEFT JOIN logpm_distribution_stock lds on lddd.stock_list_id = lds.stock_list_id from logpm_distribution_delivery_details lddd LEFT
where lddd.is_deleted = 0 and lds.bill_lading_id = #{billLadingId} and lds.coding = #{coding} <!-- JOIN logpm_distribution_stock lds on lddd.stock_list_id = lds.stock_list_id-->
where
lddd.is_deleted = 0
and lds.bill_lading_id = #{billLadingId}
<!-- and lds.coding = #{coding}-->
<!-- select lddd.quantity,lddd.stock_list_id stockListId,lddd.id ldddId--> <!-- select lddd.quantity,lddd.stock_list_id stockListId,lddd.id ldddId-->
<!-- from logpm_distribution_delivery_details lddd--> <!-- from logpm_distribution_delivery_details lddd-->
<!-- where lddd.is_deleted = 0 and lddd.bill_lading_id = #{billLadingId} and lds.coding = #{coding}--> <!-- where lddd.is_deleted = 0 and lddd.bill_lading_id = #{billLadingId} and lds.coding = #{coding}-->

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

@ -1735,6 +1735,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
inventory.getRecords().forEach(i -> { inventory.getRecords().forEach(i -> {
List<DisStockListDetailEntity> listed = disStockListDetailService.list(Wrappers.<DisStockListDetailEntity>query().lambda() List<DisStockListDetailEntity> listed = disStockListDetailService.list(Wrappers.<DisStockListDetailEntity>query().lambda()
.eq(DisStockListDetailEntity::getReservationId, i.getId()) .eq(DisStockListDetailEntity::getReservationId, i.getId())
.eq(DisStockListDetailEntity::getStockListId, i.getStockListId())
.ne(DisStockListDetailEntity::getStockPackageStatus, ReservationPackageStatusConstant.quxiao.getValue()) .ne(DisStockListDetailEntity::getStockPackageStatus, ReservationPackageStatusConstant.quxiao.getValue())
); );
if (Func.isNotEmpty(listed)){ if (Func.isNotEmpty(listed)){
@ -1808,7 +1809,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
distributionBillLadingScan.setScanType(1); distributionBillLadingScan.setScanType(1);
//扫描 //扫描
if ("1".equals(type)) { if ("1".equals(type)) {
//库存品 //查询该自提单存在几种品类的库存品
List<DistrilbutionBillLadingInventoryAppVO> inventoryAppVO = distributionDeliveryDetailsService.listCode(String.valueOf(billLadingId), String.valueOf(coding)); List<DistrilbutionBillLadingInventoryAppVO> inventoryAppVO = distributionDeliveryDetailsService.listCode(String.valueOf(billLadingId), String.valueOf(coding));
if (ObjectUtils.isNotNull(inventoryAppVO)) { if (ObjectUtils.isNotNull(inventoryAppVO)) {
List<Long> stocklistIds = inventoryAppVO.stream().map(DistrilbutionBillLadingInventoryAppVO::getStockListId).collect(Collectors.toList()); List<Long> stocklistIds = inventoryAppVO.stream().map(DistrilbutionBillLadingInventoryAppVO::getStockListId).collect(Collectors.toList());

Loading…
Cancel
Save