diff --git a/route/src/main/java/pers/amos/mall/route/dal/repository/InventoryRepository.java b/route/src/main/java/pers/amos/mall/route/dal/repository/InventoryRepository.java index 4e6a67d..576cc7c 100644 --- a/route/src/main/java/pers/amos/mall/route/dal/repository/InventoryRepository.java +++ b/route/src/main/java/pers/amos/mall/route/dal/repository/InventoryRepository.java @@ -16,5 +16,5 @@ public interface InventoryRepository extends IService { /** * 更新库存(乐观锁) */ - boolean updateWithVersion(InventoryDO inventoryDO); + boolean update(InventoryDO inventoryDO); } diff --git a/route/src/main/java/pers/amos/mall/route/dal/repository/impl/InventoryRepositoryImpl.java b/route/src/main/java/pers/amos/mall/route/dal/repository/impl/InventoryRepositoryImpl.java index 7d2359b..f80ef2d 100644 --- a/route/src/main/java/pers/amos/mall/route/dal/repository/impl/InventoryRepositoryImpl.java +++ b/route/src/main/java/pers/amos/mall/route/dal/repository/impl/InventoryRepositoryImpl.java @@ -24,7 +24,7 @@ public class InventoryRepositoryImpl extends ServiceImpl