feat: enhance sparepart database queries and sparepart number validation

This commit is contained in:
2026-04-27 17:22:21 +07:00
parent b7fa4b3d07
commit 51f4ea2bff
4 changed files with 20 additions and 16 deletions

View File

@@ -203,6 +203,10 @@ function buildDynamicUpdate(table, data, where) {
setParts.push(`${key} = $${index++}`);
values.push(value);
}
else if (key !== undefined && key !== null) {
setParts.push(`${key} = $${index++}`);
values.push(value);
}
}
if (setParts.length === 0) {