package com.openhis.web.document.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.openhis.web.document.dto.DocRecordDto;
import com.openhis.web.document.dto.DocRecordPatientDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 文书分配信息Mapper
 *
 * @author wanghaiming
 * @since 2025/04/08
 */
@Repository

public interface DocRecordAppMapper {

    IPage<DocRecordPatientDto> getRecordPageList(@Param("page") Page<DocRecordPatientDto> page,
                                                 @Param("primaryMenuEnumList") List<Integer> primaryMenuEnumList,
                                                 @Param(Constants.WRAPPER) QueryWrapper<DocRecordPatientDto> queryWrapper);
    IPage<DocRecordDto> getRecordPageListByEncounterId(@Param("page") Page<DocRecordPatientDto> page,
                                          @Param(Constants.WRAPPER) QueryWrapper<DocRecordDto> queryWrapper);

}
