fix asset module database migration
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
kkfluous
2026-06-17 11:53:39 +08:00
parent c13f341d5e
commit 91202bdf71
11 changed files with 346 additions and 291 deletions
+2 -2
View File
@@ -149,8 +149,8 @@ async function buildPlateLookup(plates: Set<string>): Promise<Map<string, string
const placeholders = arr.map(() => '?').join(',');
const [rows] = await pool.query<RowDataPacket[]>(
`SELECT plate_number, CAST(id AS CHAR) AS truck_id
FROM tab_truck
WHERE is_deleted = 0 AND plate_number IN (${placeholders})`,
FROM vehicle_info
WHERE del_flag = '0' AND plate_number IN (${placeholders})`,
arr,
);
const map = new Map<string, string>();