From 03c904e34fd01004d96a2b90ccabd21a6b978376 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 23 May 2022 10:48:58 +0800 Subject: [PATCH] add-admin-order_status --- admin/controllers/auto/Business.php | 1 + admin/libraries/Ordersv2List.php | 8 ++++++-- admin/views/auto/business/lists.php | 4 +++- .../models/receiver/order/Receiver_order_status_model.php | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/admin/controllers/auto/Business.php b/admin/controllers/auto/Business.php index dff825c6..b72eae86 100644 --- a/admin/controllers/auto/Business.php +++ b/admin/controllers/auto/Business.php @@ -124,6 +124,7 @@ class Business extends HD_Controller{ 's_effect_time' => $v['s_effect_time'] ? date('Y-m-d',$v['s_effect_time']) : '', 'effect_status' => $v['if_effect'] ? '生效中' : '未生效', 'if_effect' => $v['if_effect'], + 'delivery_day' => $v['delivery_day'] ); } } diff --git a/admin/libraries/Ordersv2List.php b/admin/libraries/Ordersv2List.php index 2e9b1362..1e8d58b7 100644 --- a/admin/libraries/Ordersv2List.php +++ b/admin/libraries/Ordersv2List.php @@ -229,7 +229,7 @@ class Ordersv2List } else { $orderby = "{$this->t1}.c_time desc"; } - if (strlen($params['status_pid']) && $params['status'] && $params['status_pid']!=21) { + if (strlen($params['status_pid']) && $params['status'] && $params['status_pid']!=21 &&$params['status']<21) { $where["{$this->t2}.pid_status"] = $params['status_pid']; $up_key = $params['status'] + 1; $where["{$this->t2}.status in ({$params['status']},{$up_key})"] = null; @@ -240,7 +240,7 @@ class Ordersv2List $count = $this->ci->mdOrders->selectOrders($where, '', '', '', 1, '', $having); $rows = $this->ci->mdOrders->selectOrders($where, $orderby, $page, $size, '', $fileds, $having); } else { - if (strlen($params['status'])) { + if (strlen($params['status']) && $params['status']<21) { $where["id not in (select o_id from lc_receiver_order_status where pid_status={$params['status_pid']} and status=1)"] = null; } if ($params['status_pid'] == 3) { //开票 @@ -251,6 +251,10 @@ class Ordersv2List } } $params['status_pid'] == 21 && $where['status'] = 2; //退款 + if($params['status']==21){ //特殊需求 + $where["id in (select o_id from lc_receiver_order_status where pid_status=0 and status=1)"] = null; //已付定金 + $where["id not in (select o_id from lc_receiver_order_status where pid_status=0 and status=2)"] = null; //尾款未支付 + } $count = $this->ci->mdOrders->count($where); $rows = $this->ci->mdOrders->select($where, $orderby, $page, $size, $fileds); } diff --git a/admin/views/auto/business/lists.php b/admin/views/auto/business/lists.php index a54bc9db..323c0e40 100644 --- a/admin/views/auto/business/lists.php +++ b/admin/views/auto/business/lists.php @@ -96,6 +96,7 @@