1234567891011121314151617181920212223 |
- <?php
- namespace app\common\model;
- use app\common\constant\CommonConstant;
- use think\Model;
- /**
- * 出差审批模型
- */
- class EvectionApprove extends Model
- {
- // 表名
- protected $name = 'evection_approve';
- // 关联用户
- public function user()
- {
- return $this->belongsTo(User::class, 'approve_user', 'userid')->where('is_deleted',CommonConstant::IS_DELETED_0);
- }
- }
|