Browse Source

道路养护返回图片

dev
巴林闲侠 2 years ago
parent
commit
f8f592662e
  1. 4
      api/app/lib/controllers/overview/conserve.js

4
api/app/lib/controllers/overview/conserve.js

@ -10,7 +10,7 @@ async function statistic (ctx) {
where: { where: {
reportType: 'conserve', reportType: 'conserve',
}, },
attributes: ['id', 'road', 'time', 'projectType', 'projectType', 'roadSectionStart', 'roadSectionEnd'], attributes: ['id', 'road', 'time', 'projectType', 'projectType', 'roadSectionStart', 'roadSectionEnd', 'scenePic', 'conserveBeforePic', 'conserveUnderwayPic', 'conserveAfterPic'],
include: [{ include: [{
model: models.User, model: models.User,
attributes: ['name'] attributes: ['name']
@ -18,9 +18,7 @@ async function statistic (ctx) {
} }
if (projectType) { if (projectType) {
findOption.where.projectType = projectType; findOption.where.projectType = projectType;
} }
const reportRes = await await models.Report.findAll(findOption) const reportRes = await await models.Report.findAll(findOption)

Loading…
Cancel
Save