Browse Source

refactor(repository): 更新订单退款查询以包含阿里巴巴订单ID

- 在订单查询中添加 alibaba_order_id 字段
- 保持现有字段 order_id, order_sn, douhuomall 的同时扩展查询结构
- 确保退款订单关联查询的完整性
shichen 2 months ago
parent
commit
2ceced71a2

+ 1 - 1
app/common/repositories/store/order/StoreRefundOrderRepository.php

@@ -354,7 +354,7 @@ class StoreRefundOrderRepository extends BaseRepository
354 354
             $query->where([['status','=',$status]]);
355 355
         }
356 356
         $query->with(['order' => function ($query) {
357
-            $query->field('order_id,order_sn,douhuomall');
357
+            $query->field('order_id,order_sn,douhuomall,alibaba_order_id');
358 358
         }, 'refundProduct.product', 'user' => function ($query) {
359 359
             $query->field('uid,nickname,phone');
360 360
         }])->order('create_time DESC');