first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user