修改班级

This commit is contained in:
巴掌 committed 2020-08-09 16:19:22 +08:00
1 parent f690b5fb2e
commit 2f02073487
31 files changed
+793 -685

No files matched your search

+31 -18
View File
@@ -8,25 +8,38 @@ use app\BaseController;
class System extends BaseController
{
// 查询状态为1的学科
public function subjectAll()
{
$sbj = new \app\teach\model\Subject;
$sbjList = $sbj->where('status', 1)
->field('id, title, jiancheng, lieming')
->select();
// // 查询状态为1的学科
// public function subjectAll()
// {
// $sbj = new \app\teach\model\Subject;
// $sbjList = $sbj->where('status', 1)
// ->field('id, title, jiancheng, lieming')
// ->select();
return $sbj;
// return $sbj;
// }
// // 查询可以参加考试的学科
// public function subjectKs()
// {
// $sbj = new \app\teach\model\Subject;
// $sbjList = $sbj->where('status&kaoshi', 1)
// ->field('id, title, jiancheng, lieming')
// ->select();
// return $sbj;
// }
// 是否启用别名
public function sysClass()
{
// 实例化系统设置对象
$sys = new \app\system\model\SystemBase;
$alias = $sys->order(['id'=>'desc'])
->field('grademax, classmax, classalias, xuenian')
->find();
return $alias;
}
// 查询可以参加考试的学科
public function subjectKs()
{
$sbj = new \app\teach\model\Subject;
$sbjList = $sbj->where('status&kaoshi', 1)
->field('id, title, jiancheng, lieming')
->select();
return $sbj;
}
}