fix:material_category
This commit is contained in:
@@ -105,12 +105,10 @@ class MaterialCategoryService extends BaseService{
|
||||
*/
|
||||
public function list(): array
|
||||
{
|
||||
$cityId = (int)$this->request->input('query_city_id');
|
||||
$cityId = (int)$this->request->input('city_id');
|
||||
|
||||
$list = $this->MaterialCategoryModel
|
||||
->when($cityId > 0,function($query) use($cityId){
|
||||
$query->where('city_id',$cityId);
|
||||
})
|
||||
->where('city_id',$cityId)
|
||||
->where('is_del',MaterialCode::IS_NO_DEL)->get()->toArray();
|
||||
|
||||
$tree = [];
|
||||
|
||||
Reference in New Issue
Block a user