xiaoyong931011
2023-03-17 1386a8657ec42cd3baf6bde8b1506f52c910f0e1
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());