|
@@ -1,6 +1,8 @@
|
|
|
package com.zcxk.rmcp.web.service.impl;
|
|
|
|
|
|
import com.zcxk.rmcp.api.dto.ProductVo;
|
|
|
+import com.zcxk.rmcp.api.vo.ProductCategoryVo;
|
|
|
+import com.zcxk.rmcp.core.dao.ProductCategoryMapper;
|
|
|
import com.zcxk.rmcp.web.service.ProductService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import javax.annotation.Resource;
|
|
@@ -8,7 +10,6 @@ import com.zcxk.rmcp.core.dao.ProductMapper;
|
|
|
import com.zcxk.rmcp.core.entity.Product;
|
|
|
|
|
|
import java.util.List;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
import static com.google.common.collect.Lists.newArrayList;
|
|
|
|
|
@@ -22,6 +23,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
|
|
|
@Resource
|
|
|
private ProductMapper productMapper;
|
|
|
+ @Resource
|
|
|
+ private ProductCategoryMapper productCategoryMapper;
|
|
|
|
|
|
@Override
|
|
|
public int insertSelective(Product record) {
|
|
@@ -48,5 +51,10 @@ public class ProductServiceImpl implements ProductService {
|
|
|
return productMapper.findList(categoryId);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<ProductCategoryVo> getCategoryList() {
|
|
|
+ return productCategoryMapper.queryList();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|