将自动统计修改成手动统计

This commit is contained in:
松树 committed 2020-01-07 15:01:21 +08:00
1 parent 92cffea956
commit b9c3f2a041
27 files changed
+627 -394

No files matched your search

+20 -1
View File
@@ -73,7 +73,6 @@ class Bjtongji extends BaseController
// 统计成绩
$btj = new BTJ;
$data = $btj->tjBanji($src);
@@ -271,5 +270,25 @@ class Bjtongji extends BaseController
}
// 统计各班级成绩
public function tongji()
{
// 获取变量
$kaoshi = input('post.kaoshi');
// 统计成绩
$btj = new BTJ;
$data = $btj->tjBanji($kaoshi);
$data == true ? $data=['msg'=>'统计成功','val'=>1] : $data=['msg'=>'数据处理错误','val'=>0];
return json($data);
}
}
+18
View File
@@ -249,4 +249,22 @@ class Njtongji extends BaseController
ob_flush();
flush();
}
// 统计各班级成绩
public function tongji()
{
// 获取变量
$kaoshi = input('post.kaoshi');
// 统计成绩
$ntj = new NTJ;
$data = $ntj->tjNianji($kaoshi);
$data == true ? $data=['msg'=>'统计成功','val'=>1] : $data=['msg'=>'数据处理错误','val'=>0];
return json($data);
}
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace app\chengji\controller;
// 引用控制器基类
use app\BaseController;
// 引用成绩统计数据模型
use app\chengji\model\TongjiSch as SCHTJ;
class Schtongji
{
// 统计全区年级成绩
public function tongji()
{
// 获取变量
$kaoshi = input('post.kaoshi');
// 统计成绩
$schtj = new SCHTJ;
$data = $schtj->tjSchool($kaoshi);
$data == true ? $data=['msg'=>'统计成功','val'=>1] : $data=['msg'=>'数据处理错误','val'=>0];
return json($data);
}
}
Loaded 3 of 27 files, more files were not shown because too many files have changed in this diff. Show more