package com.chinaweal.aiccs.aiccs.abnormal.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinaweal.aiccs.aiccs.abnormal.entity.TSWrit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinaweal.aiccs.aiccs.abnormal.entity.dto.EntWritsDto;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 监管文书文号信息 Mapper 接口
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-19
 */
public interface TSWritMapper extends BaseMapper<TSWrit> {

    /**
     * 根据检查文书实体 Bean 获取检查文书列表 *
     */
    List<TSWrit> listTswrit(TSWrit tsWritModel);

    /**
     * 获取主体文书列表
     * @param entWritsModel 条件参数
     * @return
     */
    IPage<EntWritsDto> selectEntWrits(IPage<EntWritsDto> page, @Param("entWritsModel")EntWritsDto entWritsModel);

    TSWrit selectTsWritByMap(@Param("paramTwr")Map<String, Object> paramTwr);

    IPage<EntWritsDto> selectWnbBatchPage(IPage<EntWritsDto> page);

    boolean saveBatchWithList(List<TSWrit> list);

    Page<EntWritsDto> queryByEntParam(Page<EntWritsDto> page, @Param("customParamMap") Map<String, Object> customParamMap);
}
