Browse Source

fix 9322 检查项设定-页面数量显示错误

master
liujiangyong 2 years ago
parent
commit
8361c9965e
  1. 3
      api/app/lib/controllers/patrolManage/checkItems.js

3
api/app/lib/controllers/patrolManage/checkItems.js

@ -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}%` };

Loading…
Cancel
Save