From 5e304868c758c4901d5f1ca43893e2b87db6c8bb Mon Sep 17 00:00:00 2001 From: WendyYang Date: Sun, 23 Apr 2023 16:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4path=E5=94=AF=E4=B8=80?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java | 1 - .../java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java index 745ee5f..037032f 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java @@ -48,7 +48,6 @@ public class MenuSaveDTO implements Serializable { * 页面路径 */ @ApiModelProperty(value = "页面路径") - @NotBlank(message = "页面路径不能为空") private String path; /** diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java index 2894537..6a61ae0 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java @@ -129,8 +129,6 @@ public class MenuServiceImpl extends ServiceImpl implements IM throw BizException.wrap("【地址栏路径】:{}重复", data.getPath()); } } - } else { - checkButtonUnique(data.getPid(), data.getPath(), null); } data.setPid(Convert.toLong(data.getPid(), DEF_PARENT_ID)); Menu menu = BeanUtil.toBean(data, Menu.class);