|
@@ -38,7 +38,8 @@ class StoreCouponUser extends BaseModel
|
|
|
{
|
|
|
$model = new self;
|
|
|
$model = $model->alias('a')
|
|
|
- ->field('a.*,b.nickname')
|
|
|
+ ->field('a.*,b.nickname,c.name')
|
|
|
+ ->leftJoin('system_store c', 'a.store_id = c.id')
|
|
|
->leftJoin('user b', 'a.uid=b.uid');
|
|
|
if ($where['status'] != '') $model = $model->where('a.status', $where['status']);
|
|
|
if ($where['is_fail'] != '') $model = $model->where('a.status', $where['is_fail']);
|