Sfoglia il codice sorgente

修改推送流量类型为decimal

zhangdongming 3 anni fa
parent
commit
0a4db6e50f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Model/models.py

+ 2 - 2
Model/models.py

@@ -2783,8 +2783,8 @@ class UnicomFlowPush(models.Model):
     type = models.SmallIntegerField(default=0, verbose_name='流量推送类型')
     type = models.SmallIntegerField(default=0, verbose_name='流量推送类型')
     combo_order_id = models.CharField(max_length=32, default='', verbose_name='当前订单套餐id')
     combo_order_id = models.CharField(max_length=32, default='', verbose_name='当前订单套餐id')
     serial_no = models.CharField(max_length=32, default='', verbose_name='序列号')
     serial_no = models.CharField(max_length=32, default='', verbose_name='序列号')
-    flow_total_usage = models.IntegerField(default=0, verbose_name=u'当月实际流量用量 单位(MB)')
-    flow_total = models.IntegerField(default=0, verbose_name=u'流量总量 单位(MB)')
+    flow_total_usage = models.DecimalField(default=0, max_digits=10, decimal_places=2, verbose_name=u'当月实际流量用量 单位(MB)')
+    flow_total = models.DecimalField(default=0, max_digits=10, decimal_places=2, verbose_name=u'流量总量 单位(MB)')
     status = models.SmallIntegerField(default=0, verbose_name=u'状态{0:待推送,1:已推送}')
     status = models.SmallIntegerField(default=0, verbose_name=u'状态{0:待推送,1:已推送}')
     updated_time = models.IntegerField(default=0, verbose_name='更新时间')
     updated_time = models.IntegerField(default=0, verbose_name='更新时间')
     created_time = models.IntegerField(default=0, verbose_name='创建时间')
     created_time = models.IntegerField(default=0, verbose_name='创建时间')