node 单个表加条件查询

export const getTeacher = query => {
  const wh = model.query(qb => {
    qb.where('isNoLecturer', '=', '1');
});

  return get(wh, { ...query });
};
原文地址:https://www.cnblogs.com/chendaoyin/p/9073125.html