导出报错

This commit is contained in:
2024-12-13 17:08:25 +08:00
parent f6509f545b
commit d214f3a5a3

View File

@@ -116,7 +116,7 @@ class ProductOrder extends \common\modelsgii\ProductOrder
// return $data;
//查询数据
$list = ProductOrder::find()->where($where)->andWhere($andWhere)->with(['prescription', 'doctor', 'doctorId','store'])->orderBy('id DES')->asArray()->all();
$list = ProductOrder::find()->where($where)->andWhere($andWhere)->with(['prescription', 'doctor', 'doctorId','store'])->orderBy(['id' => SORT_DESC])->asArray()->all();
//把结果按照显示顺序存到返回的数组中
if (!empty($list)) {