Browse Source

fix: 修复代码 自提备货页面 null指针异常的问题

pull/7/head
pref_mail@163.com 10 months ago
parent
commit
d882277dd2
  1. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java

@ -862,22 +862,22 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl<Distribution
if (Func.isNotEmpty(i.getPallet())){
//托盘信息
if (ObjectUtils.isNotNull(i.getPallet()) && !wu.getPallet().contains(i.getPallet())) {
if (ObjectUtils.isNotNull(i.getPallet()) && ObjectUtils.isNotNull(wu.getPallet()) && !wu.getPallet().contains(i.getPallet())) {
wu.setPallet(wu.getPallet() + "," + i.getPallet());
}
}
if (Func.isNotEmpty(i.getTrayId())){
//托盘信息
if (ObjectUtils.isNotNull(i.getTrayId()) && !wu.getTrayId().contains(i.getTrayId())) {
if (ObjectUtils.isNotNull(i.getTrayId()) && ObjectUtils.isNotNull(wu.getTrayId())&& !wu.getTrayId().contains(i.getTrayId())) {
wu.setTrayId(wu.getTrayId() + "," + i.getTrayId());
}
}
//订单自编号信息
if (ObjectUtils.isNotNull(i.getOrderCode()) && !wu.getOrderCode().contains(i.getOrderCode())) {
if (ObjectUtils.isNotNull(i.getOrderCode()) && ObjectUtils.isNotNull(wu.getOrderCode())&&!wu.getOrderCode().contains(i.getOrderCode())) {
wu.setOrderCode(wu.getOrderCode() + "," + i.getOrderCode());
}
//订单id信息
if (ObjectUtils.isNotNull(wu.getStockArticleId()) && !wu.getStockArticleId().contains(i.getStockArticleId())) {
if (ObjectUtils.isNotNull(wu.getStockArticleId()) && ObjectUtils.isNotNull(wu.getStockArticleId())&&!wu.getStockArticleId().contains(i.getStockArticleId())) {
wu.setStockArticleId(wu.getStockArticleId() + "," + i.getStockArticleId());
}
if (wu.getPlanNum().equals(wu.getScanNum())) {

Loading…
Cancel
Save