|
@@ -86,6 +86,8 @@ public class PmsPortalProductServiceImpl implements PmsPortalProductService {
|
|
|
example.setOrderByClause("price asc");
|
|
|
} else if (sort == 4) {
|
|
|
example.setOrderByClause("price desc");
|
|
|
+ } else {
|
|
|
+ example.setOrderByClause("sort desc");
|
|
|
}
|
|
|
List<PmsProduct> pmsProducts = productMapper.selectByExample(example);
|
|
|
List<Long> productIdList = pmsProducts.stream().map(PmsProduct::getId).collect(Collectors.toList());
|