考试增加列,修改班级获取和班级计算

This commit is contained in:
cxdbz committed 2019-12-29 21:39:46 +08:00
1 parent 18f8cda025
commit 93d2aae4c2
10 files changed
+41 -16

No files matched your search

+18
View File
@@ -395,4 +395,22 @@ class Index extends BaseController
// 渲染
return $this->view->fetch();
}
// 根据考试ID和年级获取参加考试班级
public function cyBanji()
{
// 获取变量
$src['school'] = input('post.school');
$src['ruxuenian'] = input('post.ruxuenian');
$src['kaoshi'] = input('post.kaoshi');
$src['school'] = strToarray($src['school']);
$kh = new \app\kaoshi\model\Kaohao;
$bj = $kh->cyBanji($src);
return $bj;
}
}