Browse Source

PDA扫描详情页面BUG修复

chenglong
汤建军 1 year ago
parent
commit
1c633b61f6
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml
  2. 6
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java
  3. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml

@ -1227,7 +1227,7 @@
logpm_distribution_reservation AS ldr logpm_distribution_reservation AS ldr
LEFT JOIN logpm_distribution_reservation_package AS ldrp ON ldr.id = ldrp.reservation_id LEFT JOIN logpm_distribution_reservation_package AS ldrp ON ldr.id = ldrp.reservation_id
LEFT JOIN logpm_distribution_parcel_list AS ldpl ON ldrp.parce_list_id = ldpl.id LEFT JOIN logpm_distribution_parcel_list AS ldpl ON ldrp.parce_list_id = ldpl.id
LEFT JOIN logpm_distribution_loadscan AS ldl ON ldl.package_id = ldpl.id AND ldl.is_abnormal_loading = 1 AND ldl.scan_status != 1 LEFT JOIN logpm_distribution_loadscan AS ldl ON ldl.package_id = ldpl.id AND ldl.is_abnormal_loading = 1 AND ldl.scan_status != 1 AND ldl.reservation_id = ldr.id
WHERE WHERE
ldrp.packet_bar_status != 2 ldrp.packet_bar_status != 2
AND ldr.id = #{reservationId} AND ldr.id = #{reservationId}

6
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -373,8 +373,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
if (Func.isNotEmpty(s.getStockupArea())) { if (Func.isNotEmpty(s.getStockupArea())) {
goodsArea.add(s.getStockupArea()); goodsArea.add(s.getStockupArea());
} }
}); });
DistributionStockupVO distributionStockupVO = new DistributionStockupVO(); DistributionStockupVO distributionStockupVO = new DistributionStockupVO();
distributionStockupVO.setForkliftName(String.join(",", forkliftName)); distributionStockupVO.setForkliftName(String.join(",", forkliftName));
@ -383,8 +381,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
// distributionStockupVO.setOutboundDate(outboundDate); // distributionStockupVO.setOutboundDate(outboundDate);
distributionDeliveryListVO.setStockupInfo(distributionStockupVO); distributionDeliveryListVO.setStockupInfo(distributionStockupVO);
} else { } else if (distributionStockupVOList.size() == 1){
distributionDeliveryListVO.setStockupInfo(distributionStockupVOList.get(0)); distributionDeliveryListVO.setStockupInfo(distributionStockupVOList.get(0));
}else {
log.info("查询无备货信息");
} }
} else { } else {
DistributionStockupVO deliveryStockupInfo = distributionStockupMapper.getDeliveryStockupInfo(detail.getId()); DistributionStockupVO deliveryStockupInfo = distributionStockupMapper.getDeliveryStockupInfo(detail.getId());

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

@ -255,6 +255,10 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi
); );
} }
if (list.get(0).getCargoNumber().equals(distributionStockListDTO.getCargoNumber())){
log.error("库存品拆包选择目标物料一致:{}",distributionStockListDTO.getCargoNumber());
return false;
}
//没有新增 //没有新增
DistributionStockListEntity distributionStockListEntity = new DistributionStockListEntity(); DistributionStockListEntity distributionStockListEntity = new DistributionStockListEntity();
BeanUtils.copyProperties(list.get(0),distributionStockListEntity); BeanUtils.copyProperties(list.get(0),distributionStockListEntity);

Loading…
Cancel
Save