feat: 新增计算保留上月小数位数

This commit is contained in:
han0
2025-01-21 16:04:21 +08:00
parent 3f431faef4
commit f5065d1ee7
4 changed files with 11 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ class PricePublish(db.Model, Model, OperationTrackMixin, BaseModelMixin):
status = Column('STATUS', Integer, default=0, comment='状态')
type = Column('TYPE', Integer, default=0, comment='类型')
unit = Column('UNIT', String(128), default='', comment='单位')
display_digit = Column('DISPLAY_DIGIT', Integer, default='', comment='显示小数位数')
__tablename__ = 'PRICE_PUBLISH'
__table_args__ = (

View File

@@ -36,6 +36,7 @@ class PriceResult(db.Model, Model, OperationTrackMixin, BaseModelMixin):
weight_survey = Column('WEIGHT_SURVEY', Numeric(16, 4), default=0, comment='')
spec = Column('SPEC', String(128), default='', comment='规格')
unit = Column('UNIT', String(128), default='', comment='单位')
display_digit = Column('DISPLAY_DIGIT', Integer, default='', comment='显示小数位数')
__tablename__ = 'PRICE_RESULT'
__table_args__ = (