diff --git a/api/app/lib/controllers/patrolManage/patrolRecord.js b/api/app/lib/controllers/patrolManage/patrolRecord.js index 9fbcb75..698e6ee 100644 --- a/api/app/lib/controllers/patrolManage/patrolRecord.js +++ b/api/app/lib/controllers/patrolManage/patrolRecord.js @@ -49,7 +49,12 @@ async function findPatrolRecord(ctx, next) { }, include: generalInclude.concat([{ model: models.Point, - attributes: ['id', 'name'] + attributes: ['id', 'name'], + + }],[{ + model: models.Project, + where: { type: '管廊' }, + attributes: ['type'], }]) } // 小程序首页优化(只查对应数据条数,不需要详细数据)