|
@@ -207,8 +207,8 @@ public class TradeOrderController {
|
|
public CommonResult<Map<Integer, Long>> getOrderCount(@RequestParam(value = "shopId", required = false) Long shopId,
|
|
public CommonResult<Map<Integer, Long>> getOrderCount(@RequestParam(value = "shopId", required = false) Long shopId,
|
|
@RequestParam(value = "merId", required = false) Long merId) {
|
|
@RequestParam(value = "merId", required = false) Long merId) {
|
|
Map<Integer, Long> orderCount = Maps.newLinkedHashMapWithExpectedSize(6);
|
|
Map<Integer, Long> orderCount = Maps.newLinkedHashMapWithExpectedSize(6);
|
|
- orderCount.put(-1, tradeOrderQueryService.getOrderCount(null));
|
|
|
|
- orderCount.put(-2, afterSaleService.getApplyingAfterSaleCount(null));
|
|
|
|
|
|
+ orderCount.put(-1, tradeOrderQueryService.getOrderCount(null, shopId, merId));
|
|
|
|
+ orderCount.put(TradeOrderStatusEnum.AFTER_SALE.getStatus(), afterSaleService.getApplyingAfterSaleCount(null, shopId, merId));
|
|
orderCount.put(TradeOrderStatusEnum.UNPAID.getStatus(), tradeOrderQueryService.getOrderCount(TradeOrderStatusEnum.UNPAID.getStatus(), shopId, merId));
|
|
orderCount.put(TradeOrderStatusEnum.UNPAID.getStatus(), tradeOrderQueryService.getOrderCount(TradeOrderStatusEnum.UNPAID.getStatus(), shopId, merId));
|
|
orderCount.put(TradeOrderStatusEnum.UNDELIVERED.getStatus(), tradeOrderQueryService.getOrderCount(TradeOrderStatusEnum.UNDELIVERED.getStatus(), shopId, merId));
|
|
orderCount.put(TradeOrderStatusEnum.UNDELIVERED.getStatus(), tradeOrderQueryService.getOrderCount(TradeOrderStatusEnum.UNDELIVERED.getStatus(), shopId, merId));
|
|
orderCount.put(TradeOrderStatusEnum.DELIVERED.getStatus(), tradeOrderQueryService.getOrderCount(TradeOrderStatusEnum.DELIVERED.getStatus(), shopId, merId));
|
|
orderCount.put(TradeOrderStatusEnum.DELIVERED.getStatus(), tradeOrderQueryService.getOrderCount(TradeOrderStatusEnum.DELIVERED.getStatus(), shopId, merId));
|