sequlize查询当天时间的所有数据
where: { [Sequelize.Op.and]: [ { ...query }, Sequelize.where( Sequelize.fn('DATE', Sequelize.col('created_date')), // 表对应的字段 Sequelize.literal('CURRENT_DATE') ) ] }
热爱前端技术
where: { [Sequelize.Op.and]: [ { ...query }, Sequelize.where( Sequelize.fn('DATE', Sequelize.col('created_date')), // 表对应的字段 Sequelize.literal('CURRENT_DATE') ) ] }