diff --git a/api/app/lib/controllers/overview/conserve.js b/api/app/lib/controllers/overview/conserve.js index 3e98400b..e8d10250 100644 --- a/api/app/lib/controllers/overview/conserve.js +++ b/api/app/lib/controllers/overview/conserve.js @@ -10,7 +10,7 @@ async function statistic (ctx) { where: { reportType: 'conserve', }, - attributes: ['id', 'road', 'time', 'projectType', 'projectType', 'roadSectionStart', 'roadSectionEnd'], + attributes: ['id', 'road', 'time', 'projectType', 'projectType', 'roadSectionStart', 'roadSectionEnd', 'scenePic', 'conserveBeforePic', 'conserveUnderwayPic', 'conserveAfterPic'], include: [{ model: models.User, attributes: ['name'] @@ -18,9 +18,7 @@ async function statistic (ctx) { } if (projectType) { - findOption.where.projectType = projectType; - } const reportRes = await await models.Report.findAll(findOption)