diff --git a/src/main/java/com/gaotao/modules/production/service/impl/ProductionReturnServiceImpl.java b/src/main/java/com/gaotao/modules/production/service/impl/ProductionReturnServiceImpl.java index b70f5cc..5ecaaaa 100644 --- a/src/main/java/com/gaotao/modules/production/service/impl/ProductionReturnServiceImpl.java +++ b/src/main/java/com/gaotao/modules/production/service/impl/ProductionReturnServiceImpl.java @@ -574,7 +574,16 @@ public class ProductionReturnServiceImpl implements ProductionReturnService { if(onunit == null){ partInStock = ifsApiIssueAndReturnService.getAnInventoryPartInStock(request.getSite(), request.getPartNo()); if(partInStock == null || partInStock.size() == 0){ - throw new Exception("无法获取物料信息"); + //throw new Exception("无法获取物料信息"); + //todo 目前一些物料没有入库信息,所以使用当前时间作为入库时间 + newReceiveDate = new Date(); + newManufactureDate = new Date(); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(new Date()); + calendar.add(Calendar.YEAR, 2); + Date datePlusTwoYears = calendar.getTime(); + newExpireData = datePlusTwoYears; + newEngChgLevel = "1"; }else{ newReceiveDate = sdf.parse(partInStock.get(0).getReceiptDate()); newManufactureDate = sdf.parse(partInStock.get(0).getReceiptDate());