//自增 $res=Db::name('accessories')
->where('id',$req['id'])
->inc('number',$req['number'])
->inc('allputin',$req['number'])
->update();
//自减 $res=Db::name('accessories')
->where('id',$req['id'])
->dec('number',$req['number'])
->dec('allputin',$req['number']) ->update();
|
请发表评论