feat(shop): 添加用户订单和卡包统计功能
- 在 ShopOrderMapper 中新增 selectUserOrderStats 方法用于订单状态统计 - 在 ShopOrderService 和 ShopOrderServiceImpl 中实现用户订单统计功能 - 添加 UserOrderStats DTO 类定义订单各状态数量统计 - 创建 UserOrderController 提供用户订单统计 API 接口 - 实现用户卡包统计功能,包括余额、积分、优惠券、礼品卡统计 - 添加 UserCardController 和 UserCardStats DTO 类 - 优化 Swagger 配置以支持 /api/user/** 路径的 API 文档 - 为统计接口添加 Redis 缓存以提升性能 - 清理 ShopOrderController 中不必要的导入依赖
This commit is contained in:
@@ -45,7 +45,6 @@ public class ShopDealerUserController extends BaseController {
|
|||||||
return success(shopDealerUserService.pageRel(param));
|
return success(shopDealerUserService.pageRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('shop:shopDealerUser:list')")
|
|
||||||
@Operation(summary = "查询全部分销商用户记录表")
|
@Operation(summary = "查询全部分销商用户记录表")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public ApiResult<List<ShopDealerUser>> list(ShopDealerUserParam param) {
|
public ApiResult<List<ShopDealerUser>> list(ShopDealerUserParam param) {
|
||||||
@@ -53,7 +52,6 @@ public class ShopDealerUserController extends BaseController {
|
|||||||
return success(shopDealerUserService.listRel(param));
|
return success(shopDealerUserService.listRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('shop:shopDealerUser:list')")
|
|
||||||
@Operation(summary = "根据userId查询分销商用户")
|
@Operation(summary = "根据userId查询分销商用户")
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<ShopDealerUser> get(@PathVariable("id") Integer id) {
|
public ApiResult<ShopDealerUser> get(@PathVariable("id") Integer id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user