Browse Source

Merge remote-tracking branch 'origin/dev' into pre-production

visual
zhenghaoyu 6 months ago
parent
commit
a6f84809e4
  1. 10
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

10
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.core.exceptions.ExceptionUtil; import cn.hutool.core.exceptions.ExceptionUtil;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
@ -1952,11 +1953,16 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
} }
carsLoadEntity.setCarsLineName(loadLineTitleName); carsLoadEntity.setCarsLineName(loadLineTitleName);
Long lastEndWarehouseId = null;
if(!StringUtil.equals("4",loadType)){
carsLoadEntity.setEndWarehouseIds(endWarehouseIds); carsLoadEntity.setEndWarehouseIds(endWarehouseIds);
carsLoadEntity.setEndWarehouseNames(endWarehouseNames); carsLoadEntity.setEndWarehouseNames(endWarehouseNames);
String[] split = endWarehouseIds.split(","); String[] split = endWarehouseIds.split(",");
int length = split.length; int length = split.length;
Long lastEndWarehouseId = Long.parseLong(split[length - 1]); Long.parseLong(split[length - 1]);
}else{
lastEndWarehouseId = warehouseId;
}
if(lastEndWarehouseId.equals(warehouseId)){ if(lastEndWarehouseId.equals(warehouseId)){
//移除当前仓作为目的仓的装车记录 //移除当前仓作为目的仓的装车记录
QueryWrapper<TrunklineCarsLoadScanEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<TrunklineCarsLoadScanEntity> queryWrapper = new QueryWrapper<>();
@ -3245,7 +3251,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
updateParceNumberList.add(updateNumberEntity); updateParceNumberList.add(updateNumberEntity);
}); });
}else{ }else{
if(enterNum == handQuantity){ if(NumberUtil.equals(enterNum,handQuantity)){
Long finalLoadScanId = loadScanId; Long finalLoadScanId = loadScanId;
parcelListEntities.forEach(entity -> { parcelListEntities.forEach(entity -> {
Long waybillDetailId = entity.getAdvanceId(); Long waybillDetailId = entity.getAdvanceId();

Loading…
Cancel
Save