Browse Source

pepProjectRes 保护

dev
巴林闲侠 2 years ago
parent
commit
6122a217d9
  1. 2
      api/app/lib/controllers/project/index.js

2
api/app/lib/controllers/project/index.js

@ -86,7 +86,7 @@ async function pomsProject (ctx) {
for (let p of proRes.rows) {
const corPro = pepProjectRes.find(pp => pp.id == p.pepProjectId)
const corPro = pepProjectRes.find(pp => pp.id == p.pepProjectId) || {}
p.dataValues.pepProjectName = corPro.project_name
p.dataValues.pepProjectIsDelete = corPro.isdelete
p.dataValues.constructionStatusId = corPro.construction_status_id

Loading…
Cancel
Save