Browse Source

移除path唯一标识

master
WendyYang 1 year ago
parent
commit
5e304868c7
2 changed files with 0 additions and 3 deletions
  1. +0
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java
  2. +0
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java

+ 0
- 1
pmapi/src/main/java/com/ningdatech/pmapi/sys/model/dto/MenuSaveDTO.java View File

@@ -48,7 +48,6 @@ public class MenuSaveDTO implements Serializable {
* 页面路径
*/
@ApiModelProperty(value = "页面路径")
@NotBlank(message = "页面路径不能为空")
private String path;

/**


+ 0
- 2
pmapi/src/main/java/com/ningdatech/pmapi/sys/service/impl/MenuServiceImpl.java View File

@@ -129,8 +129,6 @@ public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> 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);


Loading…
Cancel
Save