8分12秒的decreaseStock(Integer itemId, Integer amount) 什么要加上事物?
Service層的 decreaseStock(Integer itemId, Integer amount)? 方法我覺得不加事物也行。因為方法內(nèi)只有一個更新操作。老師覺得我的想法正確嗎?
Service層的 decreaseStock(Integer itemId, Integer amount)? 方法我覺得不加事物也行。因為方法內(nèi)只有一個更新操作。老師覺得我的想法正確嗎?
2020-05-18
舉報