|
|
@@ -2001,7 +2001,8 @@ public class ProductOrderService {
|
|
|
|
|
|
public Result<Map<String, Long>> myOrderCounts(Long buyerId) {
|
|
|
Map<String, Long> counts = new java.util.LinkedHashMap<>();
|
|
|
- String[] statuses = {"pending", "paid", "shipped", "completed", "refunding"};
|
|
|
+ // shipped 是幽灵值(后端从不写,发货写 pending_receipt),用真实状态;退款按新口径拆分
|
|
|
+ String[] statuses = {"pending", "paid", "pending_receipt", "completed", "pending_refund", "refunding", "refund_pending"};
|
|
|
long total = 0;
|
|
|
for (String s : statuses) {
|
|
|
long cnt = orderMapper.selectCount(new LambdaQueryWrapper<ProductOrder>()
|