package com.xinelu.manage.mapper.patientquestionsubjectresult;

import com.xinelu.manage.domain.patientquestionsubjectresult.PatientQuestionSubjectResult;

import java.util.List;

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

    /**
     * 查询患者问卷题目提交结果信息列表
     *
     * @param patientQuestionSubjectResult 患者问卷题目提交结果信息
     * @return 患者问卷题目提交结果信息集合
     */
    List<PatientQuestionSubjectResult> selectPatientQuestionSubjectResultList(PatientQuestionSubjectResult patientQuestionSubjectResult);

    /**
     * 新增患者问卷题目提交结果信息
     *
     * @param patientQuestionSubjectResult 患者问卷题目提交结果信息
     * @return 结果
     */
    int insertPatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult);

    /**
     * 修改患者问卷题目提交结果信息
     *
     * @param patientQuestionSubjectResult 患者问卷题目提交结果信息
     * @return 结果
     */
    int updatePatientQuestionSubjectResult(PatientQuestionSubjectResult patientQuestionSubjectResult);

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

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


    /**
     * 批量新增患者问卷题目提交结果信息
     */
    int saveQuestionSubjectList(List<PatientQuestionSubjectResult> patientQuestionSubjectResults);
}
