|
|
@ -3,7 +3,7 @@ const moment = require('moment') |
|
|
|
const RAW_DATA = 'rawData'; |
|
|
|
const VBRAW_DATA = 'vbRawData'; |
|
|
|
const ALARM = 'alarm'; |
|
|
|
|
|
|
|
const AlarmState = { Creation: 0, CountUpgrade: 1, LevelUpgrade: 2, AutoElimination: 3, ManElimination: 4 }; |
|
|
|
|
|
|
|
async function getOrganizationsStruc (ctx) { |
|
|
|
try { |
|
|
@ -196,7 +196,7 @@ async function findDeviceLastData (ctx, deviceIds) { |
|
|
|
|
|
|
|
async function findSensorLastData (ctx) { |
|
|
|
try { |
|
|
|
const sensorIds = ctx.request.body.sensorIds; |
|
|
|
const sensorIds = ctx.request.body |
|
|
|
let rslt = await findDeviceLastData(ctx, sensorIds); |
|
|
|
// let rslt = [{ sensorId: "2aa1cad1-a52d-4132-8d84-2475034d5bc8", data: [] },
|
|
|
|
// { sensorId: "9f1702ff-560d-484e-8572-ef188ef73916", data: [] },
|
|
|
|