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:
Misaka_Company
2026-02-10 16:18:17 +08:00
parent 21f5827cd3
commit 72468ddf23

View File

@@ -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