<?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.lyms.platform.permission.dao.master.BabyPatientExtendEarHearingDiagnoseMapper">
<resultMap id="BabyPatientExtendEarHearingDiagnoseResultMap"
type="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnose">
<id column="id" property="id" jdbcType="VARCHAR"/>
<result column="baby_id" property="babyId" jdbcType="VARCHAR"/>
<result column="hospital_id" property="hospitalId" jdbcType="VARCHAR"/>
<result column="diagnose_time" property="diagnoseTime" jdbcType="TIMESTAMP"/>
<result column="high_factor" property="highFactor" jdbcType="VARCHAR"/>
<result column="abr_left_dbnhl" property="abrLeftDbnhl" jdbcType="VARCHAR"/>
<result column="abr_left_l_wave" property="abrLeftLWave" jdbcType="VARCHAR"/>
<result column="abr_left_lll_wave" property="abrLeftLllWave" jdbcType="VARCHAR"/>
<result column="abr_left_V_wave" property="abrLeftVWave" jdbcType="VARCHAR"/>
<result column="abr_left_shield" property="abrLeftShield" jdbcType="VARCHAR"/>
<result column="abr_right_dbnhl" property="abrRightDbnhl" jdbcType="VARCHAR"/>
<result column="abr_right_l_wave" property="abrRightLWave" jdbcType="VARCHAR"/>
<result column="abr_right_lll_wave" property="abrRightLllWave" jdbcType="VARCHAR"/>
<result column="abr_right_V_wave" property="abrRightVWave" jdbcType="VARCHAR"/>
<result column="abr_right_shield" property="abrRightShield" jdbcType="VARCHAR"/>
<result column="abr_thr_left_dbnhl" property="abrThrLeftDbnhl" jdbcType="VARCHAR"/>
<result column="abr_thr_left_ms" property="abrThrLeftMs" jdbcType="VARCHAR"/>
<result column="abr_thr_left_shield_dbnhl" property="abrThrLeftShieldDbnhl" jdbcType="VARCHAR"/>
<result column="abr_thr_right_dbnhl" property="abrThrRightDbnhl" jdbcType="VARCHAR"/>
<result column="abr_thr_right_ms" property="abrThrRightMs" jdbcType="VARCHAR"/>
<result column="abr_thr_right_shield_dbnhl" property="abrThrRightShieldDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_left_thr_dbnhl" property="abrBcLeftThrDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_left_thr_ms" property="abrBcLeftThrMs" jdbcType="VARCHAR"/>
<result column="abr_bc_left_thr_shield_dbnhl" property="abrBcLeftThrShieldDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_right_thr_dbnhl" property="abrBcRightThrDbnhl" jdbcType="VARCHAR"/>
<result column="abr_bc_right_thr_ms" property="abrBcRightThrMs" jdbcType="VARCHAR"/>
<result column="abr_bc_right_thr_shield_dbnhl" property="abrBcRightThrShieldDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_left_dbnhl" property="reactionThrLeftDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_left_shield_dbnhl" property="reactionThrLeftShieldDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_right_dbnhl" property="reactionThrRightDbnhl" jdbcType="VARCHAR"/>
<result column="reaction_thr_right_shield_dbnhl" property="reactionThrRightShieldDbnhl" jdbcType="VARCHAR"/>
<result column="oae_left_750" property="oaeLeft750" jdbcType="VARCHAR"/>
<result column="oae_left_1k" property="oaeLeft1k" jdbcType="VARCHAR"/>
<result column="oae_left_2k" property="oaeLeft2k" jdbcType="VARCHAR"/>
<result column="oae_left_3k" property="oaeLeft3k" jdbcType="VARCHAR"/>
<result column="oae_left_4k" property="oaeLeft4k" jdbcType="VARCHAR"/>
<result column="oae_left_6k" property="oaeLeft6k" jdbcType="VARCHAR"/>
<result column="oae_left_8k" property="oaeLeft8k" jdbcType="VARCHAR"/>
<result column="oae_left_10k" property="oaeLeft10k" jdbcType="VARCHAR"/>
<result column="oae_right_750" property="oaeRight750" jdbcType="VARCHAR"/>
<result column="oae_right_1k" property="oaeRight1k" jdbcType="VARCHAR"/>
<result column="oae_right_2k" property="oaeRight2k" jdbcType="VARCHAR"/>
<result column="oae_right_3k" property="oaeRight3k" jdbcType="VARCHAR"/>
<result column="oae_right_4k" property="oaeRight4k" jdbcType="VARCHAR"/>
<result column="oae_right_6k" property="oaeRight6k" jdbcType="VARCHAR"/>
<result column="oae_right_8k" property="oaeRight8k" jdbcType="VARCHAR"/>
<result column="oae_right_10k" property="oaeRight10k" jdbcType="VARCHAR"/>
<result column="acad_left_curve_type" property="acadLeftCurveType" jdbcType="VARCHAR"/>
<result column="acad_left_drum_cp" property="acadLeftDrumCp" jdbcType="VARCHAR"/>
<result column="acad_left_acco" property="acadLeftAcco" jdbcType="VARCHAR"/>
<result column="acad_left_secondo_volume" property="acadLeftSecondoVolume" jdbcType="VARCHAR"/>
<result column="acad_left_gradient" property="acadLeftGradient" jdbcType="VARCHAR"/>
<result column="acad_left_1K_reflect_thre" property="acadLeft1kReflectThre" jdbcType="VARCHAR"/>
<result column="acad_left_reflect_tts" property="acadLeftReflectTTS" jdbcType="VARCHAR"/>
<result column="acad_right_curve_type" property="acadRightCurveType" jdbcType="VARCHAR"/>
<result column="acad_right_drum_cp" property="acadRightDrumCp" jdbcType="VARCHAR"/>
<result column="acad_right_acco" property="acadRightAcco" jdbcType="VARCHAR"/>
<result column="acad_right_secondo_volume" property="acadRightSecondoVolume" jdbcType="VARCHAR"/>
<result column="acad_right_gradient" property="acadRightGradient" jdbcType="VARCHAR"/>
<result column="acad_right_1K_reflect_thre" property="acadRight1kReflectThre" jdbcType="VARCHAR"/>
<result column="acad_right_reflect_tts" property="acadRightReflectTTS" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_500" property="soundReflLeftIpsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_1k" property="soundReflLeftIpsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_2k" property="soundReflLeftIpsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_ipsi_4k" property="soundReflLeftIpsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_500" property="soundReflLeftOffsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_1k" property="soundReflLeftOffsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_2k" property="soundReflLeftOffsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_offsi_4k" property="soundReflLeftOffsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_left_atten" property="soundReflLeftAtten" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_500" property="soundReflRightIpsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_1k" property="soundReflRightIpsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_2k" property="soundReflRightIpsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_ipsi_4k" property="soundReflRightIpsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_500" property="soundReflRightOffsi500" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_1k" property="soundReflRightOffsi1k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_2k" property="soundReflRightOffsi2k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_offsi_4k" property="soundReflRightOffsi4k" jdbcType="VARCHAR"/>
<result column="sound_refl_right_atten" property="soundReflRightAtten" jdbcType="VARCHAR"/>
<result column="aabr_left_if_pass" property="aabrLeftIfPass" jdbcType="INTEGER"/>
<result column="aabr_right_if_pass" property="aabrRightIfPass" jdbcType="INTEGER"/>
<result column="assr_left_500" property="assrLeft500" jdbcType="VARCHAR"/>
<result column="assr_left_1k" property="assrLeft1k" jdbcType="VARCHAR"/>
<result column="assr_left_2k" property="assrLeft2k" jdbcType="VARCHAR"/>
<result column="assr_left_4k" property="assrLeft4k" jdbcType="VARCHAR"/>
<result column="assr_right_500" property="assrRight500" jdbcType="VARCHAR"/>
<result column="assr_right_1k" property="assrRight1k" jdbcType="VARCHAR"/>
<result column="assr_right_2k" property="assrRight2k" jdbcType="VARCHAR"/>
<result column="assr_right_4k" property="assrRight4k" jdbcType="VARCHAR"/>
<result column="diagn_hand_sugge" property="diagnHandSugge" jdbcType="VARCHAR"/>
<result column="diagn_guide_sugge" property="diagnGuideSugge" jdbcType="VARCHAR"/>
<result column="diagn_doctor_id" property="diagnDoctorId" jdbcType="VARCHAR"/>
<result column="diagn_next_time" property="diagnNextTime" jdbcType="TIMESTAMP"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="create_id" property="createId" jdbcType="VARCHAR"/>
<result column="modify_id" property="modifyId" jdbcType="VARCHAR"/>
<result column="modify_time" property="modifyTime" jdbcType="TIMESTAMP"/>
<result column="ifdel" property="ifdel" jdbcType="INTEGER"/>
<result column="enalble" property="enalble" jdbcType="INTEGER"/>
<result column="isconfirm" property="isconfirm" jdbcType="INTEGER"/>
<result column="diagn_result" property="diagnResult" jdbcType="VARCHAR"/>
<result column="confirm_result" property="confirmResult" jdbcType="VARCHAR"/>
<result column="confirm_time" property="confirmTime" jdbcType="TIMESTAMP"/>
<result column="pid" property="pid" jdbcType="VARCHAR"/>
<result column="doctorSign" property="doctorSign" jdbcType="VARCHAR"/>
<result column="patientSign" property="patientSign" jdbcType="VARCHAR"/>
</resultMap>
<insert id="addBabyPatientExtendEarHearingDiagnose"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnose">
insert into baby_patient_extend_ear_hearing_diagnose (id,baby_id,hospital_id,diagnose_time,high_factor,abr_left_dbnhl,abr_left_l_wave,abr_left_lll_wave,abr_left_V_wave,abr_left_shield,abr_right_dbnhl,abr_right_l_wave,abr_right_lll_wave,abr_right_V_wave,abr_right_shield,abr_thr_left_dbnhl,abr_thr_left_ms,abr_thr_left_shield_dbnhl,abr_thr_right_dbnhl,abr_thr_right_ms,abr_thr_right_shield_dbnhl,abr_bc_left_thr_dbnhl,abr_bc_left_thr_ms,abr_bc_left_thr_shield_dbnhl,abr_bc_right_thr_dbnhl,abr_bc_right_thr_ms,abr_bc_right_thr_shield_dbnhl,reaction_thr_left_dbnhl,reaction_thr_left_shield_dbnhl,reaction_thr_right_dbnhl,reaction_thr_right_shield_dbnhl,oae_left_750,oae_left_1k,oae_left_2k,oae_left_3k,oae_left_4k,oae_left_6k,oae_left_8k,oae_left_10k,oae_right_750,oae_right_1k,oae_right_2k,oae_right_3k,oae_right_4k,oae_right_6k,oae_right_8k,oae_right_10k,acad_left_curve_type,acad_left_drum_cp,acad_left_acco,acad_left_secondo_volume,acad_left_gradient,acad_right_reflect_tts,acad_left_1K_reflect_thre,acad_right_curve_type,acad_right_drum_cp,acad_right_acco,acad_right_secondo_volume,acad_right_gradient,acad_left_reflect_tts,acad_right_1K_reflect_thre,sound_refl_left_ipsi_500,sound_refl_left_ipsi_1k,sound_refl_left_ipsi_2k,sound_refl_left_ipsi_4k,sound_refl_left_offsi_500,sound_refl_left_offsi_1k,sound_refl_left_offsi_2k,sound_refl_left_offsi_4k,sound_refl_left_atten,sound_refl_right_ipsi_500,sound_refl_right_ipsi_1k,sound_refl_right_ipsi_2k,sound_refl_right_ipsi_4k,sound_refl_right_offsi_500,sound_refl_right_offsi_1k,sound_refl_right_offsi_2k,sound_refl_right_offsi_4k,sound_refl_right_atten,aabr_left_if_pass,aabr_right_if_pass,assr_left_500,assr_left_1k,assr_left_2k,assr_left_4k,assr_right_500,assr_right_1k,assr_right_2k,assr_right_4k,diagn_hand_sugge,diagn_guide_sugge,diagn_doctor_id,diagn_next_time,create_time,create_id,modify_id,modify_time,ifdel,enalble,isconfirm,diagn_result,confirm_result,confirm_time,pid,doctorSign,patientSign) values (#{id},#{babyId},#{hospitalId},#{diagnoseTime},#{highFactor},#{abrLeftDbnhl},#{abrLeftLWave},#{abrLeftLllWave},#{abrLeftVWave},#{abrLeftShield},#{abrRightDbnhl},#{abrRightLWave},#{abrRightLllWave},#{abrRightVWave},#{abrRightShield},#{abrThrLeftDbnhl},#{abrThrLeftMs},#{abrThrLeftShieldDbnhl},#{abrThrRightDbnhl},#{abrThrRightMs},#{abrThrRightShieldDbnhl},#{abrBcLeftThrDbnhl},#{abrBcLeftThrMs},#{abrBcLeftThrShieldDbnhl},#{abrBcRightThrDbnhl},#{abrBcRightThrMs},#{abrBcRightThrShieldDbnhl},#{reactionThrLeftDbnhl},#{reactionThrLeftShieldDbnhl},#{reactionThrRightDbnhl},#{reactionThrRightShieldDbnhl},#{oaeLeft750},#{oaeLeft1k},#{oaeLeft2k},#{oaeLeft3k},#{oaeLeft4k},#{oaeLeft6k},#{oaeLeft8k},#{oaeLeft10k},#{oaeRight750},#{oaeRight1k},#{oaeRight2k},#{oaeRight3k},#{oaeRight4k},#{oaeRight6k},#{oaeRight8k},#{oaeRight10k},#{acadLeftCurveType},#{acadLeftDrumCp},#{acadLeftAcco},#{acadLeftSecondoVolume},#{acadLeftGradient},#{acadLeftReflectTTS},#{acadLeft1kReflectThre},#{acadRightCurveType},#{acadRightDrumCp},#{acadRightAcco},#{acadRightSecondoVolume},#{acadRightGradient},#{acadRightReflectTTS},#{acadRight1kReflectThre},#{soundReflLeftIpsi500},#{soundReflLeftIpsi1k},#{soundReflLeftIpsi2k},#{soundReflLeftIpsi4k},#{soundReflLeftOffsi500},#{soundReflLeftOffsi1k},#{soundReflLeftOffsi2k},#{soundReflLeftOffsi4k},#{soundReflLeftAtten},#{soundReflRightIpsi500},#{soundReflRightIpsi1k},#{soundReflRightIpsi2k},#{soundReflRightIpsi4k},#{soundReflRightOffsi500},#{soundReflRightOffsi1k},#{soundReflRightOffsi2k},#{soundReflRightOffsi4k},#{soundReflRightAtten},#{aabrLeftIfPass},#{aabrRightIfPass},#{assrLeft500},#{assrLeft1k},#{assrLeft2k},#{assrLeft4k},#{assrRight500},#{assrRight1k},#{assrRight2k},#{assrRight4k},#{diagnHandSugge},#{diagnGuideSugge},#{diagnDoctorId},#{diagnNextTime},#{createTime},#{createId},#{modifyId},#{modifyTime},#{ifdel},#{enalble},#{isconfirm},#{diagnResult},#{confirmResult},#{confirmTime},#{pid},#{doctorSign},#{doctorSign})
</insert>
<update id="updateBabyPatientExtendEarHearingDiagnose"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnose">
update baby_patient_extend_ear_hearing_diagnose
<set>
<if test="babyId != null and babyId != ''">
baby_id = #{babyId,jdbcType=VARCHAR},
</if>
<if test="hospitalId != null and hospitalId != ''">
hospital_id = #{hospitalId,jdbcType=VARCHAR},
</if>
<if test="diagnoseTime != null">
diagnose_time = #{diagnoseTime,jdbcType=TIMESTAMP},
</if>
<if test="highFactor != null and highFactor != ''">
high_factor = #{highFactor,jdbcType=VARCHAR},
</if>
<if test="abrLeftDbnhl != null and abrLeftDbnhl != ''">
abr_left_dbnhl = #{abrLeftDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrLeftLWave != null and abrLeftLWave != ''">
abr_left_l_wave = #{abrLeftLWave,jdbcType=VARCHAR},
</if>
<if test="abrLeftLllWave != null and abrLeftLllWave != ''">
abr_left_lll_wave = #{abrLeftLllWave,jdbcType=VARCHAR},
</if>
<if test="abrLeftVWave != null and abrLeftVWave != ''">
abr_left_V_wave = #{abrLeftVWave,jdbcType=VARCHAR},
</if>
<if test="abrLeftShield != null and abrLeftShield != ''">
abr_left_shield = #{abrLeftShield,jdbcType=VARCHAR},
</if>
<if test="abrRightDbnhl != null and abrRightDbnhl != ''">
abr_right_dbnhl = #{abrRightDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrRightLWave != null and abrRightLWave != ''">
abr_right_l_wave = #{abrRightLWave,jdbcType=VARCHAR},
</if>
<if test="abrRightLllWave != null and abrRightLllWave != ''">
abr_right_lll_wave = #{abrRightLllWave,jdbcType=VARCHAR},
</if>
<if test="abrRightVWave != null and abrRightVWave != ''">
abr_right_V_wave = #{abrRightVWave,jdbcType=VARCHAR},
</if>
<if test="abrRightShield != null and abrRightShield != ''">
abr_right_shield = #{abrRightShield,jdbcType=VARCHAR},
</if>
<if test="abrThrLeftDbnhl != null and abrThrLeftDbnhl != ''">
abr_thr_left_dbnhl = #{abrThrLeftDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrThrLeftMs != null and abrThrLeftMs != ''">
abr_thr_left_ms = #{abrThrLeftMs,jdbcType=VARCHAR},
</if>
<if test="abrThrLeftShieldDbnhl != null and abrThrLeftShieldDbnhl != ''">
abr_thr_left_shield_dbnhl = #{abrThrLeftShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrThrRightDbnhl != null and abrThrRightDbnhl != ''">
abr_thr_right_dbnhl = #{abrThrRightDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrThrRightMs != null and abrThrRightMs != ''">
abr_thr_right_ms = #{abrThrRightMs,jdbcType=VARCHAR},
</if>
<if test="abrThrRightShieldDbnhl != null and abrThrRightShieldDbnhl != ''">
abr_thr_right_shield_dbnhl = #{abrThrRightShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcLeftThrDbnhl != null and abrBcLeftThrDbnhl != ''">
abr_bc_left_thr_dbnhl = #{abrBcLeftThrDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcLeftThrMs != null and abrBcLeftThrMs != ''">
abr_bc_left_thr_ms = #{abrBcLeftThrMs,jdbcType=VARCHAR},
</if>
<if test="abrBcLeftThrShieldDbnhl != null and abrBcLeftThrShieldDbnhl != ''">
abr_bc_left_thr_shield_dbnhl = #{abrBcLeftThrShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcRightThrDbnhl != null and abrBcRightThrDbnhl != ''">
abr_bc_right_thr_dbnhl = #{abrBcRightThrDbnhl,jdbcType=VARCHAR},
</if>
<if test="abrBcRightThrMs != null and abrBcRightThrMs != ''">
abr_bc_right_thr_ms = #{abrBcRightThrMs,jdbcType=VARCHAR},
</if>
<if test="abrBcRightThrShieldDbnhl != null and abrBcRightThrShieldDbnhl != ''">
abr_bc_right_thr_shield_dbnhl = #{abrBcRightThrShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrLeftDbnhl != null and reactionThrLeftDbnhl != ''">
reaction_thr_left_dbnhl = #{reactionThrLeftDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrLeftShieldDbnhl != null and reactionThrLeftShieldDbnhl != ''">
reaction_thr_left_shield_dbnhl = #{reactionThrLeftShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrRightDbnhl != null and reactionThrRightDbnhl != ''">
reaction_thr_right_dbnhl = #{reactionThrRightDbnhl,jdbcType=VARCHAR},
</if>
<if test="reactionThrRightShieldDbnhl != null and reactionThrRightShieldDbnhl != ''">
reaction_thr_right_shield_dbnhl = #{reactionThrRightShieldDbnhl,jdbcType=VARCHAR},
</if>
<if test="oaeLeft750 != null and oaeLeft750 != ''">
oae_left_750 = #{oaeLeft750,jdbcType=VARCHAR},
</if>
<if test="oaeLeft1k != null and oaeLeft1k != ''">
oae_left_1k = #{oaeLeft1k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft2k != null and oaeLeft2k != ''">
oae_left_2k = #{oaeLeft2k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft3k != null and oaeLeft3k != ''">
oae_left_3k = #{oaeLeft3k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft4k != null and oaeLeft4k != ''">
oae_left_4k = #{oaeLeft4k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft6k != null and oaeLeft6k != ''">
oae_left_6k = #{oaeLeft6k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft8k != null and oaeLeft8k != ''">
oae_left_8k = #{oaeLeft8k,jdbcType=VARCHAR},
</if>
<if test="oaeLeft10k != null and oaeLeft10k != ''">
oae_left_10k = #{oaeLeft10k,jdbcType=VARCHAR},
</if>
<if test="oaeRight750 != null and oaeRight750 != ''">
oae_right_750 = #{oaeRight750,jdbcType=VARCHAR},
</if>
<if test="oaeRight1k != null and oaeRight1k != ''">
oae_right_1k = #{oaeRight1k,jdbcType=VARCHAR},
</if>
<if test="oaeRight2k != null and oaeRight2k != ''">
oae_right_2k = #{oaeRight2k,jdbcType=VARCHAR},
</if>
<if test="oaeRight3k != null and oaeRight3k != ''">
oae_right_3k = #{oaeRight3k,jdbcType=VARCHAR},
</if>
<if test="oaeRight4k != null and oaeRight4k != ''">
oae_right_4k = #{oaeRight4k,jdbcType=VARCHAR},
</if>
<if test="oaeRight6k != null and oaeRight6k != ''">
oae_right_6k = #{oaeRight6k,jdbcType=VARCHAR},
</if>
<if test="oaeRight8k != null and oaeRight8k != ''">
oae_right_8k = #{oaeRight8k,jdbcType=VARCHAR},
</if>
<if test="oaeRight10k != null and oaeRight10k != ''">
oae_right_10k = #{oaeRight10k,jdbcType=VARCHAR},
</if>
<if test="acadLeftCurveType != null and acadLeftCurveType != ''">
acad_left_curve_type = #{acadLeftCurveType,jdbcType=VARCHAR},
</if>
<if test="acadLeftDrumCp != null and acadLeftDrumCp != ''">
acad_left_drum_cp = #{acadLeftDrumCp,jdbcType=VARCHAR},
</if>
<if test="acadLeftAcco != null and acadLeftAcco != ''">
acad_left_acco = #{acadLeftAcco,jdbcType=VARCHAR},
</if>
<if test="acadLeftSecondoVolume != null and acadLeftSecondoVolume != ''">
acad_left_secondo_volume = #{acadLeftSecondoVolume,jdbcType=VARCHAR},
</if>
<if test="acadLeftGradient != null and acadLeftGradient != ''">
acad_left_gradient = #{acadLeftGradient,jdbcType=VARCHAR},
</if>
<if test="acadLeft1kReflectThre != null and acadLeft1kReflectThre != ''">
acad_left_1K_reflect_thre = #{acadLeft1kReflectThre,jdbcType=VARCHAR},
</if>
<if test="acadLeftReflectTTS != null and acadLeftReflectTTS != ''">
acad_left_reflect_tts = #{acadLeftReflectTTS,jdbcType=VARCHAR},
</if>
<if test="acadRightCurveType != null and acadRightCurveType != ''">
acad_right_curve_type = #{acadRightCurveType,jdbcType=VARCHAR},
</if>
<if test="acadRightDrumCp != null and acadRightDrumCp != ''">
acad_right_drum_cp = #{acadRightDrumCp,jdbcType=VARCHAR},
</if>
<if test="acadRightAcco != null and acadRightAcco != ''">
acad_right_acco = #{acadRightAcco,jdbcType=VARCHAR},
</if>
<if test="acadRightSecondoVolume != null and acadRightSecondoVolume != ''">
acad_right_secondo_volume = #{acadRightSecondoVolume,jdbcType=VARCHAR},
</if>
<if test="acadRightGradient != null and acadRightGradient != ''">
acad_right_gradient = #{acadRightGradient,jdbcType=VARCHAR},
</if>
<if test="acadRight1kReflectThre != null and acadRight1kReflectThre != ''">
acad_right_1K_reflect_thre = #{acadRight1kReflectThre,jdbcType=VARCHAR},
</if>
<if test="acadRightReflectTTS != null and acadRightReflectTTS != ''">
acad_right_reflect_tts = #{acadRightReflectTTS,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi500 != null and soundReflLeftIpsi500 != ''">
sound_refl_left_ipsi_500 = #{soundReflLeftIpsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi1k != null and soundReflLeftIpsi1k != ''">
sound_refl_left_ipsi_1k = #{soundReflLeftIpsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi2k != null and soundReflLeftIpsi2k != ''">
sound_refl_left_ipsi_2k = #{soundReflLeftIpsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftIpsi4k != null and soundReflLeftIpsi4k != ''">
sound_refl_left_ipsi_4k = #{soundReflLeftIpsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi500 != null and soundReflLeftOffsi500 != ''">
sound_refl_left_offsi_500 = #{soundReflLeftOffsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi1k != null and soundReflLeftOffsi1k != ''">
sound_refl_left_offsi_1k = #{soundReflLeftOffsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi2k != null and soundReflLeftOffsi2k != ''">
sound_refl_left_offsi_2k = #{soundReflLeftOffsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftOffsi4k != null and soundReflLeftOffsi4k != ''">
sound_refl_left_offsi_4k = #{soundReflLeftOffsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflLeftAtten != null and soundReflLeftAtten != ''">
sound_refl_left_atten = #{soundReflLeftAtten,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi500 != null and soundReflRightIpsi500 != ''">
sound_refl_right_ipsi_500 = #{soundReflRightIpsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi1k != null and soundReflRightIpsi1k != ''">
sound_refl_right_ipsi_1k = #{soundReflRightIpsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi2k != null and soundReflRightIpsi2k != ''">
sound_refl_right_ipsi_2k = #{soundReflRightIpsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightIpsi4k != null and soundReflRightIpsi4k != ''">
sound_refl_right_ipsi_4k = #{soundReflRightIpsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi500 != null and soundReflRightOffsi500 != ''">
sound_refl_right_offsi_500 = #{soundReflRightOffsi500,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi1k != null and soundReflRightOffsi1k != ''">
sound_refl_right_offsi_1k = #{soundReflRightOffsi1k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi2k != null and soundReflRightOffsi2k != ''">
sound_refl_right_offsi_2k = #{soundReflRightOffsi2k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightOffsi4k != null and soundReflRightOffsi4k != ''">
sound_refl_right_offsi_4k = #{soundReflRightOffsi4k,jdbcType=VARCHAR},
</if>
<if test="soundReflRightAtten != null and soundReflRightAtten != ''">
sound_refl_right_atten = #{soundReflRightAtten,jdbcType=VARCHAR},
</if>
<if test="aabrLeftIfPass != null and aabrLeftIfPass >= 0">
aabr_left_if_pass = #{aabrLeftIfPass,jdbcType=INTEGER},
</if>
<if test="aabrRightIfPass != null and aabrRightIfPass >= 0">
aabr_right_if_pass = #{aabrRightIfPass,jdbcType=INTEGER},
</if>
<if test="assrLeft500 != null and assrLeft500 != ''">
assr_left_500 = #{assrLeft500,jdbcType=VARCHAR},
</if>
<if test="assrLeft1k != null and assrLeft1k != ''">
assr_left_1k = #{assrLeft1k,jdbcType=VARCHAR},
</if>
<if test="assrLeft2k != null and assrLeft2k != ''">
assr_left_2k = #{assrLeft2k,jdbcType=VARCHAR},
</if>
<if test="assrLeft4k != null and assrLeft4k != ''">
assr_left_4k = #{assrLeft4k,jdbcType=VARCHAR},
</if>
<if test="assrRight500 != null and assrRight500 != ''">
assr_right_500 = #{assrRight500,jdbcType=VARCHAR},
</if>
<if test="assrRight1k != null and assrRight1k != ''">
assr_right_1k = #{assrRight1k,jdbcType=VARCHAR},
</if>
<if test="assrRight2k != null and assrRight2k != ''">
assr_right_2k = #{assrRight2k,jdbcType=VARCHAR},
</if>
<if test="assrRight4k != null and assrRight4k != ''">
assr_right_4k = #{assrRight4k,jdbcType=VARCHAR},
</if>
<if test="diagnHandSugge != null and diagnHandSugge != ''">
diagn_hand_sugge = #{diagnHandSugge,jdbcType=VARCHAR},
</if>
<if test="diagnGuideSugge != null and diagnGuideSugge != ''">
diagn_guide_sugge = #{diagnGuideSugge,jdbcType=VARCHAR},
</if>
<if test="diagnDoctorId != null and diagnDoctorId != ''">
diagn_doctor_id = #{diagnDoctorId,jdbcType=VARCHAR},
</if>
<if test="diagnNextTime != null">
diagn_next_time = #{diagnNextTime,jdbcType=TIMESTAMP},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createId != null and createId != ''">
create_id = #{createId,jdbcType=VARCHAR},
</if>
<if test="modifyId != null and modifyId != ''">
modify_id = #{modifyId,jdbcType=VARCHAR},
</if>
<if test="modifyTime != null">
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
</if>
<if test="ifdel != null and ifdel >= 0">
ifdel = #{ifdel,jdbcType=INTEGER},
</if>
<if test="enalble != null and enalble >= 0">
enalble = #{enalble,jdbcType=INTEGER},
</if>
<if test="isconfirm != null and isconfirm >= 0">
isconfirm = #{isconfirm,jdbcType=INTEGER},
</if>
<if test="diagnResult != null and diagnResult != ''">
diagn_result = #{diagnResult,jdbcType=VARCHAR},
</if>
<if test="confirmResult != null and confirmResult != ''">
confirm_result = #{confirmResult,jdbcType=VARCHAR},
</if>
<if test="pid != null and pid != ''">
pid = #{pid,jdbcType=VARCHAR},
</if>
<if test="confirmTime != null">
confirm_time = #{confirmTime,jdbcType=TIMESTAMP},
</if>
<if test="doctorSign != null and doctorSign != ''">
doctorSign = #{doctorSign,jdbcType=VARCHAR},
</if>
<if test="patientSign != null and patientSign != ''">
patientSign = #{patientSign,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<delete id="deleteBabyPatientExtendEarHearingDiagnose" parameterType="java.lang.String">
delete from baby_patient_extend_ear_hearing_diagnose where id = #{id,jdbcType=VARCHAR}
</delete>
<select id="getBabyPatientExtendEarHearingDiagnose" resultMap="BabyPatientExtendEarHearingDiagnoseResultMap"
parameterType="java.lang.String">
select id,baby_id,hospital_id,diagnose_time,high_factor,abr_left_dbnhl,abr_left_l_wave,abr_left_lll_wave,abr_left_V_wave,abr_left_shield,abr_right_dbnhl,abr_right_l_wave,abr_right_lll_wave,abr_right_V_wave,abr_right_shield,abr_thr_left_dbnhl,abr_thr_left_ms,abr_thr_left_shield_dbnhl,abr_thr_right_dbnhl,abr_thr_right_ms,abr_thr_right_shield_dbnhl,abr_bc_left_thr_dbnhl,abr_bc_left_thr_ms,abr_bc_left_thr_shield_dbnhl,abr_bc_right_thr_dbnhl,abr_bc_right_thr_ms,abr_bc_right_thr_shield_dbnhl,reaction_thr_left_dbnhl,reaction_thr_left_shield_dbnhl,reaction_thr_right_dbnhl,reaction_thr_right_shield_dbnhl,oae_left_750,oae_left_1k,oae_left_2k,oae_left_3k,oae_left_4k,oae_left_6k,oae_left_8k,oae_left_10k,oae_right_750,oae_right_1k,oae_right_2k,oae_right_3k,oae_right_4k,oae_right_6k,oae_right_8k,oae_right_10k,acad_left_curve_type,acad_left_drum_cp,acad_left_acco,acad_left_secondo_volume,acad_left_gradient,acad_left_1K_reflect_thre,acad_left_reflect_tts,acad_right_curve_type,acad_right_drum_cp,acad_right_acco,acad_right_secondo_volume,acad_right_gradient,acad_right_1K_reflect_thre,acad_right_reflect_tts,sound_refl_left_ipsi_500,sound_refl_left_ipsi_1k,sound_refl_left_ipsi_2k,sound_refl_left_ipsi_4k,sound_refl_left_offsi_500,sound_refl_left_offsi_1k,sound_refl_left_offsi_2k,sound_refl_left_offsi_4k,sound_refl_left_atten,sound_refl_right_ipsi_500,sound_refl_right_ipsi_1k,sound_refl_right_ipsi_2k,sound_refl_right_ipsi_4k,sound_refl_right_offsi_500,sound_refl_right_offsi_1k,sound_refl_right_offsi_2k,sound_refl_right_offsi_4k,sound_refl_right_atten,aabr_left_if_pass,aabr_right_if_pass,assr_left_500,assr_left_1k,assr_left_2k,assr_left_4k,assr_right_500,assr_right_1k,assr_right_2k,assr_right_4k,diagn_hand_sugge,diagn_guide_sugge,diagn_doctor_id,diagn_next_time,create_time,create_id,modify_id,modify_time,ifdel,enalble,isconfirm,diagn_result,confirm_result,confirm_time,pid,doctorSign,patientSign
from baby_patient_extend_ear_hearing_diagnose where id = #{id,jdbcType=VARCHAR}
</select>
<sql id="orderAndLimit">
<if test="sort != null and sort != '' ">
order by ${sort}
<if test="need != null">
limit #{offset, jdbcType=INTEGER} , #{limit, jdbcType=INTEGER}
</if>
</if>
</sql>
<sql id="BabyPatientExtendEarHearingDiagnoseCondition">
<where>
1 = 1
<if test="id != null and id != ''">
and id = #{id,jdbcType=VARCHAR}
</if>
<if test="babyId != null and babyId != ''">
and baby_id = #{babyId,jdbcType=VARCHAR}
</if>
<if test="babyIds != null ">
and baby_id in
<foreach item="item" index="index" collection="babyIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="hospitalId != null and hospitalId != ''">
and hospital_id = #{hospitalId,jdbcType=VARCHAR}
</if>
<if test="checkHospitalIds != null and checkHospitalIds != ''">
and hospital_id in
<foreach item="item" index="index" collection="checkHospitalIds" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="diagnoseTime != null">
and diagnose_time = #{diagnoseTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnoseStartTime != null">
and diagnose_time >= #{diagnoseStartTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnoseEndTime != null">
and diagnose_time <![CDATA[<]]>= #{diagnoseEndTime,jdbcType=TIMESTAMP}
</if>
<if test="highFactor != null and highFactor != ''">
and high_factor = #{highFactor,jdbcType=VARCHAR}
</if>
<if test="abrLeftDbnhl != null and abrLeftDbnhl != ''">
and abr_left_dbnhl = #{abrLeftDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrLeftLWave != null and abrLeftLWave != ''">
and abr_left_l_wave = #{abrLeftLWave,jdbcType=VARCHAR}
</if>
<if test="abrLeftLllWave != null and abrLeftLllWave != ''">
and abr_left_lll_wave = #{abrLeftLllWave,jdbcType=VARCHAR}
</if>
<if test="abrLeftVWave != null and abrLeftVWave != ''">
and abr_left_V_wave = #{abrLeftVWave,jdbcType=VARCHAR}
</if>
<if test="abrLeftShield != null and abrLeftShield != ''">
and abr_left_shield = #{abrLeftShield,jdbcType=VARCHAR}
</if>
<if test="abrRightDbnhl != null and abrRightDbnhl != ''">
and abr_right_dbnhl = #{abrRightDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrRightLWave != null and abrRightLWave != ''">
and abr_right_l_wave = #{abrRightLWave,jdbcType=VARCHAR}
</if>
<if test="abrRightLllWave != null and abrRightLllWave != ''">
and abr_right_lll_wave = #{abrRightLllWave,jdbcType=VARCHAR}
</if>
<if test="abrRightVWave != null and abrRightVWave != ''">
and abr_right_V_wave = #{abrRightVWave,jdbcType=VARCHAR}
</if>
<if test="abrRightShield != null and abrRightShield != ''">
and abr_right_shield = #{abrRightShield,jdbcType=VARCHAR}
</if>
<if test="abrThrLeftDbnhl != null and abrThrLeftDbnhl != ''">
and abr_thr_left_dbnhl = #{abrThrLeftDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrThrLeftMs != null and abrThrLeftMs != ''">
and abr_thr_left_ms = #{abrThrLeftMs,jdbcType=VARCHAR}
</if>
<if test="abrThrLeftShieldDbnhl != null and abrThrLeftShieldDbnhl != ''">
and abr_thr_left_shield_dbnhl = #{abrThrLeftShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrThrRightDbnhl != null and abrThrRightDbnhl != ''">
and abr_thr_right_dbnhl = #{abrThrRightDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrThrRightMs != null and abrThrRightMs != ''">
and abr_thr_right_ms = #{abrThrRightMs,jdbcType=VARCHAR}
</if>
<if test="abrThrRightShieldDbnhl != null and abrThrRightShieldDbnhl != ''">
and abr_thr_right_shield_dbnhl = #{abrThrRightShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcLeftThrDbnhl != null and abrBcLeftThrDbnhl != ''">
and abr_bc_left_thr_dbnhl = #{abrBcLeftThrDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcLeftThrMs != null and abrBcLeftThrMs != ''">
and abr_bc_left_thr_ms = #{abrBcLeftThrMs,jdbcType=VARCHAR}
</if>
<if test="abrBcLeftThrShieldDbnhl != null and abrBcLeftThrShieldDbnhl != ''">
and abr_bc_left_thr_shield_dbnhl = #{abrBcLeftThrShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcRightThrDbnhl != null and abrBcRightThrDbnhl != ''">
and abr_bc_right_thr_dbnhl = #{abrBcRightThrDbnhl,jdbcType=VARCHAR}
</if>
<if test="abrBcRightThrMs != null and abrBcRightThrMs != ''">
and abr_bc_right_thr_ms = #{abrBcRightThrMs,jdbcType=VARCHAR}
</if>
<if test="abrBcRightThrShieldDbnhl != null and abrBcRightThrShieldDbnhl != ''">
and abr_bc_right_thr_shield_dbnhl = #{abrBcRightThrShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrLeftDbnhl != null and reactionThrLeftDbnhl != ''">
and reaction_thr_left_dbnhl = #{reactionThrLeftDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrLeftShieldDbnhl != null and reactionThrLeftShieldDbnhl != ''">
and reaction_thr_left_shield_dbnhl = #{reactionThrLeftShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrRightDbnhl != null and reactionThrRightDbnhl != ''">
and reaction_thr_right_dbnhl = #{reactionThrRightDbnhl,jdbcType=VARCHAR}
</if>
<if test="reactionThrRightShieldDbnhl != null and reactionThrRightShieldDbnhl != ''">
and reaction_thr_right_shield_dbnhl = #{reactionThrRightShieldDbnhl,jdbcType=VARCHAR}
</if>
<if test="oaeLeft750 != null and oaeLeft750 != ''">
and oae_left_750 = #{oaeLeft750,jdbcType=VARCHAR}
</if>
<if test="oaeLeft1k != null and oaeLeft1k != ''">
and oae_left_1k = #{oaeLeft1k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft2k != null and oaeLeft2k != ''">
and oae_left_2k = #{oaeLeft2k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft3k != null and oaeLeft3k != ''">
and oae_left_3k = #{oaeLeft3k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft4k != null and oaeLeft4k != ''">
and oae_left_4k = #{oaeLeft4k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft6k != null and oaeLeft6k != ''">
and oae_left_6k = #{oaeLeft6k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft8k != null and oaeLeft8k != ''">
and oae_left_8k = #{oaeLeft8k,jdbcType=VARCHAR}
</if>
<if test="oaeLeft10k != null and oaeLeft10k != ''">
and oae_left_10k = #{oaeLeft10k,jdbcType=VARCHAR}
</if>
<if test="oaeRight750 != null and oaeRight750 != ''">
and oae_right_750 = #{oaeRight750,jdbcType=VARCHAR}
</if>
<if test="oaeRight1k != null and oaeRight1k != ''">
and oae_right_1k = #{oaeRight1k,jdbcType=VARCHAR}
</if>
<if test="oaeRight2k != null and oaeRight2k != ''">
and oae_right_2k = #{oaeRight2k,jdbcType=VARCHAR}
</if>
<if test="oaeRight3k != null and oaeRight3k != ''">
and oae_right_3k = #{oaeRight3k,jdbcType=VARCHAR}
</if>
<if test="oaeRight4k != null and oaeRight4k != ''">
and oae_right_4k = #{oaeRight4k,jdbcType=VARCHAR}
</if>
<if test="oaeRight6k != null and oaeRight6k != ''">
and oae_right_6k = #{oaeRight6k,jdbcType=VARCHAR}
</if>
<if test="oaeRight8k != null and oaeRight8k != ''">
and oae_right_8k = #{oaeRight8k,jdbcType=VARCHAR}
</if>
<if test="oaeRight10k != null and oaeRight10k != ''">
and oae_right_10k = #{oaeRight10k,jdbcType=VARCHAR}
</if>
<if test="acadLeftCurveType != null and acadLeftCurveType != ''">
and acad_left_curve_type = #{acadLeftCurveType,jdbcType=VARCHAR}
</if>
<if test="acadLeftDrumCp != null and acadLeftDrumCp != ''">
and acad_left_drum_cp = #{acadLeftDrumCp,jdbcType=VARCHAR}
</if>
<if test="acadLeftAcco != null and acadLeftAcco != ''">
and acad_left_acco = #{acadLeftAcco,jdbcType=VARCHAR}
</if>
<if test="acadLeftSecondoVolume != null and acadLeftSecondoVolume != ''">
and acad_left_secondo_volume = #{acadLeftSecondoVolume,jdbcType=VARCHAR}
</if>
<if test="acadLeftGradient != null and acadLeftGradient != ''">
and acad_left_gradient = #{acadLeftGradient,jdbcType=VARCHAR}
</if>
<if test="acadLeft1kReflectThre != null and acadLeft1kReflectThre != ''">
and acad_left_1K_reflect_thre = #{acadLeft1kReflectThre,jdbcType=VARCHAR}
</if>
<if test="acadRightCurveType != null and acadRightCurveType != ''">
and acad_right_curve_type = #{acadRightCurveType,jdbcType=VARCHAR}
</if>
<if test="acadRightDrumCp != null and acadRightDrumCp != ''">
and acad_right_drum_cp = #{acadRightDrumCp,jdbcType=VARCHAR}
</if>
<if test="acadRightAcco != null and acadRightAcco != ''">
and acad_right_acco = #{acadRightAcco,jdbcType=VARCHAR}
</if>
<if test="acadRightSecondoVolume != null and acadRightSecondoVolume != ''">
and acad_right_secondo_volume = #{acadRightSecondoVolume,jdbcType=VARCHAR}
</if>
<if test="acadRightGradient != null and acadRightGradient != ''">
and acad_right_gradient = #{acadRightGradient,jdbcType=VARCHAR}
</if>
<if test="acadRight1kReflectThre != null and acadRight1kReflectThre != ''">
and acad_right_1K_reflect_thre = #{acadRight1kReflectThre,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi500 != null and soundReflLeftIpsi500 != ''">
and sound_refl_left_ipsi_500 = #{soundReflLeftIpsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi1k != null and soundReflLeftIpsi1k != ''">
and sound_refl_left_ipsi_1k = #{soundReflLeftIpsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi2k != null and soundReflLeftIpsi2k != ''">
and sound_refl_left_ipsi_2k = #{soundReflLeftIpsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftIpsi4k != null and soundReflLeftIpsi4k != ''">
and sound_refl_left_ipsi_4k = #{soundReflLeftIpsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi500 != null and soundReflLeftOffsi500 != ''">
and sound_refl_left_offsi_500 = #{soundReflLeftOffsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi1k != null and soundReflLeftOffsi1k != ''">
and sound_refl_left_offsi_1k = #{soundReflLeftOffsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi2k != null and soundReflLeftOffsi2k != ''">
and sound_refl_left_offsi_2k = #{soundReflLeftOffsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftOffsi4k != null and soundReflLeftOffsi4k != ''">
and sound_refl_left_offsi_4k = #{soundReflLeftOffsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflLeftAtten != null and soundReflLeftAtten != ''">
and sound_refl_left_atten = #{soundReflLeftAtten,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi500 != null and soundReflRightIpsi500 != ''">
and sound_refl_right_ipsi_500 = #{soundReflRightIpsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi1k != null and soundReflRightIpsi1k != ''">
and sound_refl_right_ipsi_1k = #{soundReflRightIpsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi2k != null and soundReflRightIpsi2k != ''">
and sound_refl_right_ipsi_2k = #{soundReflRightIpsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightIpsi4k != null and soundReflRightIpsi4k != ''">
and sound_refl_right_ipsi_4k = #{soundReflRightIpsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi500 != null and soundReflRightOffsi500 != ''">
and sound_refl_right_offsi_500 = #{soundReflRightOffsi500,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi1k != null and soundReflRightOffsi1k != ''">
and sound_refl_right_offsi_1k = #{soundReflRightOffsi1k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi2k != null and soundReflRightOffsi2k != ''">
and sound_refl_right_offsi_2k = #{soundReflRightOffsi2k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightOffsi4k != null and soundReflRightOffsi4k != ''">
and sound_refl_right_offsi_4k = #{soundReflRightOffsi4k,jdbcType=VARCHAR}
</if>
<if test="soundReflRightAtten != null and soundReflRightAtten != ''">
and sound_refl_right_atten = #{soundReflRightAtten,jdbcType=VARCHAR}
</if>
<if test="aabrLeftIfPass != null and aabrLeftIfPass >= 0">
and aabr_left_if_pass = #{aabrLeftIfPass,jdbcType=INTEGER}
</if>
<if test="aabrRightIfPass != null and aabrRightIfPass >= 0">
and aabr_right_if_pass = #{aabrRightIfPass,jdbcType=INTEGER}
</if>
<if test="assrLeft500 != null and assrLeft500 != ''">
and assr_left_500 = #{assrLeft500,jdbcType=VARCHAR}
</if>
<if test="assrLeft1k != null and assrLeft1k != ''">
and assr_left_1k = #{assrLeft1k,jdbcType=VARCHAR}
</if>
<if test="assrLeft2k != null and assrLeft2k != ''">
and assr_left_2k = #{assrLeft2k,jdbcType=VARCHAR}
</if>
<if test="assrLeft4k != null and assrLeft4k != ''">
and assr_left_4k = #{assrLeft4k,jdbcType=VARCHAR}
</if>
<if test="assrRight500 != null and assrRight500 != ''">
and assr_right_500 = #{assrRight500,jdbcType=VARCHAR}
</if>
<if test="assrRight1k != null and assrRight1k != ''">
and assr_right_1k = #{assrRight1k,jdbcType=VARCHAR}
</if>
<if test="assrRight2k != null and assrRight2k != ''">
and assr_right_2k = #{assrRight2k,jdbcType=VARCHAR}
</if>
<if test="assrRight4k != null and assrRight4k != ''">
and assr_right_4k = #{assrRight4k,jdbcType=VARCHAR}
</if>
<if test="diagnHandSugge != null and diagnHandSugge != ''">
and diagn_hand_sugge = #{diagnHandSugge,jdbcType=VARCHAR}
</if>
<if test="diagnGuideSugge != null and diagnGuideSugge != ''">
and diagn_guide_sugge = #{diagnGuideSugge,jdbcType=VARCHAR}
</if>
<if test="diagnDoctorId != null and diagnDoctorId != ''">
and diagn_doctor_id = #{diagnDoctorId,jdbcType=VARCHAR}
</if>
<if test="diagnNextTime != null">
and diagn_next_time = #{diagnNextTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnNextStartTime != null">
and diagn_next_time >= #{diagnNextStartTime,jdbcType=TIMESTAMP}
</if>
<if test="diagnNextEndTime != null">
and diagn_next_time <![CDATA[<]]>= #{diagnNextEndTime,jdbcType=TIMESTAMP}
</if>
<if test="createTime != null">
and create_time = #{createTime,jdbcType=TIMESTAMP}
</if>
<if test="createId != null and createId != ''">
and create_id = #{createId,jdbcType=VARCHAR}
</if>
<if test="modifyId != null and modifyId != ''">
and modify_id = #{modifyId,jdbcType=VARCHAR}
</if>
<if test="modifyTime != null">
and modify_time = #{modifyTime,jdbcType=TIMESTAMP}
</if>
<if test="ifdel != null and ifdel >= 0">
and ifdel = #{ifdel,jdbcType=INTEGER}
</if>
<if test="enalble != null and enalble >= 0">
and enalble = #{enalble,jdbcType=INTEGER}
</if>
<if test="isconfirm != null and isconfirm >= 0">
and isconfirm = #{isconfirm,jdbcType=INTEGER}
</if>
<if test="diagnResult != null and diagnResult != ''">
and diagn_result = #{diagnResult,jdbcType=VARCHAR}
</if>
<if test="confirmResult != null and confirmResult != ''">
and confirm_result LIKE concat("%,",#{confirmResult,jdbcType=VARCHAR},",%")
</if>
<if test="pid != null and pid != ''">
and pid = #{pid,jdbcType=VARCHAR}
</if>
<if test="confirmTime != null">
and confirm_time = #{confirmTime,jdbcType=TIMESTAMP}
</if>
<if test="confirmStartTime != null">
and confirm_time >= #{confirmStartTime,jdbcType=TIMESTAMP}
</if>
<if test="confirmEndTime != null">
and confirm_time >= #{confirmEndTime,jdbcType=TIMESTAMP}
</if>
</where>
</sql>
<select id="queryBabyPatientExtendEarHearingDiagnose" resultMap="BabyPatientExtendEarHearingDiagnoseResultMap"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select
id,baby_id,hospital_id,diagnose_time,high_factor,abr_left_dbnhl,abr_left_l_wave,abr_left_lll_wave,abr_left_V_wave,abr_left_shield,abr_right_dbnhl,abr_right_l_wave,abr_right_lll_wave,abr_right_V_wave,abr_right_shield,abr_thr_left_dbnhl,abr_thr_left_ms,abr_thr_left_shield_dbnhl,abr_thr_right_dbnhl,abr_thr_right_ms,abr_thr_right_shield_dbnhl,abr_bc_left_thr_dbnhl,abr_bc_left_thr_ms,abr_bc_left_thr_shield_dbnhl,abr_bc_right_thr_dbnhl,abr_bc_right_thr_ms,abr_bc_right_thr_shield_dbnhl,reaction_thr_left_dbnhl,reaction_thr_left_shield_dbnhl,reaction_thr_right_dbnhl,reaction_thr_right_shield_dbnhl,oae_left_750,oae_left_1k,oae_left_2k,oae_left_3k,oae_left_4k,oae_left_6k,oae_left_8k,oae_left_10k,oae_right_750,oae_right_1k,oae_right_2k,oae_right_3k,oae_right_4k,oae_right_6k,oae_right_8k,oae_right_10k,acad_left_curve_type,acad_left_drum_cp,acad_left_acco,acad_left_secondo_volume,acad_left_gradient,acad_left_1K_reflect_thre,acad_left_reflect_tts,acad_right_curve_type,acad_right_drum_cp,acad_right_acco,acad_right_secondo_volume,acad_right_gradient,acad_right_1K_reflect_thre,acad_right_reflect_tts,sound_refl_left_ipsi_500,sound_refl_left_ipsi_1k,sound_refl_left_ipsi_2k,sound_refl_left_ipsi_4k,sound_refl_left_offsi_500,sound_refl_left_offsi_1k,sound_refl_left_offsi_2k,sound_refl_left_offsi_4k,sound_refl_left_atten,sound_refl_right_ipsi_500,sound_refl_right_ipsi_1k,sound_refl_right_ipsi_2k,sound_refl_right_ipsi_4k,sound_refl_right_offsi_500,sound_refl_right_offsi_1k,sound_refl_right_offsi_2k,sound_refl_right_offsi_4k,sound_refl_right_atten,aabr_left_if_pass,aabr_right_if_pass,assr_left_500,assr_left_1k,assr_left_2k,assr_left_4k,assr_right_500,assr_right_1k,assr_right_2k,assr_right_4k,diagn_hand_sugge,diagn_guide_sugge,diagn_doctor_id,diagn_next_time,create_time,create_id,modify_id,modify_time,ifdel,enalble,isconfirm,diagn_result,confirm_result,confirm_time,pid
from baby_patient_extend_ear_hearing_diagnose
<include refid="BabyPatientExtendEarHearingDiagnoseCondition"/>
<include refid="orderAndLimit"/>
</select>
<select id="getBabyPatientExtendEarHearingDiagnoseIds" resultType="String">
select baby_id from baby_patient_extend_ear_hearing_diagnose
where hospital_id = #{hospitalId,jdbcType=VARCHAR}
</select>
<select id="queryBabyPatientExtendEarHearingDiagnoseCount" resultType="int"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select count(1) from baby_patient_extend_ear_hearing_diagnose
<include refid="BabyPatientExtendEarHearingDiagnoseCondition"/>
</select>
<select id="getHdAndScreenCount" resultType="int"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select count(1) from (
select hd.id,hd.baby_id,max(hd.diagnose_time) diagnose_time,hd.high_factor,hd.confirm_result,hd.diagn_doctor_id,diagn_result,isconfirm,diagn_hand_sugge
from baby_patient_extend_ear_hearing_diagnose hd
<where>
1 = 1
<if test="diagnoseStartTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnoseStartTime},hd.diagnose_time) <=0
]]>
</if>
<if test="diagnoseEndTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnoseEndTime},hd.diagnose_time) >=0
]]>
</if>
<if test="diagnDoctorId!=null">
and
hd.diagn_doctor_id = #{diagnDoctorId}
</if>
<if test="diagnNextStartTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnNextStartTime},hd.diagn_next_time)<=0
]]>
</if>
<if test="diagnNextEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnNextEndTime},hd.diagn_next_time) >=0
]]>
</if>
<if test="isconfirm!=null">
AND
hd.isconfirm = #{isconfirm}
</if>
<if test="confirmResult!=null">
and
hd.confirm_result like concat("%",#{confirmResult},"%")
</if>
<if test="confirmStartTime!=null">
and
<![CDATA[
DATEDIFF(#{confirmStartTime},hd.confirm_time)<=0
]]>
</if>
<if test="confirmEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{confirmEndTime},hd.confirm_time) >=0
]]>
</if>
<if test="babyIds!=null">
and baby_id in (
<foreach item="babyId" collection="babyIds" separator="," >
#{babyId}
</foreach>
)
</if>
<if test="confirmResult != null and confirmResult != ''">
and confirm_result like concat("%,",#{confirmResult,jdbcType=VARCHAR},",%")
</if>
<if test="confirmResults!=null">
and (
<foreach item="cfrs" collection="confirmResults" separator=" or ">
confirm_result like concat("%",#{cfrs,jdbcType=VARCHAR},"%")
</foreach>
)
</if>
</where>
group by baby_id
)a
</select>
<select id="getHdAndScreen" resultMap="BabyPatientExtendEarHearingDiagnoseResultMap"
parameterType="com.lyms.platform.permission.model.BabyPatientExtendEarHearingDiagnoseQuery">
select hd.id,hd.baby_id,hd.diagnose_time,diagnose_time,hd.high_factor,hd.confirm_result,hd.diagn_doctor_id,diagn_result,isconfirm,diagn_hand_sugge
from baby_patient_extend_ear_hearing_diagnose hd
<where>
1=1
and ifdel = 0
<if test="diagnoseStartTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnoseStartTime},hd.diagnose_time) <=0
]]>
</if>
<if test="diagnoseEndTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnoseEndTime},hd.diagnose_time) >=0
]]>
</if>
<if test="diagnDoctorId!=null">
and
hd.diagn_doctor_id = #{diagnDoctorId}
</if>
<if test="diagnNextStartTime!=null">
and
<![CDATA[
DATEDIFF(#{diagnNextStartTime},hd.diagn_next_time)<=0
]]>
</if>
<if test="diagnNextEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{diagnNextEndTime},hd.diagn_next_time) >=0
]]>
</if>
<if test="isconfirm!=null">
AND
hd.isconfirm = #{isconfirm}
</if>
<if test="confirmResult!=null">
and
hd.confirm_result like concat("%",#{confirmResult},"%")
</if>
<if test="confirmStartTime!=null">
and
<![CDATA[
DATEDIFF(#{confirmStartTime},hd.confirm_time)<=0
]]>
</if>
<if test="confirmEndTime!=null">
AND
<![CDATA[
DATEDIFF(#{confirmEndTime},hd.confirm_time) >=0
]]>
</if>
<if test="hospitalId != null and hospitalId != ''">
and hospital_id = #{hospitalId,jdbcType=VARCHAR}
</if>
<if test="pids != null">
and pid in
<foreach item="item" index="index" collection="pids" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="babyIds!=null">
and baby_id in (
<foreach item="babyId" collection="babyIds" separator="," >
#{babyId}
</foreach>
)
</if>
<if test="confirmResult != null and confirmResult != ''">
and confirm_result like concat("%,",#{confirmResult,jdbcType=VARCHAR},",%")
</if>
<if test="confirmResults!=null">
and (
<foreach item="cfrs" collection="confirmResults" separator=" or ">
confirm_result like concat("%",#{cfrs,jdbcType=VARCHAR},"%")
</foreach>
)
</if>
</where>
<include refid="orderAndLimit"/>
</select>
</mapper>