diff --git a/api/app/lib/controllers/patrolManage/checkItems.js b/api/app/lib/controllers/patrolManage/checkItems.js index 738987c..a61aa33 100644 --- a/api/app/lib/controllers/patrolManage/checkItems.js +++ b/api/app/lib/controllers/patrolManage/checkItems.js @@ -52,7 +52,8 @@ async function getCheckItems(ctx, next) { attributes: ['id', 'name'], }, { model: models.PatrolTemplate - }] + }], + distinct: true, } if (name) { options.where.name = { $like: `%${name}%` };