|
|
- ` (${item.id}, ${item.parentId === 0 ? 'NULL' : item.parentId}, '${escapeString(item.name)}', ${item.level}, '${item.code}', 0, 0, NOW(), NOW())`
|
|
|
+ ` (${item.id}, ${item.parentId === null ? 'NULL' : item.parentId}, '${escapeString(item.name)}', '${item.level}', '${item.code}', 0, 0, NOW(), NOW())`
|