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