尝试优化学生成绩表

This commit is contained in:
cxdbz committed 2019-07-01 10:21:38 +08:00
1 parent 7d186d6c6a
commit aeb025cf6b
5 files changed
+60 -23

No files matched your search

-4
View File
@@ -328,10 +328,6 @@ class Index extends Base
->column('id');
}
$CJ = new Chengji;
$cjlist = $CJ->srcChengji();
// 实例化
$kaohao = new Kaohao;
+1
View File
@@ -26,5 +26,6 @@ class Chengji extends Base
{
return $this->belongsTo('\app\admin\model\Admin','user_id','id');
}
}
+16
View File
@@ -316,6 +316,22 @@ function arraySequence($array, $field = 'id', $sort = 'desc') {
}
/**
* 数组重新排序
* $array 要排序的数组
* $field 排序字段
* $sort 排序方式 SORT_DESC 降序;SORT_ASC 升序
* */
// function arraySequence($array, $field = 'id', $sort = 'desc') {
// $array = array();
// return $array;
// }
/**
* 根据键值,用数组2的值替换数组1的值
* $cover 覆盖数组,存储新值的数组
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff. Show more