REQ-3345: 同步群成员时进行物理删除
This commit is contained in:
parent
134b8e2d50
commit
a5845bc106
@ -2,9 +2,15 @@ package cn.axzo.im.dao.mapper;
|
||||
|
||||
import cn.axzo.im.entity.GroupMember;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
public interface GroupMapperMapper extends BaseMapper<GroupMember> {
|
||||
|
||||
@Delete("DELETE FROM im_group_member WHERE tid = #{tid}")
|
||||
void deleteAccounts(@Param("tid") Long tid);
|
||||
|
||||
}
|
||||
|
||||
@ -21,9 +21,7 @@ import static java.util.stream.Collectors.toSet;
|
||||
public class GroupMemberDao extends ServiceImpl<GroupMapperMapper, GroupMember> {
|
||||
|
||||
public void deleteAccounts(Long tid) {
|
||||
lambdaUpdate()
|
||||
.eq(GroupMember::getTid, tid)
|
||||
.remove();
|
||||
getBaseMapper().deleteAccounts(tid);
|
||||
}
|
||||
|
||||
public Set<PersonAccountAttribute> getGroupPersons(Long tid) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user