fix:代码块类目模型车修改

This commit is contained in:
xjh 2023-07-01 10:34:10 +08:00
parent 61395af1f6
commit 88462eb8e4

View File

@ -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);
}
}