risingLee
0065a1aea4
原来的代码试图访问 test_order_id 字段,但 TestWorkOrder 模型中没有这个字段。正确的字段名是:
...
order_id - 关联的订单ID
batch_id - 工单批次ID
2026-01-09 01:56:22 +08:00
risingLee
d9fd368d55
工单生成订单,订单逻辑调整
2026-01-09 01:38:07 +08:00
risingLee
51dacb8746
权限问题修复,标签bug修复
2026-01-08 11:39:47 +08:00
risingLee
4b21dcd1ce
样品管理中提交工单
2026-01-07 01:10:51 +08:00
risingLee
c72c71ff13
Use model_dump(exclude_unset=True, by_alias=True) to get camelCase keys when constructing EditWarehouseSampleModel
...
Check for 'sampleId' (camelCase) instead of 'sample_id'
For new samples, use a separate model_dump() without by_alias=True to get snake_case keys for the DO object
2026-01-05 15:22:58 +08:00
risingLee
4d4908bb2f
修复bug
2026-01-04 23:56:11 +08:00
risingLee
49a9cfc035
as_query 方法的参数类型定义有问题。receipt_id: int = None 应该是 receipt_id: Optional[int] = None
2026-01-04 16:16:03 +08:00
risingLee
44522f2572
修复了测试工单统计的错误
2025-12-30 15:52:51 +08:00
risingLee
753dd62511
✅ 数据库字段与VO模型不匹配导致的序列化错误
...
✅ 空值处理不当导致的异常
✅ 缺少事务回滚机制
✅ 错误信息不清晰
✅ 样品数量计算可能返回None
2025-12-29 22:22:13 +08:00
risingLee
3d82c0ea1e
首次提交
2025-12-19 10:12:59 +08:00