Browse Source

数据范围判断

dev
巴林闲侠 2 years ago
parent
commit
0ebb9582b2
  1. 8
      api/app/lib/utils/dataRange.js

8
api/app/lib/utils/dataRange.js

@ -39,8 +39,12 @@ module.exports = function (app, opts) {
const bindRes = await models.ProjectCorrelation.findAll(findOption)
// 获取不重复的 安心云项目id
let pepProjectIds = bindRes.map(b => b.pepProjectId)
let pepProjectIds = []
for (let b of bindRes) {
if (b.pepProjectId) {
pepProjectIds.push(b.pepProjectId)
}
}
// 查询项企项目的信息
let pepProjectWhereOptions = []
if (keywordTarget == 'pepProject' && keyword) {

Loading…
Cancel
Save