|
|
|
|
@ -159,7 +159,12 @@ public class ErpProductServiceImpl implements ErpProductService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<ErpProductRespVO> getProductVOListByStatus(Integer status,Integer categoryId) {
|
|
|
|
|
List<ErpProductDO> list = productMapper.selectByCategorys(Collections.singletonList(categoryId));
|
|
|
|
|
|
|
|
|
|
List<Integer> categoryList = new ArrayList<>();
|
|
|
|
|
if(categoryId != null ){
|
|
|
|
|
categoryList.add(categoryId);
|
|
|
|
|
}
|
|
|
|
|
List<ErpProductDO> list = productMapper.selectByCategorys(categoryList);
|
|
|
|
|
return buildProductVOList(list);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
|