Browse Source

更新 'src/main/java/cn/efunbox/audio/vo/hag/ProductConverter.java'

xushengqiang 5 years ago
parent
commit
10935eee14
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/main/java/cn/efunbox/audio/vo/hag/ProductConverter.java

+ 6 - 2
src/main/java/cn/efunbox/audio/vo/hag/ProductConverter.java

@@ -37,14 +37,18 @@ public class ProductConverter {
 
 
         ProductVO.Price productPrice = new ProductVO.Price();
         ProductVO.Price productPrice = new ProductVO.Price();
 
 
-        ProductVO.Price.TimeFilter timeFilter = new ProductVO.Price.TimeFilter();
+       if (Objects.nonNull(product.getBeginTime())) {
+          ProductVO.Price.TimeFilter timeFilter = new ProductVO.Price.TimeFilter();
         timeFilter.setBeginTime(product.getBeginTime());
         timeFilter.setBeginTime(product.getBeginTime());
         timeFilter.setEndTime(product.getEndTime());
         timeFilter.setEndTime(product.getEndTime());
+         productPrice.setTimeFilter(timeFilter);
+      }
+       
 
 
         productPrice.setCurrency(product.getCurrency());
         productPrice.setCurrency(product.getCurrency());
         productPrice.setPromotion(product.getPromotion());
         productPrice.setPromotion(product.getPromotion());
         productPrice.setPriceGroupDescription(product.getPriceGroupDescription());
         productPrice.setPriceGroupDescription(product.getPriceGroupDescription());
-        productPrice.setTimeFilter(timeFilter);
+        
 
 
         ProductVO.Price.PriceItem priceItem = new ProductVO.Price.PriceItem();
         ProductVO.Price.PriceItem priceItem = new ProductVO.Price.PriceItem();
         priceItem.setAmount(product.getAmount());
         priceItem.setAmount(product.getAmount());