师生名单修改完成
This commit is contained in:
1 parent
7e9310e4dd
commit
39eff8122d
16 files changed
+412
-426
No files matched your search
+2
-2
@@ -127,7 +127,7 @@
|
||||
|
||||
|
||||
// 单位列表
|
||||
function schoolList($low = '班级', $high = '其它级')
|
||||
function schoolList($low = '班级', $high = '其它级', $order = 'asc')
|
||||
{
|
||||
// 实例化单位模型
|
||||
$sch = new \app\system\model\School;
|
||||
@@ -141,7 +141,7 @@
|
||||
// 查询学校
|
||||
$schlist = $sch->where('jibie_id', 'between', [$catlist[$low], $catlist[$high]])
|
||||
->where('status', 1)
|
||||
->order(['paixu'])
|
||||
->order(['jibie_id'=>$order,'paixu'])
|
||||
->field('id, title, jiancheng')
|
||||
->select();
|
||||
|
||||
|
||||
@@ -53,15 +53,11 @@
|
||||
<br>
|
||||
修复考号生成错误、考试成绩查看错误
|
||||
<br>
|
||||
env 配置文件中增加 session 设置
|
||||
<br>
|
||||
增加班级历次成绩查看
|
||||
<br>
|
||||
外键字段名使用下划线
|
||||
env 配置文件中增加 session 设置、班级历次成绩查看
|
||||
<br>
|
||||
修改删除方法
|
||||
<br>
|
||||
整理代码
|
||||
全部整理代码重排版,规范字段、方法命名,部分数据操作放到数据模型中、拆分几个控制器
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
<?php
|
||||
|
||||
// 性别
|
||||
function srcSex($str)
|
||||
{
|
||||
if($str == '男')
|
||||
{
|
||||
$sex = 1;
|
||||
}else if($str == '女'){
|
||||
$sex = 0;
|
||||
}else{
|
||||
$sex = 2;
|
||||
}
|
||||
return $sex;
|
||||
}
|
||||
|
||||
|
||||
// 查找学科
|
||||
function srcSubject($str)
|
||||
{
|
||||
// 实例化学科数据模型
|
||||
$subject = new \app\teach\model\Subject;
|
||||
|
||||
// 查询学科id
|
||||
$subjectId = $subject->where('title',$str)->value('id');
|
||||
|
||||
return $subjectId;
|
||||
}
|
||||
|
||||
// 查找职务
|
||||
function srcZw($str)
|
||||
{
|
||||
// 实例化类型数据模型
|
||||
$category = new \app\system\model\Category;
|
||||
|
||||
// 查询学科id
|
||||
$categoryId = $category->where('pid',107)->where('title',$str)->value('id');
|
||||
|
||||
return $categoryId;
|
||||
}
|
||||
|
||||
|
||||
// 查找学历
|
||||
function srcXl($str)
|
||||
{
|
||||
// 实例化类型数据模型
|
||||
$category = new \app\system\model\Category;
|
||||
|
||||
// 查询学科id
|
||||
$categoryId = $category->where('pid',105)->where('title',$str)->value('id');
|
||||
|
||||
return $categoryId;
|
||||
}
|
||||
|
||||
// 查找职称
|
||||
function srcZc($str)
|
||||
{
|
||||
// 实例化类型数据模型
|
||||
$category = new \app\system\model\Category;
|
||||
|
||||
// 查询学科id
|
||||
$categoryId = $category->where('pid',106)->where('title',$str)->value('id');
|
||||
|
||||
return $categoryId;
|
||||
}
|
||||
|
||||
Loaded 3 of 16 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user