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.DocRecordPatientDto;
import com.openhis.web.document.dto.DocStatisticsDefinitionDto;
import com.openhis.web.document.dto.OptionDto;
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 DocStatisticsDefinitionAppMapper {

    /**
     * 获取统计定义列表
     *
     * @return 文书分配信息
     */

    IPage<DocStatisticsDefinitionDto> getDocStatisticsDefinitionPageList(@Param("page") Page<DocStatisticsDefinitionDto> page,
                                                                         @Param(Constants.WRAPPER) QueryWrapper<DocStatisticsDefinitionDto> queryWrapper);

    List<OptionDto> getOptionList(@Param("id") Long id, @Param("code") String code, @Param("name") String name);
}
