From f8f592662e621b40e1ebb29b7a415ac8400e7d04 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Fri, 12 Aug 2022 10:16:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E8=B7=AF=E5=85=BB=E6=8A=A4=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/overview/conserve.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)