ctx.query.ids = ctx.query.ids.length > 0 ? ctx.query.ids.join(',') : '';