Commit f2028714 authored by hezhen's avatar hezhen

修改关系绑定

parent d0828bd2
...@@ -218,7 +218,7 @@ public class AppUserRelationBiz extends BaseBiz<AppUserRelationMapper, AppUserRe ...@@ -218,7 +218,7 @@ public class AppUserRelationBiz extends BaseBiz<AppUserRelationMapper, AppUserRe
//永久稳定关系 //永久稳定关系
public void foreverBind(Integer user_id) { public void foreverBind(Integer user_id) {
AppUserRelation relation = getMyBiz().getRelationByUserId(user_id); AppUserRelation relation = getMyBiz().getRelationByUserId(user_id);
if (relation != null && relation.getIsForever() == 0 && relation.getParentId() != null && relation.getParentId() > 0) { if (relation != null && relation.getIsForever() == 0 &&( (relation.getParentId() != null && relation.getParentId() > 0) || (relation.getCompanyId() != null && relation.getCompanyId() > 0) )) {
relation.setIsForever(1); relation.setIsForever(1);
getMyBiz().updRelation(relation); getMyBiz().updRelation(relation);
} }
......
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