商品分组排序需求

This commit is contained in:
谭凯凯
2025-04-07 10:12:20 +08:00
committed by Tankaikai
parent 90be23cc09
commit a77ecb4170
7 changed files with 62 additions and 33 deletions

View File

@@ -50,7 +50,7 @@ public class ProdGroup implements Serializable {
*/
private Integer sort;
/**
* 排序方式 0-默认; 1-价格从高到低; 2-销量由高到低;
* 排序方式 0-默认; 1-价格从高到低; 2-价格从低到高; 3-销量由高到低
*/
private String sortMode;
/**

View File

@@ -56,8 +56,9 @@ public interface ProdGroupService extends IService<ProdGroup> {
* 更新商品分组
*
* @param dto 商品分组DTO
* @param isUpdateProduct 是否需要修改分组下的商品
*/
void updateProdGroup(ProdGroupDTO dto);
void updateProdGroup(ProdGroupDTO dto,boolean isUpdateProduct);
/**
* 禁用商品分组

View File

@@ -109,4 +109,8 @@ public class ShopProductVo implements Serializable {
* 排序
*/
private Integer sort;
/**
* 销量
*/
private BigDecimal salesVolume;
}