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 = [];