| | |
| | | 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()); |