<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.emoon.chat.mapper.MedicalRecordResultMapper">


    <select id="selectByPatientRecordIdAndType" resultType="java.util.HashMap">
        SELECT * FROM medical_record_result
        WHERE patient_record_id = #{patientRecordId}
          AND qc_type = #{qcType}
    </select>

    <update id="updateQcReviewByPatientRecordIdAndType">
        UPDATE medical_record_result
        SET qc_review_comments = #{qcReviewComments},
            qc_name = #{qcName}
        WHERE patient_record_id = #{patientRecordId}
          AND qc_type = #{qcType}
    </update>





</mapper>
