add-api-order_detail

This commit is contained in:
lccsw
2022-08-12 14:04:34 +08:00
parent 9f821e90d4
commit 47c87cda51
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -203,6 +203,7 @@ class Biz extends HD_Controller
"$t3.id is null" => null,
"$t4.type" => 2,
];
$id && $where["$t2.id"] = $id;
$this->db->from("$t1");
$this->db->join("$t2", "$t2.id=$t1.o_id",'left');
@@ -639,6 +639,7 @@ class CusorderV2 extends Wxapp
//获取补充协议
$order_data = $this->receiver_order_datas_model->get(['o_id' => $row['id']], 'sa');
$data['sa'] = $order_data['sa'] ? $order_data['sa'] : '';
$data['refund_status'] = $row['status'] == 2 ? true : false;
return $data;
}