|
|
|
@ -2196,19 +2196,20 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
case 1: |
|
|
|
|
//订单
|
|
|
|
|
String orderCode = stockupDTO.getOrderCode(); |
|
|
|
|
QueryWrapper<DistributionStockEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
if (stockupDTO.getOrderCode().contains(",")) { |
|
|
|
|
stockupDTO.setOrderCodeList(stockupDTO.getOrderCode().split(",")); |
|
|
|
|
queryWrapper.in("order_self_numbering", stockupDTO.getOrderCodeList()); |
|
|
|
|
stockupDTO.setOrderCode(null); |
|
|
|
|
} else { |
|
|
|
|
queryWrapper.eq("order_self_numbering", orderCode); |
|
|
|
|
} |
|
|
|
|
// QueryWrapper<DistributionStockEntity> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
// if (stockupDTO.getOrderCode().contains(",")) {
|
|
|
|
|
// stockupDTO.setOrderCodeList(stockupDTO.getOrderCode().split(","));
|
|
|
|
|
// queryWrapper.in("order_self_numbering", stockupDTO.getOrderCodeList());
|
|
|
|
|
// stockupDTO.setOrderCode(null);
|
|
|
|
|
// } else {
|
|
|
|
|
// queryWrapper.eq("order_self_numbering", orderCode);
|
|
|
|
|
// }
|
|
|
|
|
String packetBarCode = stockupDTO.getPacketBarCode(); |
|
|
|
|
Integer integer = baseMapper.selectPackageExist(stockupDTO); |
|
|
|
|
//查询包件信息
|
|
|
|
|
if (ObjectUtils.isNotNull(integer) && integer > 0) { |
|
|
|
|
//存在
|
|
|
|
|
QueryWrapper<DistributionStockEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.eq("coding", packetBarCode); |
|
|
|
|
queryWrapper.eq("stockup_id", stockupId); |
|
|
|
|
queryWrapper.eq("reservation_id", reservationId); |
|
|
|
|