Browse Source

EM推送信息查询

dev
巴林闲侠 2 years ago
parent
commit
55fa5dd09b
  1. 14
      api/app/lib/controllers/push/config.js

14
api/app/lib/controllers/push/config.js

@ -8,23 +8,11 @@ async function list (ctx) {
const { clickHouse } = ctx.app.fs const { clickHouse } = ctx.app.fs
const { utils: { anxinStrucIdRange, pomsProjectRange } } = ctx.app.fs const { utils: { anxinStrucIdRange, pomsProjectRange } } = ctx.app.fs
const { keyword, keywordTarget, alarmType, state, tactics, pomsProjectId } = ctx.query const { keyword, keywordTarget, alarmType, state, tactics, pomsProjectId } = ctx.query
// let projectCorrelationWhere = {
// del: false,
// }
// if (state == 'notYet') {
// projectCorrelationWhere.pepProjectId = { $ne: null }
// }
let findOption = { let findOption = {
where: { where: {
del: false del: false
}, },
order: [['id', 'desc']], order: [['id', 'desc']],
// includes: [{
// model: models.ProjectCorrelation,
// where: projectCorrelationWhere,
// required: true
// }]
} }
let anxinStrucsRange = await anxinStrucIdRange({ let anxinStrucsRange = await anxinStrucIdRange({
@ -120,7 +108,7 @@ async function list (ctx) {
continue continue
} }
} }
} else if(state == 'notYet'){ } else if (state == 'notYet') {
continue continue
} }
filterBinds.push(corBind) filterBinds.push(corBind)

Loading…
Cancel
Save