From 8a67f1bc4c8fc31e9b2bb2fc9f22d29aef089be6 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Thu, 27 Jun 2024 13:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/service/Impl/ProductionStockServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java b/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java index 7bbc9fa..5837633 100644 --- a/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java +++ b/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java @@ -221,6 +221,12 @@ public class ProductionStockServiceImpl implements ProductionStockService { saveData.setManufactureDate(getFinalRoll.getManufactureDate()); saveData.setExpiredDate(getFinalRoll.getExpiredDate()); saveData.setEnterBy(sysUserEntity.getUsername()); + if(getFinalRoll.getManufactureDate()==null){ + throw new RuntimeException("该卷soFinalRoll里面没有生产日期请找管理员验证数据!"); + } + if(getFinalRoll.getExpiredDate()==null){ + throw new RuntimeException("该卷soFinalRoll里面没有失效日期请找管理员验证数据!"); + } productionStockMapper.saveIssureCach(saveData); String reStr=""; return reStr;