Browse Source

1.修复客户管理 服务仓管理 无法删除 和编辑bug

dist.1.3.0
pref_mail@163.com 7 months ago
parent
commit
77ffb04602
  1. 8
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStorageServicesServiceImpl.java
  2. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

8
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStorageServicesServiceImpl.java

@ -80,9 +80,13 @@ public class BasicdataStorageServicesServiceImpl extends BaseServiceImpl<Basicda
// 获取仓库名称
BasicdataWarehouseEntity sendBasicdataWarehouseEntity = basicdataWarehouseService.getById(basicdataStorageServices.getSendWarehouseId());
basicdataStorageServices.setSendWarehouseName(sendBasicdataWarehouseEntity.getName());
if(sendBasicdataWarehouseEntity!=null){
basicdataStorageServices.setSendWarehouseName(sendBasicdataWarehouseEntity.getName());
}
BasicdataWarehouseEntity serveBasicdataWarehouseEntity = basicdataWarehouseService.getById(basicdataStorageServices.getServeWarehouseId());
basicdataStorageServices.setServeWarehouseName(serveBasicdataWarehouseEntity.getName());
if(serveBasicdataWarehouseEntity!=null){
basicdataStorageServices.setServeWarehouseName(serveBasicdataWarehouseEntity.getName());
}
this.updateById(basicdataStorageServices);
return true;
}else{

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

@ -3259,6 +3259,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
reservationPackageEntity.setParceListId(p.getId());
// 对当前保存的包件再次进行验证
boolean isExit = checkList(list,reservationEntity.getId(),reservationStockarticleEntity.getStockArticleId(),p.getOrderPackageCode());
log.info(">>>>> 修改计划 验证包件是否存在 {}",isExit);
if(!isExit){
distributionReservationPackageService.save(reservationPackageEntity);
distributionAsyncService.checkStockArticleReservationStatus(p);
@ -3268,15 +3269,18 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
JSONObject jsonObject = getJsonObject(deliveryListEntity, reservationEntity, reservationPackageEntity.getPacketBarCode());
pushDatas.add(jsonObject);
logs.add(js);
//包件数量累加
packageNum.getAndAdd(p.getQuantity());
}
} else {
//依然存在包件,
oldPackageList.remove(p.getOrderPackageCode());
//包件数量累加
packageNum.getAndAdd(p.getQuantity());
}
//包件数量累加
packageNum.getAndAdd(p.getQuantity());
});
//进行取消包件的数据清理
if (!oldPackageList.isEmpty()) {

Loading…
Cancel
Save