1. 调试erp

This commit is contained in:
李琦
2026-07-24 09:27:35 +08:00
parent 83a986f1b1
commit fca11a4efd

View File

@@ -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'])