加入队列分润逻辑
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
//会员价格
|
||||
|
||||
Reference in New Issue
Block a user