From 01ab58611c6a084908434f609939dc5718084ad7 Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Thu, 4 Dec 2025 10:35:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ProductionReturnServiceImpl.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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());