This commit is contained in:
win10 committed 2020-10-20 16:34:15 +08:00
1 parent e018d8fe88
commit 4ed2f7f020
7 files changed
+125 -11

No files matched your search

+4 -2
View File
@@ -459,8 +459,9 @@ class JsRongyuInfo extends AdminBase
if($k == 0)
{
$names = $val->teacher->xingming;
}else{
$names = $names . '、' .$val->teacher->xingming;
}
$names = $names . '、' .$val->teacher->xingming;
}
$worksheet->getCell('C' . $myrowid)->setValue($names);
if($value->hj_school){
@@ -474,8 +475,9 @@ class JsRongyuInfo extends AdminBase
if($k == 0)
{
$names = $val->teacher->xingming;
}else{
$names = $names . '、' .$val->teacher->xingming;
}
$names = $names . '、' .$val->teacher->xingming;
}
$worksheet->getCell('F' . $myrowid)->setValue($names);
if($value->jx_category){
-2
View File
@@ -217,6 +217,4 @@ class BanZhuRen extends AdminBase
// 返回信息
return json($data);
}
}
+41
View File
@@ -39,6 +39,25 @@ class BanZhuRen extends BaseModel
}
// 查询任职结束时间
public function getJieShuAttr()
{
$str = '';
// 根据当前记录时间查询结束时间
$js = $this
->where('banji_id', $this->banji_id)
->where('bfdate', '>', $this->getData('bfdate'))
->order(['bfdate' => 'asc'])
->find();
if($js)
{
$str = $js->bfdate;
}
return $str;
}
// 根据条件查询学期
public function search($srcfrom)
{
@@ -97,4 +116,26 @@ class BanZhuRen extends BaseModel
return $data;
}
// 查询教师担任班主任情况
public function srcTeacher($srcfrom)
{
// 整理变量
$src = [
'teacher_id' => ''
];
$src = array_cover($srcfrom, $src) ;
$data = $this->where('teacher_id', $src['teacher_id'])
->order(['update_time'=>'desc'])
->with([
'glBanji' => function ($query) {
$query->field('id, ruxuenian, paixu')->append(['banJiTitle, biye']);
}
])
->append(['jieShu'])
->select();
return $data;
}
}
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff. Show more