热门状态过滤
This commit is contained in:
parent
3a5fd299fe
commit
cfcdd24c8d
|
|
@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/goods/goods")
|
||||
|
|
@ -75,6 +76,7 @@ public class GoodsController extends BaseController {
|
|||
|
||||
startPage();
|
||||
List<Goods> list = goodsService.selectByCategoryIds(ids);
|
||||
list = list.stream().filter(x -> x.getStatus() == 0).collect(Collectors.toList());
|
||||
list.forEach(one -> {
|
||||
// 补全商品图片信息
|
||||
List<GoodsImgs> goodsImgs = goodsImgsService.selectByGoodsId(one.getGoodsId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue