Parcourir la source

up- 后台管理审核退款

liugc il y a 11 mois
Parent
commit
49b95bb77c

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

@@ -66,7 +66,7 @@ class DouyinOrderLists extends BaseAdminDataLists implements ListsSearchInterfac
      */
     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(['*'])
             ->limit($this->limitOffset, $this->limitLength)
             ->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,
             lon,lat,province,city,area_name');
     }
+
+    public function douyinRefundOrder()
+    {
+        return $this->hasOne(DouyinRefundOrder::class, 'order_number', 'order_number');
+    }
 }