Sfoglia il codice sorgente

feat(order): 订单查询中添加阿里巴巴订单ID字段

- 在订单查询的字段列表中增加了 alibaba_order_id 字段
- 修改了 StoreRefundOrderRepository 中的 getAllList 方法
- 更新了关联订单查询的字段选择逻辑
shichen 2 mesi fa
parent
commit
6864243048

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

@@ -410,7 +410,7 @@ class StoreRefundOrderRepository extends BaseRepository
410
     public function getAllList(array $where, int $page, int $limit)
410
     public function getAllList(array $where, int $page, int $limit)
411
     {
411
     {
412
         $query = $this->dao->search($where)->with(['order' => function ($query) {
412
         $query = $this->dao->search($where)->with(['order' => function ($query) {
413
-            $query->field('order_id,order_sn,douhuomall');
413
+            $query->field('order_id,order_sn,douhuomall,alibaba_order_id');
414
         }, 'merchant' => function ($query) {
414
         }, 'merchant' => function ($query) {
415
             $query->field('mer_id,mer_name');
415
             $query->field('mer_id,mer_name');
416
         }, 'refundProduct.product', 'user' => function ($query) {
416
         }, 'refundProduct.product', 'user' => function ($query) {