package com.jwipc.message.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.message.entity.MessageCenter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.message.model.po.AddresseeUserPO;
import com.jwipc.message.model.po.MessageCenterPO;
import com.jwipc.message.model.query.AddresseeUserQuery;
import com.jwipc.message.model.query.MessageCenterQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 信息中心主表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-07-03
 */
public interface MessageCenterMapper extends BaseMapper<MessageCenter> {

    List<AddresseeUserPO> selectSupplierUser(@Param("query") AddresseeUserQuery query);

    List<AddresseeUserPO> selectUser(@Param("query") AddresseeUserQuery query);

    List<MessageCenterPO> findPageByQuery(@Param("query") MessageCenterQuery query);

    List<MessageCenterPO> findPageByQuery(Page<MessageCenter> dbPage, @Param("query") MessageCenterQuery query);

    MessageCenterPO getDataById(@Param("id") Long id);
}
