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