菜单问题
This commit is contained in:
@@ -58,8 +58,9 @@ public class NotifyController {
|
|||||||
|
|
||||||
@RequestMapping("clear")
|
@RequestMapping("clear")
|
||||||
public String clear(@RequestParam Integer shopId) {
|
public String clear(@RequestParam Integer shopId) {
|
||||||
consumeDiscountRecordService.remove(new QueryWrapper().eq(MkShopConsumeDiscountRecord::getShopId, shopId));
|
shopUserService.updateChain().eq(ShopUser::getId, 127410).set(ShopUser::getAmount, 0);
|
||||||
orderInfoService.remove(new QueryWrapper().eq(OrderInfo::getShopId, shopId));
|
// consumeDiscountRecordService.remove(new QueryWrapper().eq(MkShopConsumeDiscountRecord::getShopId, shopId));
|
||||||
|
// orderInfoService.remove(new QueryWrapper().eq(OrderInfo::getShopId, shopId));
|
||||||
return "success";
|
return "success";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -152,9 +152,6 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
|||||||
|
|
||||||
// Step 2: 解析 apiInfo 并判断菜单是否已绑定
|
// Step 2: 解析 apiInfo 并判断菜单是否已绑定
|
||||||
for (BaseMenu menu : menuList) {
|
for (BaseMenu menu : menuList) {
|
||||||
if (menu.getMenuId() == 1L) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 解析 apiInfo
|
// 解析 apiInfo
|
||||||
if (StrUtil.isNotBlank(menu.getApiInfo())) {
|
if (StrUtil.isNotBlank(menu.getApiInfo())) {
|
||||||
List<MenuApiInfoItemDTO> itemDTOS = JSONArray.parseArray(menu.getApiInfo())
|
List<MenuApiInfoItemDTO> itemDTOS = JSONArray.parseArray(menu.getApiInfo())
|
||||||
@@ -180,9 +177,6 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
|||||||
|
|
||||||
List<SysMenu> matchedMenus = sysMenuService.list(wrapper);
|
List<SysMenu> matchedMenus = sysMenuService.list(wrapper);
|
||||||
for (SysMenu matched : matchedMenus) {
|
for (SysMenu matched : matchedMenus) {
|
||||||
if (matched.getMenuId() == 1L) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
long count = sysRolesMenusService.count(new QueryWrapper()
|
long count = sysRolesMenusService.count(new QueryWrapper()
|
||||||
.eq("menu_id", matched.getMenuId())
|
.eq("menu_id", matched.getMenuId())
|
||||||
.eq("role_id", roleId)
|
.eq("role_id", roleId)
|
||||||
|
|||||||
Reference in New Issue
Block a user