This commit is contained in:
zlwu committed 2026-08-27 19:38:01 +08:00
1 parent 4611dbc2b2
commit ebf006eeff
46 files changed
+36802 -20974

No files matched your search

+7 -1
View File
@@ -455,16 +455,22 @@ class PlPlanProduct(Base):
class PlPlanProductBrandQty(Base):
"""计划产品归档品牌数量 pl_plan_product_brand_qty"""
"""计划产品归档品牌数量 pl_plan_product_brand_qty
stop_product_id 为空:计划产品级汇总;非空:装货/送货段产品行上的填写值。
"""
__tablename__ = "pl_plan_product_brand_qty"
id = Column(String(64), primary_key=True, comment="主键ID")
plan_id = Column(String(64), nullable=False, comment="计划ID")
plan_product_id = Column(String(64), nullable=False, comment="计划产品明细ID")
stop_type = Column(String(20), nullable=True, comment="load/delivery,空=计划级汇总")
stop_product_id = Column(String(64), nullable=True, comment="段产品行ID,空=计划级汇总")
brand_id = Column(String(64), nullable=False, default="", comment="品牌ID,空串=无品牌键")
brand_name = Column(String(100), nullable=True, comment="品牌名称")
qty = Column(DECIMAL(15, 3), nullable=False, default=0, comment="本品牌归档实际数量")
unit_price = Column(DECIMAL(15, 4), nullable=True, comment="本品牌归档单价")
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
order_num = Column(Integer, nullable=True, comment="排序号")
remark = Column(String(512), nullable=True, comment="备注")