|  |  |  | 
|---|
|  |  |  | return DateUtil.stringToDate("9999-12-31", DateUtil.DATE_FORMAT_DD); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (type == 2 && shoppingGoods.getUseDateNum() == null && StringUtils.isNotBlank(shoppingGoods.getBuyDateUnit())) { | 
|---|
|  |  |  | return DateUtil.stringToDate("9999-12-31", DateUtil.DATE_FORMAT_DD); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (type == 2 && buyDate == null) { | 
|---|
|  |  |  | throw new GlobleException("购买日期不能为空"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | ShoppingGoodsDetailVo goodsDetailVo = new ShoppingGoodsDetailVo(); | 
|---|
|  |  |  | goodsDetailVo.setImg(shoppingGoods.getImg()); | 
|---|
|  |  |  | goodsDetailVo.setGoodsName(shoppingGoods.getName()); | 
|---|
|  |  |  | goodsDetailVo.setGoodsNo(shoppingGoods.getGoodsNo()); | 
|---|
|  |  |  | goodsDetailVo.setGoodsNo(shoppingGoods.getCode()); | 
|---|
|  |  |  | goodsDetailVo.setGoodsType(shoppingGoods.getGoodType()); | 
|---|
|  |  |  | goodsDetailVo.setDesc(shoppingGoods.getDescription()); | 
|---|
|  |  |  | goodsDetailVo.setMaxSaleCnt(shoppingGoods.getCarMaxSaleCount()); | 
|---|