From 93c878fba55df31562cf827202e5c878746dc90e Mon Sep 17 00:00:00 2001 From: nizongfeng Date: Mon, 6 Feb 2023 17:28:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E5=8D=95=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/CfItem.php | 2 +- application/admin/dao/PaymentOrderDao.php | 6 ++++++ application/admin/dao/ReceiptOrderDao.php | 6 ++++++ application/admin/view/payment_order/index.html | 19 +++++++++++++++++-- application/admin/view/receipt_order/index.html | 18 +++++++++++++++++- 5 files changed, 47 insertions(+), 4 deletions(-) diff --git a/application/admin/controller/CfItem.php b/application/admin/controller/CfItem.php index 2ee738d..d6f12cd 100755 --- a/application/admin/controller/CfItem.php +++ b/application/admin/controller/CfItem.php @@ -222,7 +222,7 @@ class CfItem extends Backend $config = \think\Config::get("site.item_category"); $config = json_decode($config,true); foreach ($result as $key=>$value){ - $result[$key]["item_type_name"]= $config[$value["item_type"]]; + $result[$key]["item_type_name"]= empty($config[$value["item_type"]])?"":$config[$value["item_type"]]; } $config = \think\Config::get("site.item_unit"); $config = json_decode($config,true); diff --git a/application/admin/dao/PaymentOrderDao.php b/application/admin/dao/PaymentOrderDao.php index 156cc18..58b77a8 100644 --- a/application/admin/dao/PaymentOrderDao.php +++ b/application/admin/dao/PaymentOrderDao.php @@ -123,6 +123,12 @@ class PaymentOrderDao if ($param['status']."" != 'all' && $param['status']!=="") { $where["a.status"] = $param['status']; } + if (!empty($param["id"])) { + $where["a.id"] = $param["id"]; + } + if (!empty($param['create_id'])) { + $where["a.create_id"] = $param["create_id"]; + } $having = []; if(!empty($param['startCost']) && !empty($param['endCost'])) { $having[] = " (itemMoney >= {$param['startCost']} and itemMoney <= {$param['endCost']} ) or (hotelMoney >= {$param['startCost']} and hotelMoney <= {$param['endCost']} ) "; diff --git a/application/admin/dao/ReceiptOrderDao.php b/application/admin/dao/ReceiptOrderDao.php index 477f708..1879618 100644 --- a/application/admin/dao/ReceiptOrderDao.php +++ b/application/admin/dao/ReceiptOrderDao.php @@ -124,6 +124,12 @@ class ReceiptOrderDao if ($param['status']."" != 'all' && $param['status']!=="") { $where["a.status"] = $param['status']; } + if (!empty($param["id"])) { + $where["a.id"] = $param["id"]; + } + if (!empty($param['create_id'])) { + $where["a.create_id"] = $param["create_id"]; + } $having = ""; if(!empty($param['startMoney']) && !empty($param['endMoney'])) { $having = " total_amount >= {$param['startMoney']} and total_amount <= {$param['endMoney']} "; diff --git a/application/admin/view/payment_order/index.html b/application/admin/view/payment_order/index.html index ef18c29..50ec1c6 100755 --- a/application/admin/view/payment_order/index.html +++ b/application/admin/view/payment_order/index.html @@ -8,9 +8,11 @@
-