|
|
|
@ -28,6 +28,7 @@ import co.yixiang.enums.SpecTypeEnum;
|
|
|
|
|
import co.yixiang.exception.BadRequestException; |
|
|
|
|
import co.yixiang.exception.ErrorRequestException; |
|
|
|
|
import co.yixiang.modules.category.service.YxStoreCategoryService; |
|
|
|
|
import co.yixiang.modules.store.service.YxStoreBrandService; |
|
|
|
|
import co.yixiang.modules.product.domain.YxStoreProduct; |
|
|
|
|
import co.yixiang.modules.product.domain.YxStoreProductAttrValue; |
|
|
|
|
import co.yixiang.modules.product.domain.YxStoreProductRelation; |
|
|
|
@ -51,6 +52,7 @@ import co.yixiang.modules.product.vo.YxStoreProductQueryVo;
|
|
|
|
|
import co.yixiang.modules.product.vo.YxStoreProductReplyQueryVo; |
|
|
|
|
import co.yixiang.modules.shop.service.YxSystemConfigService; |
|
|
|
|
import co.yixiang.modules.shop.service.YxSystemStoreService; |
|
|
|
|
import co.yixiang.modules.store.service.YxStoreBrandService; |
|
|
|
|
import co.yixiang.modules.template.domain.YxShippingTemplates; |
|
|
|
|
import co.yixiang.modules.template.service.YxShippingTemplatesService; |
|
|
|
|
import co.yixiang.modules.user.service.YxUserService; |
|
|
|
@ -90,6 +92,9 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
|
|
|
|
|
private StoreProductMapper storeProductMapper; |
|
|
|
|
@Autowired |
|
|
|
|
private YxStoreCategoryService yxStoreCategoryService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private YxStoreBrandService yxStoreBrandService; |
|
|
|
|
@Autowired |
|
|
|
|
private YxStoreProductAttrService yxStoreProductAttrService; |
|
|
|
|
@Autowired |
|
|
|
@ -463,7 +468,10 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
|
|
|
|
|
public List<YxStoreProduct> queryAll(YxStoreProductQueryCriteria criteria) { |
|
|
|
|
List<YxStoreProduct> yxStoreProductList = baseMapper.selectList(QueryHelpPlus.getPredicate(YxStoreProduct.class, criteria)); |
|
|
|
|
yxStoreProductList.forEach(yxStoreProduct -> { |
|
|
|
|
//商品分类id
|
|
|
|
|
yxStoreProduct.setStoreCategory(yxStoreCategoryService.getById(yxStoreProduct.getCateId())); |
|
|
|
|
//商品品牌id
|
|
|
|
|
yxStoreProduct.setStoreBrand(yxStoreBrandService.getById(yxStoreProduct.getBrandId())); |
|
|
|
|
}); |
|
|
|
|
return yxStoreProductList; |
|
|
|
|
} |
|
|
|
|