diff --git a/api/app/lib/controllers/workOrder/index.js b/api/app/lib/controllers/workOrder/index.js index a78fda0..4479687 100644 --- a/api/app/lib/controllers/workOrder/index.js +++ b/api/app/lib/controllers/workOrder/index.js @@ -47,7 +47,7 @@ async function basicDataAllProject (ctx) { }) let pepProjectIds = new Set() - for (let p of proRes.rows) { + for (let p of proRes) { if (p.pepProjectId) { pepProjectIds.add(p.pepProjectId) } @@ -66,7 +66,7 @@ async function basicDataAllProject (ctx) { ).toPromise() || [] : [] - const list = proRes.map(p => { + const list = proRes.map(p => { const corPro = pepProjectRes.find(pp => pp.id == p.pepProjectId) || {} return { value: p.id,