From 85fd4c3e01c2e5014a5e159b923b7b8973be6d9c Mon Sep 17 00:00:00 2001 From: lq Date: Wed, 4 Dec 2024 14:30:06 +0800 Subject: [PATCH] =?UTF-8?q?ERP=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/modules/v1/controllers/ErpController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/modules/v1/controllers/ErpController.php b/platform/modules/v1/controllers/ErpController.php index 42cac67..16acf5f 100644 --- a/platform/modules/v1/controllers/ErpController.php +++ b/platform/modules/v1/controllers/ErpController.php @@ -47,7 +47,9 @@ class ErpController extends Controller 'po.is_sync_erp' => 0, ])->andWhere([ 'in','po.status',[1,2,3,6,7] - ])->andWhere(['BETWEEN', 'po.created_at', $startDate, $endDate])->joinWith('approvedPrescription')->with(['orderItems','store'])->asArray()->all(); + ])->andWhere(['BETWEEN', 'po.created_at', $startDate, $endDate]) + ->joinWith('approvedPrescription') + ->with(['orderItems','store', 'prescription'])->asArray()->all(); //解析成erp所需参数(订单详情是否需要改动 - 线上订单的展示) $erpData = []; $ids = [];