This commit is contained in:
董海洋
2026-05-24 19:33:45 +08:00
parent ab0b7b4644
commit f2a9fec405
4 changed files with 281 additions and 27 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ async function getGoods(ctx) {
}
if (ctx.query.keyword) {
sql += ' AND (name LIKE ? OR barcode LIKE ?)'
params.push(`%${ctx.query.keyword}%`, `%${ctx.query.keyword}%`)
sql += ' AND name LIKE ?'
params.push(`%${ctx.query.keyword}%`)
}
if (ctx.query.inStock === '1') {