This commit is contained in:
巴掌 committed 2020-09-27 22:04:01 +08:00
1 parent e76fe1a586
commit 565785dbe2
4 files changed
+30 -7

No files matched your search

+7 -5
View File
@@ -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');
});
+10
View File
@@ -20,6 +20,16 @@
<body>
<div class="myrow">
<div class="layui-row layui-col-md12">
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12 mydivtop">
<div class="mydivneirong">
<div class="mydivtitle">
成绩报告
</div>
<div class="baogao">
成绩分析,成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析adsfasdf
</div>
</div>
</div>
<div class="layui-col-xs12 layui-col-sm6 layui-col-md4 mydivtop">
<div class="mydivneirong">
<div class="mydivtitle">
+1 -1
View File
@@ -180,7 +180,7 @@ class Index
if($userinfo == null)
{
// 验证结果;
$data = ['msg' => '教师帐号不存在或被禁用', 'val' => 0];
$data = ['msg' => '学生帐号不存在或被禁用', 'val' => 0];
return $data;
}
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff. Show more