Commit a73415c4 by shiwenbo

相关团队新增逻辑增加兼容处理

parent c47af05b
......@@ -65,7 +65,7 @@ public class FollowerServiceImpl extends ApplicationMetadataObjectSupport implem
KObject kobject = type.newInstance();
kobject.set("role", body.getRole());
kobject.set("member", staff);
if(!body.getAttachRole().equals("")) {
if(body.getAttachRole() != null && !body.getAttachRole().equals("")) {
Optional<Role> role = roleService.get(UUID.fromString(body.getAttachRole()));
kobject.set("attachRole", role.get().getId());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment