请问怎么让下面的修改语句连起来执行,或者说在mybatis里怎么根据多个条件的不同值循环修改表中的数据?
UPDATE erp_goods_stock_info
SET goods_num = goods_num - 2
WHERE stock_key = 'SHK2kgdqJodlFGFNKgF'
AND goods_key = 'GDo1Xgageof3WPFyAg'
UPDATE erp_goods_stock_info
SET
goods_num = goods_num - 1
WHERE stock_key = 'SHK2kgdqJodlFGFNKgF'
AND goods_key = 'GDTJDvqhfyElnJ5uzO'
qq_大力_9