Op = Sequelize.Op;
router.get('/problem/catalog/:id', async ctx => {
let { id } = ctx.params
ctx.body = await Problem.findAll({ where: { catalog_id: { [Op.like]: `%${id}%` } } })
})
Op = Sequelize.Op;
router.get('/problem/catalog/:id', async ctx => {
let { id } = ctx.params
ctx.body = await Problem.findAll({ where: { catalog_id: { [Op.like]: `%${id}%` } } })
})
本文标题:sequelize 模糊查询
本文链接:https://www.haomeiwen.com/subject/tchtnctx.html
网友评论