package com.yeejoin.amos.boot.module.ugp.api.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeMsgPageDto;
import com.yeejoin.amos.boot.module.ugp.api.dto.RectifyMsgDto;
import com.yeejoin.amos.boot.module.ugp.api.entity.RectifyMsg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * 整改短信通知表 Mapper 接口
 *
 * @author system_generator
 * @date 2022-09-22
 */
@Repository
public interface RectifyMsgMapper extends BaseMapper<RectifyMsg> {


    IPage<RectifyMsgDto> queryForRectifyMsgPage(IPage<RectifyMsgDto> page, String name,Boolean isProblem,String installationUnit, Set<Long> projectIds );

    Page<RectifyMsgDto> InstallNoticeMsgPage(IPage<RectifyMsgDto> page, @Param("name") String name, @Param("installationUnit") String installationUnit, Set<String> seqs);

    Page<RectifyMsgDto> selectByName(Page<RectifyMsgDto> page, @Param("name") String name, @Param("unit") String unit);

    RectifyMsgDto customSelectById(@Param("sequenceNbr") Long sequenceNbr);


    IPage<RectifyMsgDto> getProblemMsgDto(IPage<RectifyMsg> page, String name, Boolean isProblem, String installationUnit);

}
