<?php

namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;

class StudentEval extends Base
{
    //表名声明
    protected $table = 'gz_student_eval';
    use SoftDeletes;

    //主键声明
    protected $primaryKey = 'id';
    protected $dates = ['deleted_at'];


    public function selectinfoForPaginate(array $where, $field = ["*"], $offset, $perPage )
    {
        return  StudentEval::where($where)->orderBy('id', 'desc')->skip($offset)->take($perPage)->get($field)->toArray();
    }
    public function selectinfoForPaginateCount(array $where )
    {
        return  StudentEval::where($where)->count();
    }





}
