Browse Source

debug 单一数据源获取项目信息

dev
巴林闲侠 2 years ago
parent
commit
e79696b6cb
  1. 5
      api/app/lib/controllers/workOrder/index.js

5
api/app/lib/controllers/workOrder/index.js

@ -37,8 +37,7 @@ 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,
@ -78,7 +77,7 @@ async function basicDataAllProject (ctx) {
ctx.status = 200;
ctx.body = list
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined

Loading…
Cancel
Save