//递增
User::where(['id'=>1])->increment('stock');
//指定增量
User::where(['id'=>1])->increment('stock',2);
//递减
User::where(['id'=>1])->decrement('stock');
//指定减量
User::where(['id'=>1])->decrement('stock',2);
//递增
User::where(['id'=>1])->increment('stock');
//指定增量
User::where(['id'=>1])->increment('stock',2);
//递减
User::where(['id'=>1])->decrement('stock');
//指定减量
User::where(['id'=>1])->decrement('stock',2);