d7d749c1a90883e34e26aa947a86b16575R53">53
+    ]

+ 4 - 0
equipment/models.py

@@ -246,6 +246,8 @@ class ThermometerMeasureLogInfo(BaseModelMixin):
246 246
 
247 247
     point_id = models.CharField(_('point_id'), max_length=32, blank=True, null=True, help_text='隔离点唯一标识', db_index=True)
248 248
 
249
+    user_id = models.CharField(_('user_id'), max_length=32, blank=True, null=True, help_text='用户唯一标识')
250
+
249 251
     macid = models.CharField(_('macid'), max_length=32, blank=True, null=True, help_text='设备号')
250 252
     sn = models.CharField(_('sn'), max_length=32, blank=True, null=True, help_text='序列号')
251 253
 
@@ -274,7 +276,9 @@ class ThermometerMeasureLogInfo(BaseModelMixin):
274 276
             'point_id': self.point_id,
275 277
             'macid': self.macid,
276 278
             'sn': self.sn,
279
+            'user_id': self.user_id,
277 280
             'temperature': self.temperature,
281
+            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d'),
278 282
         }
279 283
 
280 284
 

tamron - Gogs: Go Git Service

Nenhuma Descrição

Brightcells: 1db38b5f89 Initial 8 anos atrás
..
icon.png 1db38b5f89 Initial 8 anos atrás
laydate.css 1db38b5f89 Initial 8 anos atrás