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;