28 lines
620 B
PHP
28 lines
620 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: Administrator
|
|
* Date: 2020/4/24
|
|
* Time: 10:57
|
|
*/
|
|
|
|
namespace app\api\model;
|
|
|
|
|
|
use think\Model;
|
|
|
|
class SchScore extends Model
|
|
{
|
|
protected $table = 'yzy_sch_score';
|
|
|
|
/*
|
|
* 查询往年学院录取情况
|
|
* */
|
|
public static function getSchEnrollByYear($data){
|
|
|
|
$result = self::field('year,batchName,enterNum,minScore,lowSort')
|
|
->where([['province','=',$data['userPro']],['sch_id','=',$data['sch_id']],['wenli','=',$data['subType']],['batch','=',$data['batch']]])
|
|
->order('year desc')->select();
|
|
return $result;
|
|
}
|
|
} |