修改毕业学生查看权限

This commit is contained in:
东宝书记 committed 2021-05-18 21:23:41 +08:00
1 parent 53590dceba
commit 4e94213a81
7 files changed
+19 -11

No files matched your search

+8
View File
@@ -114,6 +114,14 @@ class Index extends AdminBase
$src['auth']['banji_id'] = array_intersect($src['auth']['banji_id'], $src['banji_id']);
}
$njlist = \app\facade\Tools::nianJiNameList(time(), 'num');
$biyenian = min($njlist); # 最近毕业年
$banji = new \app\teach\model\Banji;
$src['auth']['banji_id'] = $banji
->where('id', 'in', $src['auth']['banji_id'])
->where('ruxuenian', '<', $biyenian)
->column('id');
// 根据条件查询数据
$stu = new STU;
$data = $stu->search($src);
+2 -2
View File
@@ -30,7 +30,7 @@ private static $installed = array (
'aliases' =>
array (
),
'reference' => 'b0cc71eaedb030831468effc868c449ed24f7aff',
'reference' => '53590dcebadeaef2726a03243c62a47718ed6b02',
'name' => 'topthink/think',
),
'versions' =>
@@ -258,7 +258,7 @@ private static $installed = array (
'aliases' =>
array (
),
'reference' => 'b0cc71eaedb030831468effc868c449ed24f7aff',
'reference' => '53590dcebadeaef2726a03243c62a47718ed6b02',
),
'topthink/think-captcha' =>
array (
+1 -1
View File
@@ -71,6 +71,6 @@ return array(
'25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php',
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
'dc1275c308c5b416beb314b6317daca2' => $vendorDir . '/overtrue/pinyin/src/const.php',
'1cfd2761b63b0a29ed23657ea394cb2d' => $vendorDir . '/topthink/think-captcha/src/helper.php',
'667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
'1cfd2761b63b0a29ed23657ea394cb2d' => $vendorDir . '/topthink/think-captcha/src/helper.php',
);
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff. Show more