package com.xinelu.manage.mapper.patientquestionsubmitresult;

import com.xinelu.manage.domain.patientquestionsubmitresult.PatientQuestionSubmitResult;
import com.xinelu.manage.dto.patientquestionsubmitresult.PatientQuestionSubmitStatistisDto;
import com.xinelu.manage.vo.department.DepartmentVO;
import com.xinelu.manage.vo.patientquestionsubmitresult.PatientQuestionSubmitListVo;
import com.xinelu.manage.vo.patientquestionsubmitresult.PatientQuestionSubmitResultVO;
import com.xinelu.manage.vo.patientquestionsubmitresult.SatisfactionSurveyVO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 患者问卷提交结果信息Mapper接口
 *
 * @author xinelu
 * @date 2024-03-28
 */
public interface PatientQuestionSubmitResultMapper {
    /**
     * 查询患者问卷提交结果信息
     *
     * @param id 患者问卷提交结果信息主键
     * @return 患者问卷提交结果信息
     */
    PatientQuestionSubmitResult selectPatientQuestionSubmitResultById(Long id);

    /**
     * 查询患者问卷提交结果信息列表
     *
     * @param patientQuestionSubmitResult 患者问卷提交结果信息
     * @return 患者问卷提交结果信息集合
     */
    List<PatientQuestionSubmitResult> selectPatientQuestionSubmitResultList(PatientQuestionSubmitResult patientQuestionSubmitResult);

    /**
     * 新增患者问卷提交结果信息
     *
     * @param patientQuestionSubmitResult 患者问卷提交结果信息
     * @return 结果
     */
    int insertPatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult);

    /**
     * 修改患者问卷提交结果信息
     *
     * @param patientQuestionSubmitResult 患者问卷提交结果信息
     * @return 结果
     */
    int updatePatientQuestionSubmitResult(PatientQuestionSubmitResult patientQuestionSubmitResult);

    /**
     * 删除患者问卷提交结果信息
     *
     * @param id 患者问卷提交结果信息主键
     * @return 结果
     */
    int deletePatientQuestionSubmitResultById(Long id);

    /**
     * 批量删除患者问卷提交结果信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deletePatientQuestionSubmitResultByIds(Long[] ids);

    /**
     * 根据任务执行记录查询患者问卷信息
     *
     * @param taskExecuteRecordId           患者管理任务执行记录表id
     * @param patientQuestionSubmitResultId 患者问卷提交结果信息表
     * @return PatientQuestionSubmitResultVO
     */
    PatientQuestionSubmitResultVO selectResultByTaskExecuteRecordId(@Param("taskExecuteRecordId") Long taskExecuteRecordId, @Param("patientQuestionSubmitResultId") Long patientQuestionSubmitResultId);

    /**
     * 满意度调查问卷列表
     *
     * @param satisfactionSurvey 居民信息
     * @return AjaxResult
     */
    List<SatisfactionSurveyVO> selectSatisfactionSurvey(SatisfactionSurveyVO satisfactionSurvey);

	List<DepartmentVO> departmenQuestionSubmitCount(PatientQuestionSubmitStatistisDto queryDto);

	List<PatientQuestionSubmitListVo> patientQuestionSubmitList(PatientQuestionSubmitStatistisDto queryDto);
}
