瀏覽代碼

up- 后台管理审核退款

liugc 11 月之前
父節點
當前提交
49b95bb77c
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 1 1
      app/adminapi/lists/external/DouyinOrderLists.php
  2. 5 0
      app/common/model/external/DouyinOrder.php

+ 1 - 1
app/adminapi/lists/external/DouyinOrderLists.php

@@ -66,7 +66,7 @@ class DouyinOrderLists extends BaseAdminDataLists implements ListsSearchInterfac
      */
      */
     public function lists(): array
     public function lists(): array
     {
     {
-        return DouyinOrder::with(['goods', 'serviceWork'])->where($this->searchWhere)->where($this->queryWhere())
+        return DouyinOrder::with(['goods', 'serviceWork','douyinRefundOrder'])->where($this->searchWhere)->where($this->queryWhere())
             ->field(['*'])
             ->field(['*'])
             ->limit($this->limitOffset, $this->limitLength)
             ->limit($this->limitOffset, $this->limitLength)
             ->order(['id' => 'desc'])
             ->order(['id' => 'desc'])

+ 5 - 0
app/common/model/external/DouyinOrder.php

@@ -21,4 +21,9 @@ class DouyinOrder extends BaseModel
             ->field('work_sn,mobile,address,appointment_time,work_status,user_confirm_status,service_status,work_pay_status,
             ->field('work_sn,mobile,address,appointment_time,work_status,user_confirm_status,service_status,work_pay_status,
             lon,lat,province,city,area_name');
             lon,lat,province,city,area_name');
     }
     }
+
+    public function douyinRefundOrder()
+    {
+        return $this->hasOne(DouyinRefundOrder::class, 'order_number', 'order_number');
+    }
 }
 }