hasMany(GoodsCategory::class, 'pid', 'id') ->where('is_deleted', CommonConstant::IS_DELETED_0) ->order('sort desc,id asc'); } }