hasPermission 增加默认值

This commit is contained in:
2024-09-23 11:00:55 +08:00
parent a3c9deda29
commit 1e54eb1456

View File

@@ -25,4 +25,11 @@ public class TbShopPermissionDto {
private Integer hasPermission;
private List<TbShopPermissionDto> children;
public Integer getHasPermission() {
if (hasPermission == null) {
return 0;
}
return hasPermission;
}
}