@ -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 = []
@ -137,7 +137,8 @@ async function projectPManage (ctx) {
const bindedPRes = await models.ProjectCorrelation.findAll({
where: {
pepProjectId: { $ne: null }
pepProjectId: { $ne: null },
del: false
})
@ -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,
},