fix: correct SQL parameter count in DiscreteMaterialPlanDAO batch insert
Fix parameter mismatch error when saving discrete material plan data. Changed placeholder count from 28 to 29 to match the 29 columns in the INSERT statement (Factory through BOMVersion). Resolves error: "The SQL contains 28 parameter markers, but 29 parameters were supplied" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,7 @@ class DiscreteMaterialPlanDAO(BaseDAO):
|
||||
SequenceNumber, MaterialCode, MaterialName, Specification, Model,
|
||||
DrawingNumber, MaterialQuality, PlanQuantity, Unit, RequiredDate,
|
||||
Warehouse, UnitUsage, CumulativeOutputQuantity, BOMVersion
|
||||
) VALUES ({self._build_placeholders(28)})
|
||||
) VALUES ({self._build_placeholders(29)})
|
||||
"""
|
||||
|
||||
total_inserted = 0
|
||||
|
||||
Reference in New Issue
Block a user