hasPermission 增加默认值

This commit is contained in:
yijiegong 2024-09-23 11:00:55 +08:00
parent a3c9deda29
commit 1e54eb1456
1 changed files with 7 additions and 0 deletions

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;
}
}