订单详情字段优化

This commit is contained in:
2025-12-18 14:42:05 +08:00
parent 269a37fd42
commit 75c3567d13

View File

@@ -420,7 +420,7 @@ class ProductOrderController extends BaseAppController
$h->select('name');
}])->asArray()->one();
$ProductOrderItems = ProductOrderItems::find()->where(['product_order_id' => $ProductOrder['id']])->with(['drug' => function($q){
$q->select('id,drug_name,function,specification,usage');
$q->select('id,drug_name,function,specification,usage,instruction');
}])->asArray()->all();
$ProductOrder['count'] = count($ProductOrderItems);
return [