hasPermission 增加默认值
This commit is contained in:
parent
a3c9deda29
commit
1e54eb1456
|
|
@ -25,4 +25,11 @@ public class TbShopPermissionDto {
|
|||
private Integer hasPermission;
|
||||
|
||||
private List<TbShopPermissionDto> children;
|
||||
|
||||
public Integer getHasPermission() {
|
||||
if (hasPermission == null) {
|
||||
return 0;
|
||||
}
|
||||
return hasPermission;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue