阅读背景:

如何在Sequelize中使用操作符?

来源:互联网 
var conditionalData = {
    id: {
        $Between: [11, 15]
    },
    technician_id: technicianId
};
var attributes = ['id', 'service_start_time', 'service_end_time'];
userServiceAppointmentModel.findAll({
    where: conditionalData,
    attributes: attributes
}).complete(function (err, serviceAppointmentResponse) {
    if (err) {
        var response = constants.responseErrors.FETCHING_DATA;
        return callback(err, null);
    } else {
        if (serviceAppointmentResponse.length > 0) {
            var response = constants.responseErrors.NO_AVAILABLE_SLOTS_IN_YOUR_CALENDAR;
            return callback(response, null);
        }
    }
);
var conditionalData = {
    id: {
        $Betw



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: