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