|
@@ -39,6 +39,10 @@ public class ProductService {
|
|
|
@Resource
|
|
@Resource
|
|
|
private PpointService ppointService;
|
|
private PpointService ppointService;
|
|
|
|
|
|
|
|
|
|
+ public Product getById(Long id) {
|
|
|
|
|
+ return productMapper.selectById(id);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public Result<Map<String, Object>> list(ProductListQueryDTO query, Long userId) {
|
|
public Result<Map<String, Object>> list(ProductListQueryDTO query, Long userId) {
|
|
|
Page<Product> page = new Page<>(query.getPage(), query.getSize());
|
|
Page<Product> page = new Page<>(query.getPage(), query.getSize());
|
|
|
LambdaQueryWrapper<Product> wrapper = new LambdaQueryWrapper<Product>()
|
|
LambdaQueryWrapper<Product> wrapper = new LambdaQueryWrapper<Product>()
|