修改形参引用

This commit is contained in:
dzl
2025-09-26 15:56:10 +08:00
parent 9273f44d73
commit f6ae29ecce

View File

@@ -224,7 +224,7 @@ router.get('/list', async (req, res) => {
.where('user_type=?', 'supplier')
.where('is_delete=?', false)
if (name) {
userCountQuery.where('(username LIKE ? or phone LIKE ?)', name, name)
userCountQuery.where('(username LIKE ? or phone LIKE ?)', `%${name}%`, `%${name}%`)
}
const data = await userCountQuery.paginateWithCount(db, page, limit);
return res.json(data)