diff --git a/app/chengji/model/Chengji.php b/app/chengji/model/Chengji.php index ad9da94b..4d836d4b 100755 --- a/app/chengji/model/Chengji.php +++ b/app/chengji/model/Chengji.php @@ -46,7 +46,6 @@ class Chengji extends BaseModel ,'subject_id' => '' ,'searchval' => '' ,'user_id' => '' - ,'user_group' =>'' ); $src = array_cover($srcfrom, $src) ; $src['kaoshi_id'] = strToarray($src['kaoshi_id']); @@ -78,9 +77,8 @@ class Chengji extends BaseModel ->when(count($src['kaoshi_id']) == 0 && count($src['banji_id']) ==0, function($query) { $query->whereMonth('update_time'); }) - ->when(strlen($src['user_id']) > 0 && strlen($src['user_group']) > 0, function ($query) use($src){ - $query->where('user_id', $src['user_id']) - ->where('user_group', $src['user_group']); + ->when(strlen($src['user_id']) > 0, function ($query) use($src){ + $query->where('user_id', $src['user_id']); }) ->when(count($src['subject_id']) > 0, function ($query) use ($src) { $query->where('subject_id', 'in', $src['subject_id']); @@ -172,8 +170,8 @@ class Chengji extends BaseModel ,'subject_lieming' => $value->subjectName->lieming ,'defen' => $value->defen ,'defenlv' => $value->defenlv - ,'bweizhi' => $value->bweizhi - ,'xweizhi' => $value->xweizhi + ,'bpaixu' => $value->bpaixu + ,'njpaixu' => $value->njpaixu ]; $value->cjKaohao->cjStudent ? $data[$key]['student_name']=$value->cjKaohao->cjStudent->xingming : $data[$key]['student_name']= ''; } diff --git a/app/kaohao/model/SearchMore.php b/app/kaohao/model/SearchMore.php index 41c5effc..905c92cf 100755 --- a/app/kaohao/model/SearchMore.php +++ b/app/kaohao/model/SearchMore.php @@ -44,7 +44,7 @@ class SearchMore extends BaseModel }) ->with([ 'ksChengji' => function($query){ - $query->field('id, kaohao_id, subject_id, defen, bweizhi, xweizhi, qweizhi') + $query->field('id, kaohao_id, subject_id, defen, bpaixu, njpaixu') ->with([ 'subjectName' => function ($q) { $q->field('id, title, jiancheng, lieming'); diff --git a/app/login/controller/Index.php b/app/login/controller/Index.php index 9897ad55..5074fed7 100755 --- a/app/login/controller/Index.php +++ b/app/login/controller/Index.php @@ -17,14 +17,12 @@ class Index // 清除session(当前作用域) session(null); - // 获取系统名称和版本号 - $list['webtitle'] = config('shangma.webtitle'); - $list['version'] = config('shangma.version'); - // 获取信息 $sysbasemod = new \app\system\model\SystemBase; # 关键字 - $sys = $sysbasemod::sysInfo(); # 描述 - $list['webtitle'] = $sys->sys_title; + $list = $sysbasemod::sysInfo(); # 描述 + // 获取系统名称和版本号 + $list['version'] = config('shangma.version'); + View::assign('list',$list); diff --git a/app/login/view/index/index.html b/app/login/view/index/index.html index f9a74760..df1aa33f 100755 --- a/app/login/view/index/index.html +++ b/app/login/view/index/index.html @@ -2,7 +2,7 @@ - {$list['webtitle']} {$list['version']} + {$list['sys_title']} {$list['version']} @@ -32,7 +32,7 @@
-
{$list['webtitle']} {$list['version']}
+
{$list['sys_title']} {$list['version']}
diff --git a/app/studentSearchChengji/controller/Index.php b/app/studentSearchChengji/controller/Index.php index 072a82f6..4f0688b9 100755 --- a/app/studentSearchChengji/controller/Index.php +++ b/app/studentSearchChengji/controller/Index.php @@ -22,12 +22,9 @@ class Index extends StudentSearchBase // 获取信息 $sysbasemod = new \app\system\model\SystemBase; # 关键字 // 查询系统设置 - $list = $sysbasemod - ->order(['id'=>'desc']) - ->field('thinks, danwei') - ->find(); + $list = $sysbasemod::sysInfo(); # 描述 + $list['version'] = config('shangma.version'); # 版本号 // 设置要给模板赋值的信息 - $list['webtitle'] = config('shangma.webtitle'); # 系统名称 $stu = new \app\student\model\Student; $stuInfo = $stu->where('id', session('user_id')) diff --git a/app/studentSearchChengji/view/index/index.html b/app/studentSearchChengji/view/index/index.html index 5bd41d2e..0f7ae317 100755 --- a/app/studentSearchChengji/view/index/index.html +++ b/app/studentSearchChengji/view/index/index.html @@ -2,7 +2,7 @@ - {$list.webtitle} + {$list.sys_title}{$list.version} @@ -44,7 +44,7 @@