feat: envdata增加氨逃逸字段

This commit is contained in:
caoqianming 2024-05-11 15:40:50 +08:00
parent 829e0b59f3
commit 2647992b42
2 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,7 @@ CREATE TABLE public.enp_envdata (
"nox_rtd" float,
"nox_zs" float,
"o2" float,
"ammonia_e" float,
CONSTRAINT enp_envdata_pkey PRIMARY KEY (timex, equipment_id)
);
SELECT create_hypertable('enp_envdata', 'timex');

View File

@ -72,6 +72,7 @@ class EnvData(models.Model):
"nox_rtd",
"nox_zs",
"o2",
"ammonia_e"
]
RUNING_STATE_CHOICES = ((10, "运行"), (20, "待机"), (30, "停机"), (40, "故障"), (50, "未知"))
@ -94,6 +95,7 @@ class EnvData(models.Model):
so2_zs = models.FloatField("二氧化硫折算(mg/m3)", null=True, blank=True)
nox_rtd = models.FloatField("氮氧化物实测(mg/m3)", null=True, blank=True)
nox_zs = models.FloatField("氮氧化物折算(mg/m3)", null=True, blank=True)
ammonia_e = models.FloatField("氨逃逸(mg/m3)", null=True, blank=True)
o2 = models.FloatField("含氧量(%)", null=True, blank=True)
class Meta: