From 5afc7bbb58538e95c44480e0e793a11001e644a4 Mon Sep 17 00:00:00 2001 From: amos Date: Wed, 4 Mar 2026 16:40:34 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../amos/mall/route/dal/repository/InventoryRepository.java | 2 +- .../route/dal/repository/impl/InventoryRepositoryImpl.java | 2 +- .../java/pers/amos/mall/route/service/RouteServiceImpl.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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