刷新可售时间
This commit is contained in:
parent
b3f378f528
commit
cde4185dea
|
|
@ -1,5 +1,6 @@
|
|||
package com.czg.service.product.service.impl;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
|
|
@ -101,8 +102,9 @@ public class UProductServiceImpl extends ServiceImpl<ProductMapper, Product> imp
|
|||
List<ShopProductVo> productList = new ArrayList<>();
|
||||
for (Long productId : productIdList) {
|
||||
ShopProductVo product = productKv.get(productId);
|
||||
ShopProductVo prod = BeanUtil.copyProperties(product, ShopProductVo.class);
|
||||
if (product != null) {
|
||||
productList.add(product);
|
||||
productList.add(prod);
|
||||
}
|
||||
}
|
||||
// 1-价格从高到低; 2-价格从低到高; 3-销量由高到低;4-销量由低到高;
|
||||
|
|
|
|||
Loading…
Reference in New Issue