master
parent
14a88e2b13
commit
e7f7dcfe92
@ -0,0 +1,30 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.dto.PmsBrandParam;
|
||||
import com.macro.mall.model.PmsBrand;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ÉÌÆ·Æ·ÅÆService
|
||||
*/
|
||||
public interface PmsBrandService {
|
||||
List<PmsBrand> listAllBrand();
|
||||
|
||||
int createBrand(PmsBrandParam pmsBrandParam);
|
||||
@Transactional
|
||||
int updateBrand(Long id, PmsBrandParam pmsBrandParam);
|
||||
|
||||
int deleteBrand(Long id);
|
||||
|
||||
int deleteBrand(List<Long> ids);
|
||||
|
||||
List<PmsBrand> listBrand(String keyword, int pageNum, int pageSize);
|
||||
|
||||
PmsBrand getBrand(Long id);
|
||||
|
||||
int updateShowStatus(List<Long> ids, Integer showStatus);
|
||||
|
||||
int updateFactoryStatus(List<Long> ids, Integer factoryStatus);
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.dto.PmsProductAttributeCategoryItem;
|
||||
import com.macro.mall.model.PmsProductAttributeCategory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ÉÌÆ·ÊôÐÔ·ÖÀàService
|
||||
*/
|
||||
public interface PmsProductAttributeCategoryService {
|
||||
int create(String name);
|
||||
|
||||
int update(Long id, String name);
|
||||
|
||||
int delete(Long id);
|
||||
|
||||
PmsProductAttributeCategory getItem(Long id);
|
||||
|
||||
List<PmsProductAttributeCategory> getList(Integer pageSize, Integer pageNum);
|
||||
|
||||
List<PmsProductAttributeCategoryItem> getListWithAttr();
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.dto.PmsProductCategoryParam;
|
||||
import com.macro.mall.dto.PmsProductCategoryWithChildrenItem;
|
||||
import com.macro.mall.model.PmsProductCategory;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ²úÆ··ÖÀàService
|
||||
*/
|
||||
public interface PmsProductCategoryService {
|
||||
@Transactional
|
||||
int create(PmsProductCategoryParam pmsProductCategoryParam);
|
||||
|
||||
@Transactional
|
||||
int update(Long id, PmsProductCategoryParam pmsProductCategoryParam);
|
||||
|
||||
List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);
|
||||
|
||||
int delete(Long id);
|
||||
|
||||
PmsProductCategory getItem(Long id);
|
||||
|
||||
int updateNavStatus(List<Long> ids, Integer navStatus);
|
||||
|
||||
int updateShowStatus(List<Long> ids, Integer showStatus);
|
||||
|
||||
List<PmsProductCategoryWithChildrenItem> listWithChildren();
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.dto.PmsProductParam;
|
||||
import com.macro.mall.dto.PmsProductQueryParam;
|
||||
import com.macro.mall.dto.PmsProductResult;
|
||||
import com.macro.mall.model.PmsProduct;
|
||||
import org.springframework.transaction.annotation.Isolation;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品管理Service
|
||||
*/
|
||||
public interface PmsProductService {
|
||||
/**
|
||||
* 创建商品
|
||||
*/
|
||||
@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED)
|
||||
int create(PmsProductParam productParam);
|
||||
|
||||
/**
|
||||
* 根据商品编号获取更新信息
|
||||
*/
|
||||
PmsProductResult getUpdateInfo(Long id);
|
||||
|
||||
/**
|
||||
* 更新商品
|
||||
*/
|
||||
@Transactional
|
||||
int update(Long id, PmsProductParam productParam);
|
||||
|
||||
/**
|
||||
* 分页查询商品
|
||||
*/
|
||||
List<PmsProduct> list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum);
|
||||
|
||||
/**
|
||||
* 批量修改审核状态
|
||||
* @param ids 产品id
|
||||
* @param verifyStatus 审核状态
|
||||
* @param detail 审核详情
|
||||
*/
|
||||
@Transactional
|
||||
int updateVerifyStatus(List<Long> ids, Integer verifyStatus, String detail);
|
||||
|
||||
/**
|
||||
* 批量修改商品上架状态
|
||||
*/
|
||||
int updatePublishStatus(List<Long> ids, Integer publishStatus);
|
||||
|
||||
/**
|
||||
* 批量修改商品推荐状态
|
||||
*/
|
||||
int updateRecommendStatus(List<Long> ids, Integer recommendStatus);
|
||||
|
||||
/**
|
||||
* 批量修改新品状态
|
||||
*/
|
||||
int updateNewStatus(List<Long> ids, Integer newStatus);
|
||||
|
||||
/**
|
||||
* 批量删除商品
|
||||
*/
|
||||
int updateDeleteStatus(List<Long> ids, Integer deleteStatus);
|
||||
|
||||
/**
|
||||
* 根据商品名称或者货号模糊查询
|
||||
*/
|
||||
List<PmsProduct> list(String keyword);
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.model.PmsSkuStock;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* sku商品库存管理Service
|
||||
*/
|
||||
public interface PmsSkuStockService {
|
||||
/**
|
||||
* 根据产品id和skuCode模糊搜索
|
||||
*/
|
||||
List<PmsSkuStock> getList(Long pid, String keyword);
|
||||
|
||||
/**
|
||||
* 批量更新商品库存信息
|
||||
*/
|
||||
int update(Long pid, List<PmsSkuStock> skuStockList);
|
||||
}
|
Loading…
Reference in new issue