修改形参引用
This commit is contained in:
@@ -224,7 +224,7 @@ router.get('/list', async (req, res) => {
|
|||||||
.where('user_type=?', 'supplier')
|
.where('user_type=?', 'supplier')
|
||||||
.where('is_delete=?', false)
|
.where('is_delete=?', false)
|
||||||
if (name) {
|
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);
|
const data = await userCountQuery.paginateWithCount(db, page, limit);
|
||||||
return res.json(data)
|
return res.json(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user