wenlele 2 years ago
parent
commit
90301dacc9
  1. 6
      api/app/lib/controllers/alarm/video.js
  2. 3
      api/app/lib/controllers/project/index.js
  3. 2
      api/app/lib/schedule/alarms_handle_statistics.js

6
api/app/lib/controllers/alarm/video.js

@ -46,7 +46,11 @@ async function alarmList(ctx) {
}
}
if (kindId) {
cameraWhereOption.push(`camera.kind_id = ${kindId}`)
let sql = `camera.kind_id = ${kindId}`
if (kindId == 1314) {
sql = `(camera.kind_id = ${kindId} OR camera.kind_id IS null)`
}
cameraWhereOption.push(sql)
}
let statusAlarmWhereOption = []

3
api/app/lib/controllers/project/index.js

@ -137,7 +137,8 @@ async function projectPManage (ctx) {
const bindedPRes = await models.ProjectCorrelation.findAll({
where: {
pepProjectId: { $ne: null }
pepProjectId: { $ne: null },
del: false
}
})

2
api/app/lib/schedule/alarms_handle_statistics.js

@ -7,7 +7,7 @@ module.exports = function (app, opts) {
const { database: anxinyun } = clickHouse.anxinyun.opts.config
const alarmHandleStatistics = app.fs.scheduleInit(
{
interval: '0 18 1 ? * 3',//每周一1点18触发
interval: '0 18 1 ? * 1',//每周一1点18触发
// immediate: true,
proRun: true,
},

Loading…
Cancel
Save