diff --git a/api/app/lib/controllers/workOrder/index.js b/api/app/lib/controllers/workOrder/index.js index 16c65f4..af14c0c 100644 --- a/api/app/lib/controllers/workOrder/index.js +++ b/api/app/lib/controllers/workOrder/index.js @@ -37,7 +37,8 @@ async function getEnabledWorkflowProcess (ctx) { async function basicDataAllProject (ctx) { try { const { models } = ctx.fs.dc; - + const { userId, pepUserId, userInfo, pepUserInfo } = ctx.fs.api + console.log('userId', userId); const proRes = await models.ProjectCorrelation.findAndCountAll({ where: { del: false, @@ -62,8 +63,9 @@ async function basicDataAllProject (ctx) { FROM t_pim_project WHERE id IN (${[...pepProjectIds].join(',')}, -1) ` - ).toPromise() : + ).toPromise() || [] : [] + console.log('pepProjectRes', pepProjectRes); const list = proRes.map(p => { const corPro = pepProjectRes.find(pp => pp.id == p.pepProjectId) || {} return {