|
|
@ -34,7 +34,7 @@ async function list (ctx) { |
|
|
|
if (keywordTarget == 'tactics') { |
|
|
|
findOption.where.name = { $like: `%${keyword}%` } |
|
|
|
} else if (keywordTarget == 'struc') { |
|
|
|
let bindAnixinStrucRes = await clickHouse.projectManage.query(` |
|
|
|
let bindAnixinStrucRes = await clickHouse.anxinyun.query(` |
|
|
|
SELECT id, name FROM t_structure |
|
|
|
WHERE name LIKE '%${keyword}%' |
|
|
|
`).toPromise()
|
|
|
@ -144,7 +144,7 @@ async function list (ctx) { |
|
|
|
...p, |
|
|
|
pomsProject: corBind, |
|
|
|
structure: returnStruc, |
|
|
|
pushCount: corLogCount ? corLogCount.count : 0, |
|
|
|
pushCount: corLogCount ? corLogCount.dataValues.count : 0, |
|
|
|
receiverPepUser: corReceiver |
|
|
|
}) |
|
|
|
} |
|
|
@ -185,7 +185,7 @@ async function edit (ctx) { |
|
|
|
if (repeatRes) { |
|
|
|
throw `已有名称为[${name}]的同名策略` |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (pushId) { |
|
|
|
await models.AlarmPushConfig.update(storageData, { |
|
|
|
where: { |
|
|
|