增加统计项
This commit is contained in:
1 parent
2a1bd45a57
commit
ef6bd109a1
6 files changed
+14
-5
No files matched your search
@@ -63,6 +63,7 @@ class TongjiBj extends BaseModel
|
||||
$tongjiJg->q2 = $cj['sifenwei'][1];
|
||||
$tongjiJg->q3 = $cj['sifenwei'][2];
|
||||
$tongjiJg->zhongshu = $cj['zhongshu'];
|
||||
$tongjiJg->zhongweishu = $cj['zhongweishu'];
|
||||
$tongjiJg->defenlv = $cj['defenlv'];
|
||||
$data = $tongjiJg->save();
|
||||
}else{
|
||||
@@ -84,6 +85,7 @@ class TongjiBj extends BaseModel
|
||||
,'q2' => $cj['sifenwei'][1]
|
||||
,'q3' => $cj['sifenwei'][2]
|
||||
,'zhongshu' => $cj['zhongshu']
|
||||
,'zhongweishu' => $cj['zhongweishu']
|
||||
,'defenlv' => $cj['defenlv']
|
||||
];
|
||||
$data = $this::create($tongjiJg);
|
||||
|
||||
@@ -65,6 +65,7 @@ class TongjiNj extends BaseModel
|
||||
$tongjiJg->q2 = $cj['sifenwei'][1];
|
||||
$tongjiJg->q3 = $cj['sifenwei'][2];
|
||||
$tongjiJg->zhongshu = $cj['zhongshu'];
|
||||
$tongjiJg->zhongweishu = $cj['zhongweishu'];
|
||||
$tongjiJg->defenlv = $cj['defenlv'];
|
||||
$data = $tongjiJg->save();
|
||||
}else{
|
||||
@@ -87,6 +88,7 @@ class TongjiNj extends BaseModel
|
||||
'q2' => $cj['sifenwei'][1],
|
||||
'q3' => $cj['sifenwei'][2],
|
||||
'zhongshu' => $cj['zhongshu'],
|
||||
'zhongweihu' => $cj['zhongweishu'],
|
||||
'defenlv' => $cj['defenlv'],
|
||||
];
|
||||
|
||||
@@ -137,7 +139,7 @@ class TongjiNj extends BaseModel
|
||||
},
|
||||
'njJieguo' => function ($query) {
|
||||
$query->field('subject_id, school_id, ruxuenian, stu_cnt, chengji_cnt,
|
||||
avg, youxiu, jige, biaozhuncha, max, min, q1, q2, q3')
|
||||
avg, youxiu, jige, biaozhuncha, max, min, q1, q2, q3, zhongshu, zhongweishu')
|
||||
->with([
|
||||
'njSubject' => function($query){
|
||||
$query->field('id, lieming, jiancheng, title');
|
||||
|
||||
@@ -55,6 +55,7 @@ class TongjiSch extends BaseModel
|
||||
$tongjiJg->q2 = $cj['sifenwei'][1];
|
||||
$tongjiJg->q3 = $cj['sifenwei'][2];
|
||||
$tongjiJg->zhongshu = $cj['zhongshu'];
|
||||
$tongjiJg->zhongweishu = $cj['zhongweishu'];
|
||||
$tongjiJg->defenlv = $cj['defenlv'];
|
||||
$data = $tongjiJg->save();
|
||||
}else{
|
||||
@@ -76,6 +77,7 @@ class TongjiSch extends BaseModel
|
||||
,'q2' => $cj['sifenwei'][1]
|
||||
,'q3' => $cj['sifenwei'][2]
|
||||
,'zhongshu' => $cj['zhongshu']
|
||||
,'zhongweishu' => $cj['zhongweishu']
|
||||
,'defenlv' => $cj['defenlv']
|
||||
];
|
||||
$data = $this::create($tongjiJg);
|
||||
|
||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user