试卷下载标签doc格式换成xls格式

This commit is contained in:
cxdbz committed 2018-12-02 15:04:07 +08:00
1 parent ca8a5900a6
commit baae7c95a9
7 files changed
+195 -39

No files matched your search

+20 -6
View File
@@ -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);
}
}