fix: resolve production ID case-sensitivity and SQL Server compatibility issues
- Add getTableName() method to convert MySQL table names to SQL Server format - Use queryWithParams with sql.NVarChar for proper SQL Server parameter handling - Implement case-insensitive matching for production IDs (e.g., 26b10433 vs 26B10433) - Align resolver logic with validation-handler.ts for consistent database queries Co-Authored-By: Claude (glm-5) <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import type { ErpSession } from './erp.types'
|
||||
|
||||
export interface ExtractorInput {
|
||||
orderNumbers: string[]
|
||||
batchSize?: number
|
||||
@@ -15,3 +17,22 @@ export interface OrderInfo {
|
||||
orderNumber: string
|
||||
productionId: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Input for ExtractorCore - handles web page operations
|
||||
*/
|
||||
export interface ExtractorCoreInput {
|
||||
session: ErpSession
|
||||
orderNumbers: string[]
|
||||
downloadDir: string
|
||||
batchSize: number
|
||||
onProgress?: (message: string, progress: number) => void
|
||||
}
|
||||
|
||||
/**
|
||||
* Result from ExtractorCore - list of downloaded file paths
|
||||
*/
|
||||
export interface ExtractorCoreResult {
|
||||
downloadedFiles: string[]
|
||||
errors: string[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user