jjzjj

technician

全部标签

mysql - 如何在 sequelize 的同一查询中使用 AND 和 OR 运算符?

我执行了下面的查询但是我给出了错误。我想要最后发布的SQL查询的结果。userServiceAppointmentModel.findAll({where:{technician_id:resultsFromAuthentication.technician_id,is_confirmed_by_user:1,$or:{service_start_time:{gte:curLocalDate},service_running_status:1}},attributes:attributes}).complete(function(err,appointmentResponse){if(