教师查询个人荣誉和课题

This commit is contained in:
巴掌 committed 2020-08-27 19:05:20 +08:00
1 parent 670b8fa4aa
commit dfe3a4d173
13 files changed
+483 -344

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
<?php
declare (strict_types = 1);
namespace app\tools\controller;
// 引用控制器基类
use app\BaseController;
class TeacherInfo extends BaseController
{
// 查询教师荣誉
public function srcRy()
{
// 获取参数
$src = $this->request
->only([
'page' => '1'
,'limit' => '10'
,'field' => 'update_time'
,'order' => 'desc'
,'teacher_id' => ''
], 'POST');
// 查询数据
$rongyu = new \app\rongyu\model\JsRongyuInfo;
$data = $rongyu->srcTeacherRongyu($src['teacher_id'])
->visible([
'id'
,'title'
,'ryTuce' => [
'title'
,'fzSchool'
]
,'jiangxiang_id'
,'hjshijian'
,'update_time'
]);
$data = reSetObject($data, $src);
return json($data);
}
// 查询教师课题
public function srcKt()
{
// 获取参数
$src = $this->request
->only([
'page' => '1'
,'limit' => '10'
,'field' => 'update_time'
,'order' => 'desc'
,'teacher_id' => ''
], 'POST');
// 查询数据
$keti = new \app\keti\model\KetiInfo;
$data = $keti->srcTeacherKeti($src['teacher_id']);
$data = reSetObject($data, $src);
return json($data);
}
}