|
|
@ -2849,10 +2849,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
String waybillNo = loadCarsDTO.getWaybillNo(); |
|
|
|
String waybillNo = loadCarsDTO.getWaybillNo(); |
|
|
|
Integer enterNum = loadCarsDTO.getEnterNum(); |
|
|
|
Integer enterNum = loadCarsDTO.getEnterNum(); |
|
|
|
Long warehouseId = loadCarsDTO.getWarehouseId(); |
|
|
|
Long warehouseId = loadCarsDTO.getWarehouseId(); |
|
|
|
|
|
|
|
Integer incomingType = loadCarsDTO.getIncomingType(); |
|
|
|
|
|
|
|
|
|
|
|
String orders = null; |
|
|
|
String orders = null; |
|
|
|
if (0 == isZero) { |
|
|
|
if (0 == isZero) { |
|
|
|
unloadPackage(loadId, orderPackageCode, warehouseId, 1, "卸分一体 卸车"); |
|
|
|
unloadPackage(loadId, orderPackageCode, warehouseId, 1, "卸分一体 卸车",incomingType); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("trayType", trayType); |
|
|
|
map.put("trayType", trayType); |
|
|
|
map.put("trayCode", trayCode); |
|
|
|
map.put("trayCode", trayCode); |
|
|
@ -3226,6 +3227,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
public R batchUnload(BatchUnloadDTO batchUnloadDTO) { |
|
|
|
public R batchUnload(BatchUnloadDTO batchUnloadDTO) { |
|
|
|
Long loadId = batchUnloadDTO.getLoadId(); |
|
|
|
Long loadId = batchUnloadDTO.getLoadId(); |
|
|
|
Long warehouseId = batchUnloadDTO.getWarehouseId(); |
|
|
|
Long warehouseId = batchUnloadDTO.getWarehouseId(); |
|
|
|
|
|
|
|
Integer incomingType = batchUnloadDTO.getIncomingType(); |
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
if (Objects.isNull(carsLoadEntity)) { |
|
|
|
if (Objects.isNull(carsLoadEntity)) { |
|
|
@ -3245,7 +3247,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
|
|
|
|
|
|
|
|
for (UnloadPackageDTO unloadPackageDTO : unloadPackageList) { |
|
|
|
for (UnloadPackageDTO unloadPackageDTO : unloadPackageList) { |
|
|
|
String orderPackageCode = unloadPackageDTO.getOrderPackageCode(); |
|
|
|
String orderPackageCode = unloadPackageDTO.getOrderPackageCode(); |
|
|
|
unloadPackage(loadId, orderPackageCode, warehouseId, 1, "批量卸车包件正常卸车"); |
|
|
|
unloadPackage(loadId, orderPackageCode, warehouseId, 1, "批量卸车包件正常卸车",incomingType); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -4363,7 +4365,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R unloadPackage(Long loadId, String orderPackageCode, Long warehouseId, Integer unbindTray, String remark) { |
|
|
|
public R unloadPackage(Long loadId, String orderPackageCode, Long warehouseId, Integer unbindTray, String remark,Integer incomingType) { |
|
|
|
log.info("#############unloadPackage: 卸车包件"); |
|
|
|
log.info("#############unloadPackage: 卸车包件"); |
|
|
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.getEntityWarehouseId(warehouseId); |
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.getEntityWarehouseId(warehouseId); |
|
|
@ -4417,6 +4419,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
|
|
|
|
|
|
|
|
InComingDTO inComingDTO = new InComingDTO(); |
|
|
|
InComingDTO inComingDTO = new InComingDTO(); |
|
|
|
inComingDTO.setOrderPackageCode(orderPackageCode); |
|
|
|
inComingDTO.setOrderPackageCode(orderPackageCode); |
|
|
|
|
|
|
|
inComingDTO.setIncomingType(incomingType); |
|
|
|
inComingDTO.setWarehouseId(warehouseId); |
|
|
|
inComingDTO.setWarehouseId(warehouseId); |
|
|
|
inComingService.incomingPackage(inComingDTO); |
|
|
|
inComingService.incomingPackage(inComingDTO); |
|
|
|
// int code = r.getCode();
|
|
|
|
// int code = r.getCode();
|
|
|
@ -5063,7 +5066,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R unloadTray(Long loadId, String trayCode, Long warehouseId) { |
|
|
|
public R unloadTray(Long loadId, String trayCode, Long warehouseId,Integer incomingType) { |
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
if (Objects.isNull(carsLoadEntity)) { |
|
|
|
if (Objects.isNull(carsLoadEntity)) { |
|
|
|
log.warn("###############unloadTray: 配载计划不存在 loadId={}", loadId); |
|
|
|
log.warn("###############unloadTray: 配载计划不存在 loadId={}", loadId); |
|
|
@ -5077,7 +5080,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
String scanCode = carsLoadScanEntity.getScanCode(); |
|
|
|
String scanCode = carsLoadScanEntity.getScanCode(); |
|
|
|
if (type == 1) { |
|
|
|
if (type == 1) { |
|
|
|
//包件
|
|
|
|
//包件
|
|
|
|
unloadPackage(loadId, scanCode, warehouseId, 0, "托盘正常卸车"); |
|
|
|
unloadPackage(loadId, scanCode, warehouseId, 0, "托盘正常卸车",incomingType); |
|
|
|
} else if (type == 2) { |
|
|
|
} else if (type == 2) { |
|
|
|
String waybillNo = carsLoadScanEntity.getWaybillNo(); |
|
|
|
String waybillNo = carsLoadScanEntity.getWaybillNo(); |
|
|
|
Integer num = carsLoadScanEntity.getNum(); |
|
|
|
Integer num = carsLoadScanEntity.getNum(); |
|
|
|