试卷下载标签doc格式换成xls格式
This commit is contained in:
1 parent
ca8a5900a6
commit
baae7c95a9
7 files changed
+195
-39
No files matched your search
@@ -2,14 +2,28 @@
|
||||
|
||||
namespace app\chengji\controller;
|
||||
|
||||
use think\Controller;
|
||||
use think\Request;
|
||||
// 引用控制器基类
|
||||
use app\common\controller\Base;
|
||||
|
||||
class Tongji extends Controller
|
||||
class Tongji extends Base
|
||||
{
|
||||
// 成绩统计汇总表
|
||||
public function list()
|
||||
// 年级成绩汇总
|
||||
public function nianji()
|
||||
{
|
||||
// 根据考试号获取成绩统计结果
|
||||
// 实例化成绩数据模型
|
||||
$cj = new \app\chengji\model\Chengji;
|
||||
|
||||
// 根据考试号和年级获取考试成绩
|
||||
$cjlist = $cj->searchNianji(1,'一年级');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$tj = new \app\chengji\model\Tongji();
|
||||
$yuwen = $cjlist->column('yuwen');
|
||||
dump($yuwen);
|
||||
$a = $tj->tongji($yuwen);
|
||||
dump($a);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user