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; // }