From fca11a4efd35262a4327dfb9011e9cc134c0dec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Fri, 24 Jul 2026 09:27:35 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E8=B0=83=E8=AF=95erp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/modules/v1/controllers/ErpController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/modules/v1/controllers/ErpController.php b/platform/modules/v1/controllers/ErpController.php index 008fd3b..80e4a7f 100644 --- a/platform/modules/v1/controllers/ErpController.php +++ b/platform/modules/v1/controllers/ErpController.php @@ -43,12 +43,15 @@ class ErpController extends Controller $endDate = strtotime($post['endDate']) + 86400; $productOrders = ProductOrder::find()->alias('po')->where([ - 'po.prescription_type' => 2, +// 'po.prescription_type' => 2, 'po.is_sync_erp' => 0, ]) ->andWhere([ 'in','po.status',[1,2,3,6,7] ]) + ->andWhere([ + 'in','po.prescription_type',[2,3,5,6,7] + ]) ->andWhere(['BETWEEN', 'po.created_at', $startDate, $endDate]) // ->joinWith('approvedPrescription') ->with(['orderItems','store', 'prescription'])