TUserRelationMapper.java 1.41 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2 3
package com.zehong.system.mapper;

import java.util.List;
耿迪迪's avatar
耿迪迪 committed
4 5
import java.util.Map;

耿迪迪's avatar
耿迪迪 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
import com.zehong.system.domain.TUserRelation;

/**
 * 用户关联Mapper接口
 * 
 * @author zehong
 * @date 2023-07-11
 */
public interface TUserRelationMapper 
{
    /**
     * 查询用户关联
     * 
     * @param relationId 用户关联ID
     * @return 用户关联
     */
    public TUserRelation selectTUserRelationById(Long relationId);

    /**
     * 查询用户关联列表
     * 
     * @param tUserRelation 用户关联
     * @return 用户关联集合
     */
    public List<TUserRelation> selectTUserRelationList(TUserRelation tUserRelation);

    /**
     * 新增用户关联
     * 
     * @param tUserRelation 用户关联
     * @return 结果
     */
    public int insertTUserRelation(TUserRelation tUserRelation);

    /**
     * 修改用户关联
     * 
     * @param tUserRelation 用户关联
     * @return 结果
     */
    public int updateTUserRelation(TUserRelation tUserRelation);

    /**
     * 删除用户关联
     * 
     * @param relationId 用户关联ID
     * @return 结果
     */
    public int deleteTUserRelationById(Long relationId);

    /**
     * 批量删除用户关联
     * 
     * @param relationIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTUserRelationByIds(Long[] relationIds);
耿迪迪's avatar
耿迪迪 committed
63 64

    int deleteUserRelationByUserIdAndRelationUserId(Map<String,Long> map);
耿迪迪's avatar
耿迪迪 committed
65
}