@@ -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'])
@@ -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');
+ }