加入队列分润逻辑

This commit is contained in:
2024-11-07 18:07:14 +08:00
parent aea65c9782
commit a4c54b16c8
16 changed files with 669 additions and 668 deletions

View File

@@ -24,6 +24,13 @@ public class PmsProductParam extends PmsProduct{
@ApiModelProperty("优选专区和商品的关系")
private List<CmsPrefrenceAreaProductRelation> prefrenceAreaProductRelationList;
public List<Long> productCategoryId;
public void setProductCategoryId(List<Long> productCategoryId) {
this.productCategoryId = productCategoryId;
}
public List<PmsProductLadder> getProductLadderList() {
return productLadderList;
}

View File

@@ -76,7 +76,7 @@ public class PmsProductServiceImpl implements PmsProductService {
PmsProduct product = productParam;
product.setId(null);
product.setVerifyStatus(1);
PmsProductCategory productCategory = productCategoryMapper.selectByPrimaryKey(product.getProductCategoryId());
PmsProductCategory productCategory = productCategoryMapper.selectByPrimaryKey( productParam.productCategoryId.get(0));
product.setProductCategoryName(productCategory.getName());
productMapper.insertSelective(product);
//根据促销类型设置价格:、阶梯价格、满减价格
@@ -134,7 +134,7 @@ public class PmsProductServiceImpl implements PmsProductService {
PmsProduct product = productParam;
product.setId(id);
product.setVerifyStatus(1);
PmsProductCategory productCategory = productCategoryMapper.selectByPrimaryKey(product.getProductCategoryId());
PmsProductCategory productCategory = productCategoryMapper.selectByPrimaryKey(productParam.productCategoryId.get(0));
product.setProductCategoryName(productCategory.getName());
productMapper.updateByPrimaryKeySelective(product);
//会员价格