@ -52,7 +52,8 @@ async function getCheckItems(ctx, next) {
attributes: ['id', 'name'],
}, {
model: models.PatrolTemplate
}]
}],
distinct: true,
}
if (name) {
options.where.name = { $like: `%${name}%` };