|
@ -319,7 +319,8 @@ async function groupStatisticOnline (ctx) { |
|
|
const maxOfflineTimeRes = strucIdArr.length ? await models.StructureOff.findAll({ |
|
|
const maxOfflineTimeRes = strucIdArr.length ? await models.StructureOff.findAll({ |
|
|
where: { |
|
|
where: { |
|
|
structure: { $in: strucIdArr }, |
|
|
structure: { $in: strucIdArr }, |
|
|
state: 0 |
|
|
state: 0, |
|
|
|
|
|
offline: { $gt: 720 } |
|
|
} |
|
|
} |
|
|
}) : [] |
|
|
}) : [] |
|
|
|
|
|
|
|
|