整体下架:
update product set quantity=0 where model=”model号”;
根据相应的产品模型号和尺码进行操作:
$sql=” update product_option_value set quantity=0,subtract=1 where product_id=(select product_id from product where model='”.$model.”‘) and option_value_id=(select option_value_id from option_value_description where name='”.$size.”‘)”;
关注公众号,了解更多it技术(it问答网)