From 565785dbe26547580d0c4d1faa7cc7182d9e9199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Sun, 27 Sep 2020 22:04:01 +0800 Subject: [PATCH] 0 --- app/chengji/model/TongjiBj.php | 12 +++++++----- app/kaohao/view/index/read.html | 10 ++++++++++ app/login/controller/Index.php | 2 +- public/static/mayi/css/studentSearch.css | 13 ++++++++++++- 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/app/chengji/model/TongjiBj.php b/app/chengji/model/TongjiBj.php index 545b3d8a..e56a6cd6 100644 --- a/app/chengji/model/TongjiBj.php +++ b/app/chengji/model/TongjiBj.php @@ -397,8 +397,10 @@ class TongjiBj extends BaseModel $src['enddate'] = date("Y-m-d",strtotime("+1 day")); } - $bj = new \app\teach\model\Banji; - $bjList = $bj->where('banzhuren', $src['teacher_id'])->column('id'); + $bj = new \app\teach\model\BanZhuRen; + $bjId = $bj->where('teacher_id', $src['teacher_id']) + ->order(['bfdate'=>'desc', 'update_time']) + ->value('banji_id'); $data = $this->where('teacher_id', $src['teacher_id']) ->where('subject_id', '<>', 0) @@ -420,10 +422,10 @@ class TongjiBj extends BaseModel }) ->field('id'); }) - ->when(count($bjList) > 0, function ($query) use($bjList) { - $query->whereOr('id', 'in', function ($q) use($bjList) { + ->when(strlen($bjId) > 0, function ($query) use($bjId) { + $query->whereOr('id', 'in', function ($q) use($bjId) { $q->name('tongjiBj') - ->where('banji_id', 'in', $bjList) + ->where('banji_id', $bjId) ->where('subject_id', '<>', 0) ->field('id'); }); diff --git a/app/kaohao/view/index/read.html b/app/kaohao/view/index/read.html index fe061a66..a1a8bb1d 100644 --- a/app/kaohao/view/index/read.html +++ b/app/kaohao/view/index/read.html @@ -20,6 +20,16 @@
+
+
+
+ 成绩报告 +
+
+ 成绩分析,成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析adsfasdf +
+
+
diff --git a/app/login/controller/Index.php b/app/login/controller/Index.php index d1873b33..922a1e4c 100644 --- a/app/login/controller/Index.php +++ b/app/login/controller/Index.php @@ -180,7 +180,7 @@ class Index if($userinfo == null) { // 验证结果; - $data = ['msg' => '教师帐号不存在或被禁用', 'val' => 0]; + $data = ['msg' => '学生帐号不存在或被禁用', 'val' => 0]; return $data; } diff --git a/public/static/mayi/css/studentSearch.css b/public/static/mayi/css/studentSearch.css index 4edb3e6d..5f9c5ce0 100644 --- a/public/static/mayi/css/studentSearch.css +++ b/public/static/mayi/css/studentSearch.css @@ -1,3 +1,5 @@ + + .myrow { width: 100%; height: 45px; @@ -23,4 +25,13 @@ .mydivtubiao { background: #fff; height: 350px; -} \ No newline at end of file +} +.baogao { + background: #fff; + min-height: 250px; + padding: 20px; + font-size: 18px; + text-indent:2em; + letter-spacing:6px; + line-height:54px; +}