package com.fjhx.message.mapper;

import com.fjhx.entity.message.UMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjhx.entity.supplier.Supplier;
import org.springblade.core.tenant.annotation.TenantIgnore;

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

/**
 * <p>
 * 消息提醒 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-07-29
 */
public interface UMessageMapper extends BaseMapper<UMessage> {

    /**
     * 获取消息分类
     * @param condition
     * @return
     */
    List<Map<String,Object>> getClassMessage(Map<String,Object> condition);

    /**
     * 列表
     *
     * @param condition
     * @return
     */
    @TenantIgnore
    List<UMessage> getList(Map<String, Object> condition);

    /**
     * 列表-总条数
     *
     * @param condition
     * @return
     */
    @TenantIgnore
    Integer getListCount(Map<String, Object> condition);
}
