package com.emoon.chat.mapper;

import com.emoon.chat.domain.MedicalRecordResult;
import com.emoon.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface MedicalRecordResultMapper extends BaseMapperPlus<MedicalRecordResult, MedicalRecordResult> {

    Map<String, Object> selectByPatientRecordIdAndType(@Param("patientRecordId") String patientRecordId,
                                                       @Param("qcType") String qcType);

    int updateQcReviewByPatientRecordIdAndType(@Param("patientRecordId") String patientRecordId,
                                               @Param("qcType") String qcType,
                                               @Param("qcReviewComments") String qcReviewComments,
                                               @Param("qcName") String qcName);

}
