From 2e42862d4f37b67a5d23053c3426dc40e8dd4e65 Mon Sep 17 00:00:00 2001 From: nizongfeng Date: Wed, 1 Jun 2022 15:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=BC=82=E5=B8=B8=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/dao/OrderHotelDao.php | 2 +- application/admin/dao/OrderItemDao.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/dao/OrderHotelDao.php b/application/admin/dao/OrderHotelDao.php index 60bd7e3..c61d5de 100644 --- a/application/admin/dao/OrderHotelDao.php +++ b/application/admin/dao/OrderHotelDao.php @@ -152,7 +152,7 @@ class OrderHotelDao public function setSubOrderAmount( int $subOrderId) { try{ $purchaseModel = new Purchase(); - $purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0])->select()->toArray(); + $purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0,"prod_type"=>"hotel"])->select()->toArray(); $cost = 0; $amount = 0; $count = 0; diff --git a/application/admin/dao/OrderItemDao.php b/application/admin/dao/OrderItemDao.php index 5c04063..15971fe 100644 --- a/application/admin/dao/OrderItemDao.php +++ b/application/admin/dao/OrderItemDao.php @@ -101,7 +101,7 @@ class OrderItemDao public function setSubOrderAmount( int $subOrderId) { try{ $purchaseModel = new Purchase(); - $purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0])->select()->toArray(); + $purchaseList = $purchaseModel->where(["order_detail_id"=>$subOrderId,"del_flag"=>0,"prod_type"=>"item"])->select()->toArray(); $cost = 0; $amount = 0; $count = 0;