重构查询
This commit is contained in:
1 parent
bb631a3643
commit
8f5784917c
73 files changed
+2634
-371
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\zhengli\controller;
|
||||
|
||||
use think\Request;
|
||||
|
||||
class CanKao
|
||||
{
|
||||
// 获取参考学科
|
||||
public function cankaoSubjectIdAndLieming($srcfrom)
|
||||
{
|
||||
$ksset = new \app\kaoshi\model\KaoshiSet;
|
||||
$ksSubject = $ksset->srcSubject($srcfrom);
|
||||
if(count($ksSubject)==0)
|
||||
{
|
||||
return $data = array();
|
||||
}
|
||||
$xk = array();
|
||||
foreach ($ksSubject as $key => $value) {
|
||||
$xk[$value['id']] = $value['lieming'];
|
||||
}
|
||||
return $xk;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user