|
|
@ -75,9 +75,11 @@ async function pomsProject (ctx) { |
|
|
|
let anxinProjectId = anxinProjectRes.map(v => v.id) |
|
|
|
|
|
|
|
findOption.where.$or = [ |
|
|
|
{ name: { $like: `%${keyword}%` } }, |
|
|
|
{ pepProjectId: { $in: projectId } }] |
|
|
|
{ name: { $like: `%${keyword}%` } },] |
|
|
|
if (projectId.length > 0) { |
|
|
|
findOption.where.$or.push({ pepProjectId: { $in: projectId } }) |
|
|
|
} |
|
|
|
if (anxinProjectId.length > 0) { |
|
|
|
findOption.where.$or.push({ anxinProjectId: { $contains: anxinProjectId } }) |
|
|
|
} |
|
|
|
|
|
|
|