|
|
|
@ -19,7 +19,6 @@ import org.springblade.common.enums.BizOperationEnums;
|
|
|
|
|
import org.springblade.common.enums.PackageTypeEnums; |
|
|
|
|
import org.springblade.common.model.NodeFanoutMsg; |
|
|
|
|
import org.springblade.common.model.PackageData; |
|
|
|
|
import org.springblade.common.model.ReservationVO; |
|
|
|
|
import org.springblade.common.model.StockUpVO; |
|
|
|
|
import org.springframework.amqp.core.ExchangeTypes; |
|
|
|
|
import org.springframework.amqp.rabbit.annotation.Exchange; |
|
|
|
@ -64,8 +63,7 @@ public class StockReportListener {
|
|
|
|
|
StockUpVO vo = JSONUtil.toBean(entries, StockUpVO.class); |
|
|
|
|
Long warehouseId = bean.getWarehouseId(); |
|
|
|
|
BizOperationEnums bizOperation = bean.getBizOperation(); |
|
|
|
|
ReservationVO reservationVO = vo.getReservationVO(); |
|
|
|
|
List<PackageData> details = reservationVO.getPackageDataList(); |
|
|
|
|
List<PackageData> details = vo.getPackageDataList(); |
|
|
|
|
if (CollUtil.isNotEmpty(details)) { |
|
|
|
|
for (PackageData detail : details) { |
|
|
|
|
QualityDeliverEntity qualityDeliverEntity = QualityDeliverEntity.builder() |
|
|
|
@ -93,7 +91,7 @@ public class StockReportListener {
|
|
|
|
|
sendReport(qualityDeliverEntity); |
|
|
|
|
} |
|
|
|
|
} else if (ObjectUtil.equals(detail.getPackageType(), PackageTypeEnums.INV)) { |
|
|
|
|
qualityDeliverEntity.setPlanReservationCode(reservationVO.getReservationCode()); |
|
|
|
|
qualityDeliverEntity.setPlanReservationCode(vo.getReferenceCode()); |
|
|
|
|
qualityDeliverEntity.setIncomingBatch(detail.getPickupBatch()); |
|
|
|
|
qualityDeliverEntity.setMallName(detail.getMallName()); |
|
|
|
|
qualityDeliverEntity.setMaterielCode(detail.getMaterialCode()); |
|
|
|
|