门店端适配新表 及操盘手端工作台优化
This commit is contained in:
@@ -20,6 +20,6 @@ class User extends Model
|
||||
// 定义关联的工作台
|
||||
public function workbench()
|
||||
{
|
||||
return $this->hasMany('Workbench', 'id', 'userId');
|
||||
return $this->belongsTo('Workbench', 'id', 'userId');
|
||||
}
|
||||
}
|
||||
@@ -56,9 +56,11 @@ class Workbench extends Model
|
||||
return $this->hasOne('WorkbenchGroupCreate', 'workbenchId', 'id');
|
||||
}
|
||||
|
||||
// 用户关联
|
||||
/**
|
||||
* 用户关联
|
||||
*/
|
||||
public function user()
|
||||
{
|
||||
return $this->hasOne('User', 'id', 'userId');
|
||||
return $this->belongsTo('User', 'userId', 'id');
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,6 @@ use think\Model;
|
||||
*/
|
||||
class WorkbenchAutoLike extends Model
|
||||
{
|
||||
protected $table = 'ck_workbench_auto_like';
|
||||
protected $pk = 'id';
|
||||
protected $name = 'workbench_auto_like';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user