feat(shipping-notice): 新增通用解析能力,优化性能并清理遗留废弃代码
This commit is contained in:
1 parent
935bf26fa6
commit
7cfd5d167e
230 files changed
+9337
-10989
No files matched your search
@@ -202,6 +202,10 @@ def _mapping_value(
|
||||
value = order_values.get('__export_sequence')
|
||||
else:
|
||||
value = key
|
||||
# 订单 Schema 的缺失值是业务事实缺失,不能被 Excel 格式化器改写成空字符串;
|
||||
# 尤其金额字段不得由数量/单价等相邻字段隐式推导或伪装为已提供。
|
||||
if kind == 'order_field' and value is None:
|
||||
return None
|
||||
return _format_value(value, mapping['formatter'])
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user