From 3defc6963a9aa71f7c73c58fe97a26acb4b07d23 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 23 May 2022 10:55:36 +0800 Subject: [PATCH] add-admin-order_status2 --- admin/controllers/receiver/orderv2/Orders.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index 31be7907..ac69cf0f 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -66,7 +66,7 @@ class Orders extends HD_Controller } if ($value['list']) { foreach ($value['list'] as $key2 => $value2) { - if($key2){ + if($key2 && $key2<21){ $where_s = []; $key==1 && $where_s["{$t1}.payway"] = 0;//分期 if(strlen($key) && !$key && $key2==1){ //已下定过滤退款 @@ -95,6 +95,12 @@ class Orders extends HD_Controller if($key==4){ //交付需要开票后才显示 $where_s["{$t1}.id in (select o_id from lc_receiver_order_status where pid_status=3 and status=1)"] = null; } + if($key2==21){ + $where_s = [ + "{$t1}.id in (select o_id from lc_receiver_order_status where pid_status=0 and status=1)" => null, //已付定金 + "{$t1}.id not in (select o_id from lc_receiver_order_status where pid_status=0 and status=2)" => null //尾款未支付 + ]; + } $where_s = array_merge($where,$where_s); $count2 = $this->receiver_orders_v2_model->count($where_s); }