...
|
...
|
@@ -21,7 +21,7 @@ import org.springframework.stereotype.Service; |
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohoufo.product.request.StoragePriceBo;
|
|
|
import com.yohoufo.product.service.ProductService;
|
|
|
import com.yohoufo.resource.util.DateUtils;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
|
...
|
...
|
@@ -63,7 +63,7 @@ public class ProductServiceImpl implements ProductService{ |
|
|
productInfo.setProductId(product.getId());
|
|
|
productInfo.setProductName(product.getProductName());
|
|
|
productInfo.setProductCode(product.getProductCode());
|
|
|
productInfo.setSaleTime((product.getSaleTime() == null || product.getSaleTime().equals(0)) ? "0" : DateUtils.getDateString(product.getSaleTime(), DateUtils.FOMART_DATE_DOT));
|
|
|
productInfo.setSaleTime((product.getSaleTime() == null || product.getSaleTime().equals(0)) ? "0" : DateUtil.getDateString(product.getSaleTime(), DateUtil.YYYY_MM_DD_DOT));
|
|
|
productInfo.setLeastPrice(new BigDecimal(0));
|
|
|
setBrand(productInfo, product.getBrandId());
|
|
|
setSeries(productInfo, product.getSeriesId());
|
...
|
...
|
|