为什么number为0,reduceNumber返回的count还是1
insert into seckill (name, number, start_time, end_time)
values
('100000元秒杀菲亚特',0, '2018-11-01 00:00:00','2020-11-02 00:00:00');
调用
seckillDao.reduceNumber(seckillId, now)
返回的个数是1
insert into seckill (name, number, start_time, end_time)
values
('100000元秒杀菲亚特',0, '2018-11-01 00:00:00','2020-11-02 00:00:00');
调用
seckillDao.reduceNumber(seckillId, now)
返回的个数是1
2019-04-07
举报