浏览代码

[producer] Correction bug récupération des points de vente

dev
父节点
当前提交
9c9f6d0b31
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      common/models/User.php

+ 1
- 1
common/models/User.php 查看文件

@@ -621,7 +621,7 @@ class User extends ActiveRecordCommon implements IdentityInterface
$pointSale = PointSale::findOne(['id' => $arrayUserPointSale[0]->id_point_sale]);
} else {
$lastOrder = Order::find()->innerJoinWith('pointSale', true)->where([
'id_user' => $this->id,
'order.id_user' => $this->id,
'point_sale.id_producer' => GlobalParam::getCurrentProducerId()
])
->orderBy('order.id DESC')

正在加载...
取消
保存