fix:代码块类目模型车修改
This commit is contained in:
parent
61395af1f6
commit
88462eb8e4
@ -155,4 +155,18 @@ class CodeModuleCategory extends BaseModel
|
||||
{
|
||||
$query->where('code_module_category.code_module_category_parent_guid', self::MASTER_DEFAULT);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询范围-非主级类目(子类目)
|
||||
*
|
||||
* @param $query
|
||||
* @return void
|
||||
* @date 2023-06-29
|
||||
* @author xjh
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function scopeNotMaster($query): void
|
||||
{
|
||||
$query->where('code_module_category.code_module_category_parent_guid', '!=', self::MASTER_DEFAULT);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user