Commit c53d45d5 authored by fangxinjiang's avatar fangxinjiang

新增代码平台服务

parent a7ec19d7
......@@ -133,6 +133,7 @@ public class MenuController {
if (CommonConstants.ZERO_STRING.equals(sysMenu.getType())){
SysMenu sm = sysMenuService.getOne(Wrappers.<SysMenu>query().lambda()
.eq(SysMenu::getName,sysMenu.getName())
.eq(SysMenu::getType,CommonConstants.ZERO_STRING)
.eq(SysMenu::getDelFlag,CommonConstants.ZERO_STRING));
if (Common.isNotNull(sm)){
return R.failed(MsgUtils.getMessage(ErrorCodes.SYS_MENU_ADD_NAME_EXIST));
......@@ -166,6 +167,7 @@ public class MenuController {
if (CommonConstants.ZERO_STRING.equals(sysMenu.getType())){
SysMenu sm = sysMenuService.getOne(Wrappers.<SysMenu>query().lambda()
.eq(SysMenu::getName,sysMenu.getName())
.eq(SysMenu::getType,CommonConstants.ZERO_STRING)
.eq(SysMenu::getDelFlag,CommonConstants.ZERO_STRING)
.ne(SysMenu::getMenuId,sysMenu.getMenuId()));
if (Common.isNotNull(sm)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment