From ca49c9319f36cf498a856d81dfbbbdec3120f0d0 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 8 Jun 2022 18:01:33 +0800 Subject: [PATCH] setter --- app/controller/manager/mall/Order.php | 8 ++++++++ view/manager/mall/order/index.html | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/app/controller/manager/mall/Order.php b/app/controller/manager/mall/Order.php index af97512..5e952b6 100755 --- a/app/controller/manager/mall/Order.php +++ b/app/controller/manager/mall/Order.php @@ -123,6 +123,14 @@ class Order extends Base $whereMap[] = ['coding', '=', $searchParams['coding']]; } + + if (isset($searchParams['contacts']) && !empty($searchParams['contacts'])) { + $whereMap[] = ['contacts', 'like', "%".$searchParams['contacts']."%"]; + } + if (isset($searchParams['phone']) && !empty($searchParams['phone'])) { + $whereMap[] = ['phone', 'like', "%".$searchParams['phone']."%"]; + } + $res = OrderModel::findList($whereMap, [], $page, $size, function ($q) { return $q->with(['account']); }, $order); diff --git a/view/manager/mall/order/index.html b/view/manager/mall/order/index.html index d36b757..1defd7e 100755 --- a/view/manager/mall/order/index.html +++ b/view/manager/mall/order/index.html @@ -54,6 +54,20 @@ +