package com.patzn.lims.sys.mapper;

import com.patzn.lims.sys.entity.SysMessage;
import com.patzn.lims.sys.entity.SysUserRelMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户消息关联表 Mapper 接口
 * </p>
 *
 * @author wwd
 * @since 2020-03-18
 */
public interface SysUserRelMessageMapper extends BaseMapper<SysUserRelMessage> {
    List<Map<String, Object>> selectTypeCountMapList(@Param("userId") Long userId);


    List<SysMessage> selectMyMessage(@Param("userId") Long userId, @Param("type") Integer type);

    List<SysMessage> selectPersonsByLabelUri(@Param("companyId") Long companyId, @Param("uri") String uri);
}
