Commit 5ffb9ded authored by hezhen's avatar hezhen

123

parent 6edbc700
...@@ -39,4 +39,20 @@ AdminUserRelationController extends BaseController<AppUserRelationBiz,AppUserRel ...@@ -39,4 +39,20 @@ AdminUserRelationController extends BaseController<AppUserRelationBiz,AppUserRel
public ObjectRestResponse<InviteMemberVo> findInviteMemberByActivitState(AppUserRelationDTO userRelationDTO) { public ObjectRestResponse<InviteMemberVo> findInviteMemberByActivitState(AppUserRelationDTO userRelationDTO) {
return ObjectRestResponse.succ(baseBiz.selectList(userRelationDTO)); return ObjectRestResponse.succ(baseBiz.selectList(userRelationDTO));
} }
@RequestMapping(value = "unBind",method = RequestMethod.POST)
@ApiModelProperty("后台解绑")
public ObjectRestResponse unBind(@RequestBody AppUserRelation appUserRelation){
AppUserRelation appUserRelation1 = baseBiz.selectById(appUserRelation.getId());
if (appUserRelation1 != null)
appUserRelation.setUserId(appUserRelation1.getUserId());
appUserRelation.setParentId(0);
appUserRelation.setBindTime(0L);
appUserRelation.setIsForever(0);
baseBiz.updRelation(appUserRelation);
return ObjectRestResponse.succ();
}
} }
\ No newline at end of file
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
and ( d.nickname like concat('%',#{name},'%') or d.realname like concat('%',#{name},'%') ) and ( d.nickname like concat('%',#{name},'%') or d.realname like concat('%',#{name},'%') )
</if> </if>
</where> </where>
group c.user_id GROUP BY r.user_id
order by c.bind_time desc order by r.bind_time desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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