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;