...
|
...
|
@@ -483,7 +483,8 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
bo.getBrandId(),
|
|
|
bo.getShelveStatus(),
|
|
|
bo.getStorageId(),
|
|
|
bo.getProductCode());
|
|
|
bo.getProductCode(),
|
|
|
bo.getIsSynCalender());
|
|
|
List<ProductResponceBo> boList = new ArrayList<>();
|
|
|
if (count > 0) {
|
|
|
List<Product> productList = productMapper.selectPage(bo.getId(),
|
...
|
...
|
@@ -494,11 +495,15 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
bo.getShelveStatus(),
|
|
|
bo.getStorageId(),
|
|
|
bo.getProductCode(),
|
|
|
bo.getIsSynCalender(),
|
|
|
bo.getStartIndex(),
|
|
|
bo.getRows());
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
productList.forEach(p -> {
|
|
|
ProductResponceBo b = new ProductResponceBo();
|
|
|
BeanUtils.copyProperties(p, b);
|
|
|
b.setOfferPrice(p.getOfferPrice().compareTo(BigDecimal.valueOf(0.00)) == 0 ? "" : "¥"+String.format("%d", p.getOfferPrice().intValue()));
|
|
|
b.setSaleTime((p.getSaleTime() == null || p.getSaleTime() == 0) ? "" : sdf.format(p.getSaleTime() * 1000L));
|
|
|
boList.add(b);
|
|
|
});
|
|
|
List<Integer> productIdList = CollectionUtil.distinct(productList, Product::getId);
|
...
|
...
|
@@ -535,6 +540,7 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
if (brand != null) {
|
|
|
respBo.setBrandName(brand.getBrandName());
|
|
|
}
|
|
|
|
|
|
});
|
|
|
}
|
|
|
PageResponseBO<ProductResponceBo> pageBo = new PageResponseBO<>(count, boList, bo.getPage(), bo.getRows());
|
...
|
...
|
@@ -1138,7 +1144,8 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
null,
|
|
|
null,
|
|
|
null,
|
|
|
bo.getProductCode());
|
|
|
bo.getProductCode(),
|
|
|
null);
|
|
|
List<ProductResponceBo> boList = new ArrayList<>();
|
|
|
if (count > 0) {
|
|
|
List<Product> productList = productMapper.selectPage(bo.getId(),
|
...
|
...
|
@@ -1149,6 +1156,7 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
null,
|
|
|
null,
|
|
|
bo.getProductCode(),
|
|
|
null,
|
|
|
bo.getStartIndex(),
|
|
|
bo.getRows());
|
|
|
List<ProductSales> salesList = productSalesMapper
|
...
|
...
|
|