From 1386a8657ec42cd3baf6bde8b1506f52c910f0e1 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 17 Mar 2023 12:29:45 +0800 Subject: [PATCH] 20220516 --- zq-erp/src/main/java/com/matrix/system/hive/service/imp/ShoppingGoodsServiceImpl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/hive/service/imp/ShoppingGoodsServiceImpl.java b/zq-erp/src/main/java/com/matrix/system/hive/service/imp/ShoppingGoodsServiceImpl.java index cc5e2ae..73b7c72 100644 --- a/zq-erp/src/main/java/com/matrix/system/hive/service/imp/ShoppingGoodsServiceImpl.java +++ b/zq-erp/src/main/java/com/matrix/system/hive/service/imp/ShoppingGoodsServiceImpl.java @@ -456,12 +456,12 @@ return DateUtil.stringToDate("2099-12-31", DateUtil.DATE_FORMAT_DD); } - if (type == 2 && buyDate == null) { - throw new GlobleException("购买日期不能为空"); - } +// if (type == 2 && buyDate == null) { +// throw new GlobleException("购买日期不能为空"); +// } Date target = null; - Date buyValidDate = null; + Date buyValidDate = DateUtil.stringToDate("2099-12-31", DateUtil.DATE_FORMAT_DD);; if (type == 1) { if (shoppingGoods.getBuyDateNum() != null && StrUtil.isNotBlank(shoppingGoods.getBuyDateUnit())) { buyValidDate = DateUtil.calDate(shoppingGoods.getBuyDateNum(), shoppingGoods.getBuyDateUnit()); -- Gitblit v1.9.1