package com.elephant.framework.galaxy.aroad.module.info.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto;
import com.elephant.framework.galaxy.aroad.module.info.entity.InfoInformations;

import java.util.List;

/**
 * 信息表
 *
 * @author songwenjie
 * @date 2019-04-28 10:34:46
 */
public interface InfoInformationsMapper extends BaseMapper<InfoInformations> {
    /** 
    * @Description: 新增上报信息 
    * @Param: [informations] 
    * @return: java.lang.Boolean 
    * @Author: songwenjie 
    * @Date: 2019/5/5 
    */ 
    Boolean saveInformations(InfoInformations informations);

    /** 
    * @Description: 查询报给我的信息
    * @Param: [receiverId] 
    * @return: java.util.List<com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto> 
    * @Author: songwenjie 
    * @Date: 2019/5/5 
    */
    IPage<InfoDto> getReportedToMe (Page page, Integer receiverId);

    /** 
    * @Description:  查询我上报的信息
    * @Param: [page, reporterId] 
    * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto> 
    * @Author: songwenjie 
    * @Date: 2019/5/6 
    */ 
    IPage<InfoDto> getIReported (Page page, Integer reporterId);

}
