添加是否允许教师录入其它班级成绩

This commit is contained in:
win10 committed 2020-09-18 14:20:25 +08:00
1 parent 8e357ccd5a
commit 6aea98bc0e
2 files changed
+15 -1

No files matched your search

+14 -1
View File
@@ -55,8 +55,21 @@ class KsCanYu extends BaseController
,'kaoshi_id' => ''
,'limit' => 100
], 'POST');
$khSrc = new \app\kaohao\model\SearchCanyu;
$myself = config('shangma.lurufanwei');
$category = session('onlineCategory');
if($category == 'teacher' && $myself == true)
{
$teacher_id = session('teacher.userid');
$s = \think\facade\Session::all();
$btj = new \app\chengji\model\TongjiBj;
$src['banji_id'] = $btj->where('teacher_id', $teacher_id)
->where('kaoshi_id', $src['kaoshi_id'])
->column('banji_id');
$bj = new \app\teach\model\Banji;
$bjid = $bj->where('banzhuren', $teacher_id)->value('id');
array_push($src['banji_id'], $bjid);
}
$bj = $khSrc->class($src);
$bj = reSetArray($bj, $src);
+1
View File
@@ -12,4 +12,5 @@ return [
'weihu' => false, # 是否开启维护跳转
'shijian' => '2020-9-2 12:47', # 开始时间
'shichang' => '1', # 时长:单位分钟
'lurufanwei' => true # 是否开启教师只能录入自己任课班级的成绩
];