fix:前台获获取当前一级类目的二级类目列表接口修改

This commit is contained in:
xjh 2023-09-03 23:29:19 +08:00
parent 3ab57b9355
commit 8db24c19f1

View File

@ -75,21 +75,22 @@ class CodeModuleCategory extends BaseController
$this->validate($params, ['code_module_category_guid|当前类目guid' => 'require']);
$con = Tool::getOptionalQuery(
['a.code_module_category_name', 'LIKE', 'son_category_name'],
);
$query = ModelCodeModuleCategory::alias('a')->field([
'a.code_module_category_guid' => 'guid',
'a.code_module_category_name' => 'name',
'a.code_module_category_ps' => 'tips',
'a.code_module_category_sort' => 'sort',
// 'a.code_module_category_global_mode',
// 'a.code_module_category_library_type',
'c.customer_guid' => 'customer_guid',
'c.customer_name' => 'customer_name',
])
// ->append(['langHit', 'libraryType'])
// ->hidden(['code_module_category_global_mode', 'code_module_category_library_type'])
->leftjoin('customer c', 'a.customer_guid = c.customer_guid')
->scope('auditPass')
->where('code_module_category_parent_guid', $params['code_module_category_guid'])
->where($con)
->select();
return msg(0, "获取当前一级类目的二级类目列表成功!", [