设备巡检优化

This commit is contained in:
caoqianming 2020-07-19 17:05:21 +08:00
parent 81815b6c3c
commit 3313ae33fa
1 changed files with 35 additions and 34 deletions

View File

@ -6811,6 +6811,7 @@ def apiinspectitem(req):
if a == 'adds':
data = json.loads(req.body.decode('utf-8'))
for i in data['items']:
if 'checked' in i and i['checked']:
obj = InspectItem()
obj.checked = True if 'checked' in i else False
if 'state' in i: