|  |  |  | 
|---|
|  |  |  | 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()); | 
|---|
|  |  |  | goodsDetailVo.setLimitBuyCnt(shoppingGoods.getCarUseCount().toString()); | 
|---|
|  |  |  | goodsDetailVo.setLimitBuyCnt("否".equals(shoppingGoods.getIsOnce()) ? null : shoppingGoods.getIsOnce()); | 
|---|
|  |  |  | goodsDetailVo.setMaxUseCnt(shoppingGoods.getCarUseCount()); | 
|---|
|  |  |  | goodsDetailVo.setMeasure(shoppingGoods.getMeasure()); | 
|---|
|  |  |  | goodsDetailVo.setVolume(shoppingGoods.getVolume()); | 
|---|
|  |  |  | goodsDetailVo.setSalePrice(BigDecimal.valueOf(shoppingGoods.getSealPice())); | 
|---|