From 7c9c6d6a02019353e4bbd206d4536c5a18a15548 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Tue, 23 Dec 2025 15:33:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/czg/controller/NotifyController.java | 5 +++-- .../service/account/service/impl/SysRoleServiceImpl.java | 6 ------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/cash-api/order-server/src/main/java/com/czg/controller/NotifyController.java b/cash-api/order-server/src/main/java/com/czg/controller/NotifyController.java index a3657bec8..3539fb381 100644 --- a/cash-api/order-server/src/main/java/com/czg/controller/NotifyController.java +++ b/cash-api/order-server/src/main/java/com/czg/controller/NotifyController.java @@ -58,8 +58,9 @@ public class NotifyController { @RequestMapping("clear") public String clear(@RequestParam Integer shopId) { - consumeDiscountRecordService.remove(new QueryWrapper().eq(MkShopConsumeDiscountRecord::getShopId, shopId)); - orderInfoService.remove(new QueryWrapper().eq(OrderInfo::getShopId, shopId)); + shopUserService.updateChain().eq(ShopUser::getId, 127410).set(ShopUser::getAmount, 0); +// consumeDiscountRecordService.remove(new QueryWrapper().eq(MkShopConsumeDiscountRecord::getShopId, shopId)); +// orderInfoService.remove(new QueryWrapper().eq(OrderInfo::getShopId, shopId)); return "success"; } diff --git a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/SysRoleServiceImpl.java b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/SysRoleServiceImpl.java index aa16eb2b7..3b22c8a9b 100644 --- a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/SysRoleServiceImpl.java +++ b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/SysRoleServiceImpl.java @@ -152,9 +152,6 @@ public class SysRoleServiceImpl extends ServiceImpl impl // Step 2: 解析 apiInfo 并判断菜单是否已绑定 for (BaseMenu menu : menuList) { - if (menu.getMenuId() == 1L) { - continue; - } // 解析 apiInfo if (StrUtil.isNotBlank(menu.getApiInfo())) { List itemDTOS = JSONArray.parseArray(menu.getApiInfo()) @@ -180,9 +177,6 @@ public class SysRoleServiceImpl extends ServiceImpl impl List matchedMenus = sysMenuService.list(wrapper); for (SysMenu matched : matchedMenus) { - if (matched.getMenuId() == 1L) { - continue; - } long count = sysRolesMenusService.count(new QueryWrapper() .eq("menu_id", matched.getMenuId()) .eq("role_id", roleId)