|
|
@ -96,7 +96,7 @@ public class OtherInboundServiceImpl implements OtherInboundService { |
|
|
ifsDto.setIfsSerialNo("*"); |
|
|
ifsDto.setIfsSerialNo("*"); |
|
|
ifsDto.setIfsWdrNo(detail.getWdrNo()); |
|
|
ifsDto.setIfsWdrNo(detail.getWdrNo()); |
|
|
ifsDto.setIfsEngChgLevel("1"); |
|
|
ifsDto.setIfsEngChgLevel("1"); |
|
|
ifsDto.setIfsHandlingUntitID(BigDecimal.ZERO); |
|
|
|
|
|
|
|
|
ifsDto.setIfsHandlingUnitID(BigDecimal.ZERO); |
|
|
ifsDto.setIfsQuantity(detail.getTransQty()); |
|
|
ifsDto.setIfsQuantity(detail.getTransQty()); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
@ -155,7 +155,7 @@ public class OtherInboundServiceImpl implements OtherInboundService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 检查HandlingUnit状态 |
|
|
// 检查HandlingUnit状态 |
|
|
if (!"AVAILABLE".equals(hu.getStatus()) && !"A".equals(hu.getStatusDb())) { |
|
|
|
|
|
|
|
|
if (!"X".equals(hu.getInStockFlag())) { |
|
|
throw new XJException("HandlingUnit状态不可用: " + unitId); |
|
|
throw new XJException("HandlingUnit状态不可用: " + unitId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -195,7 +195,7 @@ public class OtherInboundServiceImpl implements OtherInboundService { |
|
|
subDto.setLocationId(dto.getTargetLocationId()); // 使用目标库位 |
|
|
subDto.setLocationId(dto.getTargetLocationId()); // 使用目标库位 |
|
|
subDto.setTransQty(hu.getQty().toString()); |
|
|
subDto.setTransQty(hu.getQty().toString()); |
|
|
subDto.setDirection("+"); // 入库方向 |
|
|
subDto.setDirection("+"); // 入库方向 |
|
|
subDto.setWdrNo("*"); |
|
|
|
|
|
|
|
|
subDto.setWdrNo(hu.getWdr() == null ? "*" : hu.getWdr()); |
|
|
|
|
|
|
|
|
subList.add(subDto); |
|
|
subList.add(subDto); |
|
|
} |
|
|
} |
|
|
@ -238,6 +238,7 @@ public class OtherInboundServiceImpl implements OtherInboundService { |
|
|
List<TransDetailSub> detailSubs = new ArrayList<>(); |
|
|
List<TransDetailSub> detailSubs = new ArrayList<>(); |
|
|
|
|
|
|
|
|
//保存sub |
|
|
//保存sub |
|
|
|
|
|
double seqNo = 1.0; |
|
|
for (OtherInboundTransSubDto subDto : dto.getSubList()){ |
|
|
for (OtherInboundTransSubDto subDto : dto.getSubList()){ |
|
|
TransDetailSub detailSub = new TransDetailSub(); |
|
|
TransDetailSub detailSub = new TransDetailSub(); |
|
|
detailSub.setSite(dto.getSite()); |
|
|
detailSub.setSite(dto.getSite()); |
|
|
@ -251,6 +252,7 @@ public class OtherInboundServiceImpl implements OtherInboundService { |
|
|
detailSub.setLocationId(subDto.getLocationId()); |
|
|
detailSub.setLocationId(subDto.getLocationId()); |
|
|
detailSub.setOrderRef3(subDto.getWdrNo()); |
|
|
detailSub.setOrderRef3(subDto.getWdrNo()); |
|
|
detailSub.setOrderRef4(subDto.getWarehouseId()); |
|
|
detailSub.setOrderRef4(subDto.getWarehouseId()); |
|
|
|
|
|
detailSub.setSeqNo(seqNo++); |
|
|
|
|
|
|
|
|
// 更新HandlingUnit状态 |
|
|
// 更新HandlingUnit状态 |
|
|
HandlingUnit handlingUnit = handlingUnitService.lambdaQuery() |
|
|
HandlingUnit handlingUnit = handlingUnitService.lambdaQuery() |
|
|
|