完成学校与教师
This commit is contained in:
1 parent
25cc4897eb
commit
0dbee995fc
41 files changed
+2118
-37
No files matched your search
@@ -6,16 +6,6 @@ use app\common\model\Base;
|
||||
|
||||
class Category extends Base
|
||||
{
|
||||
// 获取类别列表
|
||||
public function getCategory($id = 0)
|
||||
{
|
||||
return $this
|
||||
->where('pid',$id)
|
||||
->where('status',1)
|
||||
->field('id,title')
|
||||
->select();
|
||||
}
|
||||
|
||||
|
||||
// 父级类别获取器
|
||||
public function getPidAttr($value)
|
||||
|
||||
Reference in new issue
Block a user