wangyu
c4dc5ded57
fix(plan): 修复生产计划新增无效的全部根因
1. MillProductionPlan Domain:将 sgSign/inMatLen/inMatWt/inMatDia/inMatInDia
重命名为前端一致的 alloyNo/inMatLength/inMatWeight/inMatOd/inMatId,新增 passCount
2. MillProductionPlanMapper.xml:
- resultMap 用老 DB 列名(sg_sign/in_mat_wt 等)映射新 Java 属性名
- INSERT/UPDATE/SELECT 全部对齐,keyProperty 改为 planId
- ORDER BY 改为 plan_id(原为不存在的 id 列)
- 新增 pass_count 映射(ALTER TABLE 已在服务器执行)
3. MillProductionPlanServiceImpl:insert 自动生成 planNo(P+时间戳)
防止 plan_no NOT NULL 约束导致插入失败
4. MillProcessRecipeMapper.xml:keyProperty="id" 改为 keyProperty="recipeId"
修复 addRecipe 后 recipe.getRecipeId() 返回 null 导致无法绑定计划
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 13:38:01 +08:00
..
2026-04-29 13:38:01 +08:00
2026-04-28 14:44:13 +08:00