Commit a5da25fd authored by zw's avatar zw

时间轴

parent 7e7c49b3
...@@ -609,9 +609,10 @@ class OrderLogService ...@@ -609,9 +609,10 @@ class OrderLogService
} }
//退款 //退款
$field_refund = "id,report_id,agent_id,agent_name,order_no,order_id,refund_money,status,name,phone,bank,card_no, $field_refund = "a.id,a.report_id,a.agent_id,a.agent_name,a.order_no,a.order_id,a.refund_money,a.status,a.name
remark,receipt_number,type,refund_cause,pay_log_id,refund_way,create_time"; ,a.phone,a.bank,a.card_no, a.remark,a.receipt_number,a.type,a.refund_cause,a.pay_log_id,a.refund_way,
$refundData = $oRefundModel->selectRefundByOrderNo($field_refund, ["order_id" => $order_id]); a.create_time,b.income_time";
$refundData = $oRefundModel->selectRefundDetailByOrderNo($field_refund, ["order_id" => $order_id]);
if (count($refundData) > 0) { if (count($refundData) > 0) {
foreach ($refundData as $k => $v) { foreach ($refundData as $k => $v) {
$v["step_name"] = "refund"; $v["step_name"] = "refund";
......
...@@ -136,6 +136,31 @@ class ORefundModel extends Model{ ...@@ -136,6 +136,31 @@ class ORefundModel extends Model{
->select(); ->select();
} }
/**
* @param $filed
* @param $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function selectRefundDetailByOrderNo($filed , $params)
{
$where_ = [];
if (isset($params["order_id"])) {
$where_["a.order_id"] = $params["order_id"];
}
return $this->db_
->field($filed)
->alias("a")
->join("o_paylog b","a.pay_log_id = b.id","left")
->where($where_)
->select();
}
/** /**
* 查询退款记录带分页 * 查询退款记录带分页
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment