From ffcaf30af4498c5e51b2eeb4325c45e19c52c7e4 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 22 Feb 2023 10:19:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=A3=80=E6=9F=A5=E9=A1=B9?= =?UTF-8?q?=E5=88=86=E7=BB=84=E7=9A=84=E5=90=8C=E6=97=B6=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/patrolManage/checkItems.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/app/lib/controllers/patrolManage/checkItems.js b/api/app/lib/controllers/patrolManage/checkItems.js index 1613e51..dc7da16 100644 --- a/api/app/lib/controllers/patrolManage/checkItems.js +++ b/api/app/lib/controllers/patrolManage/checkItems.js @@ -5,7 +5,11 @@ async function getGroup(ctx, next) { let rslt = []; try { const models = ctx.fs.dc.models; - let list = await models.CheckItemsGroup.findAll({}); + let list = await models.CheckItemsGroup.findAll({ + include: [{ + model: models.CheckItems, + }] + }); rslt = list; error = null;