wuchen 2 сар өмнө
parent
commit
6640526237

+ 4 - 4
alien-store/src/main/java/shop/alien/store/service/impl/StorePlatformMenuServiceImpl.java

@@ -357,7 +357,7 @@ public class StorePlatformMenuServiceImpl extends ServiceImpl<StorePlatformMenuM
             // 3. 批量删除(逻辑删除)
             if (!CollectionUtils.isEmpty(menuIdsToDelete)) {
                 LambdaUpdateWrapper<StorePlatformMenu> wrapper = new LambdaUpdateWrapper<>();
-                wrapper.eq(StorePlatformMenu::getMenuId, menuIdsToDelete)
+                wrapper.in(StorePlatformMenu::getMenuId, menuIdsToDelete)
                        .eq(StorePlatformMenu::getDelFlag, "0")
                        .set(StorePlatformMenu::getDelFlag, "2");
                 int count = storePlatformMenuMapper.update(null, wrapper);
@@ -390,7 +390,7 @@ public class StorePlatformMenuServiceImpl extends ServiceImpl<StorePlatformMenuM
             // 3. 批量删除(逻辑删除)
             if (!CollectionUtils.isEmpty(menuIdsToDelete)) {
                 LambdaUpdateWrapper<StorePlatformMenu> wrapper = new LambdaUpdateWrapper<>();
-                wrapper.eq(StorePlatformMenu::getMenuId, menuIdsToDelete)
+                wrapper.in(StorePlatformMenu::getMenuId, menuIdsToDelete)
                        .eq(StorePlatformMenu::getDelFlag, "0")
                        .set(StorePlatformMenu::getDelFlag, "2");
                 int count = storePlatformMenuMapper.update(null, wrapper);
@@ -487,7 +487,7 @@ public class StorePlatformMenuServiceImpl extends ServiceImpl<StorePlatformMenuM
             // 3. 批量更新状态
             if (!CollectionUtils.isEmpty(menuIdsToUpdate)) {
                 LambdaUpdateWrapper<StorePlatformMenu> wrapper = new LambdaUpdateWrapper<>();
-                wrapper.eq(StorePlatformMenu::getMenuId, menuId)
+                wrapper.in(StorePlatformMenu::getMenuId, menuIdsToUpdate)
                        .eq(StorePlatformMenu::getDelFlag, "0")
                        .set(StorePlatformMenu::getStatus, newStatus);
                 int count = storePlatformMenuMapper.update(null, wrapper);
@@ -520,7 +520,7 @@ public class StorePlatformMenuServiceImpl extends ServiceImpl<StorePlatformMenuM
             // 3. 批量更新状态
             if (!CollectionUtils.isEmpty(menuIdsToUpdate)) {
                 LambdaUpdateWrapper<StorePlatformMenu> wrapper = new LambdaUpdateWrapper<>();
-                wrapper.eq(StorePlatformMenu::getMenuId, menuId)
+                wrapper.in(StorePlatformMenu::getMenuId, menuIdsToUpdate)
                        .eq(StorePlatformMenu::getDelFlag, "0")
                        .set(StorePlatformMenu::getStatus, newStatus);
                 int count = storePlatformMenuMapper.update(null, wrapper);