|
|
|
@ -204,7 +204,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
//添加库存品数据
|
|
|
|
|
DistributionStockupEntity stockupEntity = distributionStockupService.selectById(s); |
|
|
|
|
if (stockupEntity.getTypeService().equals("3")) { |
|
|
|
|
//自提
|
|
|
|
|
//自提 添加库存平信息
|
|
|
|
|
List<DistributionStockListSelfNumVO> distributionStockListSelfNumVOS = distributionStockupInfoService.selectStockListSelfNum(s); |
|
|
|
|
|
|
|
|
|
if (!distributionStockListSelfNumVOS.isEmpty()) { |
|
|
|
@ -748,15 +748,15 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
y.setScanNum(y.getScanNum()+i2); |
|
|
|
|
} |
|
|
|
|
//t托盘信息
|
|
|
|
|
if(ObjectUtils.isNotNull(y.getTrayId()) && ObjectUtils.isNotNull(i.getTrayId()) && !y.getTrayId().equals(i.getTrayId())){ |
|
|
|
|
if(ObjectUtils.isNotNull(y.getTrayId()) && ObjectUtils.isNotNull(i.getTrayId()) && !y.getTrayId().contains(i.getTrayId())){ |
|
|
|
|
y.setPallet(y.getPallet()+","+i.getPallet()); |
|
|
|
|
} |
|
|
|
|
//订单自编号信息
|
|
|
|
|
if(ObjectUtils.isNotNull(y.getOrderCode()) && !y.getOrderCode().equals(i.getOrderCode())){ |
|
|
|
|
if(ObjectUtils.isNotNull(y.getOrderCode()) && !y.getOrderCode().contains(i.getOrderCode())){ |
|
|
|
|
y.setOrderCode(y.getOrderCode()+","+i.getOrderCode()); |
|
|
|
|
} |
|
|
|
|
//订单Id信息
|
|
|
|
|
if(ObjectUtils.isNotNull(y.getStockArticleId()) && !y.getStockArticleId().equals(i.getStockArticleId())){ |
|
|
|
|
if(ObjectUtils.isNotNull(y.getStockArticleId()) && !y.getStockArticleId().contains(i.getStockArticleId())){ |
|
|
|
|
y.setStockArticleId(y.getStockArticleId()+","+i.getStockArticleId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -819,15 +819,15 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
wu.setScanNum(wu.getScanNum()+i2); |
|
|
|
|
} |
|
|
|
|
//托盘信息
|
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrayId()) && !wu.getTrayId().equals(i.getTrayId())){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrayId()) && !wu.getTrayId().contains(i.getTrayId())){ |
|
|
|
|
wu.setPallet(wu.getPallet()+","+i.getPallet()); |
|
|
|
|
} |
|
|
|
|
//订单自编号信息
|
|
|
|
|
if(ObjectUtils.isNotNull(i.getOrderCode()) && !wu.getOrderCode().equals(i.getOrderCode())){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getOrderCode()) && !wu.getOrderCode().contains(i.getOrderCode())){ |
|
|
|
|
wu.setOrderCode(wu.getOrderCode()+","+i.getOrderCode()); |
|
|
|
|
} |
|
|
|
|
//订单ID信息
|
|
|
|
|
if(ObjectUtils.isNotNull(wu.getStockArticleId()) && !wu.getStockArticleId().equals(i.getStockArticleId())){ |
|
|
|
|
if(ObjectUtils.isNotNull(wu.getStockArticleId()) && !wu.getStockArticleId().contains(i.getStockArticleId())){ |
|
|
|
|
wu.setStockArticleId(wu.getStockArticleId()+","+i.getStockArticleId()); |
|
|
|
|
} |
|
|
|
|
if(wu.getPlanNum().equals(wu.getScanNum())){ |
|
|
|
@ -870,7 +870,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
wu.setScanNum(wu.getScanNum()+i2); |
|
|
|
|
} |
|
|
|
|
//托盘信息
|
|
|
|
|
if( ObjectUtils.isNotNull(i.getTrayId()) && !wu.getTrayId().equals(i.getTrayId())){ |
|
|
|
|
if( ObjectUtils.isNotNull(i.getPallet()) && !wu.getPallet().contains(i.getPallet())){ |
|
|
|
|
wu.setPallet(wu.getPallet()+","+i.getPallet()); |
|
|
|
|
} |
|
|
|
|
//订单自编号信息
|
|
|
|
@ -1290,14 +1290,14 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getConsignee())){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockupSelfVO.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockupSelfVO.getConsignee().contains(i.getConsignee()) ){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(distributionStockupSelfVO.getConsignee()+","+i.getConsignee()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockupSelfVO.getTrays().equals(i.getTrays())){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockupSelfVO.getTrays().contains(i.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(distributionStockupSelfVO.getTrays()+","+i.getTrays()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1312,14 +1312,14 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getConsignee())){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockupSelfVO.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockupSelfVO.getConsignee().contains(i.getConsignee()) ){ |
|
|
|
|
distributionStockupSelfVO.setConsignee(distributionStockupSelfVO.getConsignee()+","+i.getConsignee()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(ObjectUtils.isNull(distributionStockupSelfVO.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockupSelfVO.getTrays().equals(i.getTrays())){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockupSelfVO.getTrays().contains(i.getTrays())){ |
|
|
|
|
distributionStockupSelfVO.setTrays(distributionStockupSelfVO.getTrays()+","+i.getTrays()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1390,7 +1390,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getConsignee())){ |
|
|
|
|
distributionStockup.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockup.getConsignee()) && !distributionStockup.getConsignee().equals(i.getConsignee())){ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockup.getConsignee()) && !distributionStockup.getConsignee().contains(i.getConsignee())){ |
|
|
|
|
String s = distributionStockup.getConsignee() + i.getConsignee(); |
|
|
|
|
distributionStockup.setConsignee(s); |
|
|
|
|
} |
|
|
|
@ -1398,7 +1398,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getTrays()) ){ |
|
|
|
|
distributionStockup.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockup.getTrays()) && !distributionStockup.getTrays().equals(i.getTrays())){ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockup.getTrays()) && !distributionStockup.getTrays().contains(i.getTrays())){ |
|
|
|
|
String s = distributionStockup.getTrays() + i.getTrays(); |
|
|
|
|
distributionStockup.setTrays(s); |
|
|
|
|
} |
|
|
|
@ -1406,7 +1406,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getWarehouseArea()) ){ |
|
|
|
|
distributionStockup.setWarehouseArea(i.getWarehouseArea()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockup.getWarehouseArea()) && !distributionStockup.getWarehouseArea().equals(i.getWarehouseArea())){ |
|
|
|
|
if(ObjectUtils.isNotNull(distributionStockup.getWarehouseArea()) && !distributionStockup.getWarehouseArea().contains(i.getWarehouseArea())){ |
|
|
|
|
String s = distributionStockup.getWarehouseArea() + i.getWarehouseArea(); |
|
|
|
|
distributionStockup.setWarehouseArea(s); |
|
|
|
|
} |
|
|
|
@ -1426,7 +1426,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getConsignee())){ |
|
|
|
|
distributionStockup.setConsignee(i.getConsignee()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockup.getConsignee().equals(i.getConsignee()) ){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getConsignee()) && !distributionStockup.getConsignee().contains(i.getConsignee()) ){ |
|
|
|
|
String s = distributionStockup.getConsignee() + i.getConsignee(); |
|
|
|
|
distributionStockup.setConsignee(s); |
|
|
|
|
} |
|
|
|
@ -1434,7 +1434,7 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if(ObjectUtils.isNull(distributionStockup.getTrays())){ |
|
|
|
|
distributionStockup.setTrays(i.getTrays()); |
|
|
|
|
}else{ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockup.getTrays().equals(i.getTrays())){ |
|
|
|
|
if(ObjectUtils.isNotNull(i.getTrays()) && !distributionStockup.getTrays().contains(i.getTrays())){ |
|
|
|
|
String s = distributionStockup.getTrays() +","+ i.getTrays(); |
|
|
|
|
distributionStockup.setTrays(s); |
|
|
|
|
} |
|
|
|
|