导出报错
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user