<?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=".dao.BabyAutismDiagnosisMapper">
<resultMap type=".entity.BabyAutismDiagnosis" id="BabyAutismDiagnosisMap">
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="created" column="created" jdbcType="VARCHAR"/>
<result property="createdStr" column="created_str" jdbcType="VARCHAR"/>
<result property="modified" column="modified" jdbcType="VARCHAR"/>
<result property="modifiedStr" column="modified_str" jdbcType="VARCHAR"/>
<result property="yn" column="yn" jdbcType="INTEGER"/>
<result property="operaterId" column="operater_id" jdbcType="VARCHAR"/>
<result property="hospitalId" column="hospital_id" jdbcType="VARCHAR"/>
<result property="babyId" column="baby_id" jdbcType="VARCHAR"/>
<result property="babyBuildDate" column="baby_build_date" jdbcType="VARCHAR"/>
<result property="babyBuildDateStr" column="baby_build_date_str" jdbcType="VARCHAR"/>
<result property="babyName" column="baby_name" jdbcType="VARCHAR"/>
<result property="babySex" column="baby_sex" jdbcType="INTEGER"/>
<result property="babyMName" column="baby_m_name" jdbcType="VARCHAR"/>
<result property="babyFName" column="baby_f_name" jdbcType="VARCHAR"/>
<result property="babyMPhone" column="baby_m_phone" jdbcType="VARCHAR"/>
<result property="babyFPhone" column="baby_f_phone" jdbcType="VARCHAR"/>
<result property="babyMCertNo" column="baby_m_cert_no" jdbcType="VARCHAR"/>
<result property="babyFCertNo" column="baby_f_cert_no" jdbcType="VARCHAR"/>
<result property="pid" column="pid" jdbcType="VARCHAR"/>
<result property="checkMonthAge" column="check_month_age" jdbcType="VARCHAR"/>
<result property="checkMonthId" column="check_month_id" jdbcType="VARCHAR"/>
<result property="birth" column="birth" jdbcType="VARCHAR"/>
<result property="birthStr" column="birth_str" jdbcType="VARCHAR"/>
<result property="checkTime" column="check_time" jdbcType="VARCHAR"/>
<result property="checkTimeStr" column="check_time_str" jdbcType="VARCHAR"/>
<result property="nextCheckTime" column="next_check_time" jdbcType="VARCHAR"/>
<result property="nextCheckTimeStr" column="next_check_time_str" jdbcType="VARCHAR"/>
<result property="doctor" column="doctor" jdbcType="VARCHAR"/>
<result property="doctorSign" column="doctor_sign" jdbcType="VARCHAR"/>
<result property="patientSign" column="patient_sign" jdbcType="VARCHAR"/>
<result property="checkHospital" column="check_hospital" jdbcType="VARCHAR"/>
<result property="displayState" column="display_state" jdbcType="VARCHAR"/>
<result property="errormsg" column="errormsg" jdbcType="VARCHAR"/>
<result property="checkDoctor" column="check_doctor" jdbcType="VARCHAR"/>
<result property="medicalHistoryInquiry" column="medical_history_inquiry" jdbcType="VARCHAR"/>
<result property="behavioralObservation" column="behavioral_observation" jdbcType="VARCHAR"/>
<result property="physicalExamination" column="physical_examination" jdbcType="VARCHAR"/>
<result property="cARSScale" column="c_a_r_s_scale" jdbcType="VARCHAR"/>
<result property="otherScales" column="other_scales" jdbcType="VARCHAR"/>
<result property="auxiliaryInspection" column="auxiliary_inspection" jdbcType="VARCHAR"/>
<result property="diagnosticResult" column="diagnostic_result" jdbcType="VARCHAR"/>
<result property="comorbidDisease" column="comorbid_disease" jdbcType="VARCHAR"/>
<result property="comorbidDiseaseRes" column="comorbid_disease_res" jdbcType="VARCHAR"/>
<result property="rehabilitationAdvice" column="rehabilitation_advice" jdbcType="VARCHAR"/>
<result property="rehabilitationAdviceRes" column="rehabilitation_advice_res" jdbcType="VARCHAR"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="BabyAutismDiagnosisMap">
select
id, created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res
from baby_autism_diagnosis
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="BabyAutismDiagnosisMap">
select
id, created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res
from baby_autism_diagnosis
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="created != null and created != ''">
and created = #{created}
</if>
<if test="createdStr != null and createdStr != ''">
and created_str = #{createdStr}
</if>
<if test="modified != null and modified != ''">
and modified = #{modified}
</if>
<if test="modifiedStr != null and modifiedStr != ''">
and modified_str = #{modifiedStr}
</if>
<if test="yn != null">
and yn = #{yn}
</if>
<if test="operaterId != null and operaterId != ''">
and operater_id = #{operaterId}
</if>
<if test="hospitalId != null and hospitalId != ''">
and hospital_id = #{hospitalId}
</if>
<if test="babyId != null and babyId != ''">
and baby_id = #{babyId}
</if>
<if test="babyBuildDate != null and babyBuildDate != ''">
and baby_build_date = #{babyBuildDate}
</if>
<if test="babyBuildDateStr != null and babyBuildDateStr != ''">
and baby_build_date_str = #{babyBuildDateStr}
</if>
<if test="babyName != null and babyName != ''">
and baby_name = #{babyName}
</if>
<if test="babySex != null">
and baby_sex = #{babySex}
</if>
<if test="babyMName != null and babyMName != ''">
and baby_m_name = #{babyMName}
</if>
<if test="babyFName != null and babyFName != ''">
and baby_f_name = #{babyFName}
</if>
<if test="babyMPhone != null and babyMPhone != ''">
and baby_m_phone = #{babyMPhone}
</if>
<if test="babyFPhone != null and babyFPhone != ''">
and baby_f_phone = #{babyFPhone}
</if>
<if test="babyMCertNo != null and babyMCertNo != ''">
and baby_m_cert_no = #{babyMCertNo}
</if>
<if test="babyFCertNo != null and babyFCertNo != ''">
and baby_f_cert_no = #{babyFCertNo}
</if>
<if test="pid != null and pid != ''">
and pid = #{pid}
</if>
<if test="checkMonthAge != null and checkMonthAge != ''">
and check_month_age = #{checkMonthAge}
</if>
<if test="checkMonthId != null and checkMonthId != ''">
and check_month_id = #{checkMonthId}
</if>
<if test="birth != null and birth != ''">
and birth = #{birth}
</if>
<if test="birthStr != null and birthStr != ''">
and birth_str = #{birthStr}
</if>
<if test="checkTime != null and checkTime != ''">
and check_time = #{checkTime}
</if>
<if test="checkTimeStr != null and checkTimeStr != ''">
and check_time_str = #{checkTimeStr}
</if>
<if test="nextCheckTime != null and nextCheckTime != ''">
and next_check_time = #{nextCheckTime}
</if>
<if test="nextCheckTimeStr != null and nextCheckTimeStr != ''">
and next_check_time_str = #{nextCheckTimeStr}
</if>
<if test="doctor != null and doctor != ''">
and doctor = #{doctor}
</if>
<if test="doctorSign != null and doctorSign != ''">
and doctor_sign = #{doctorSign}
</if>
<if test="patientSign != null and patientSign != ''">
and patient_sign = #{patientSign}
</if>
<if test="checkHospital != null and checkHospital != ''">
and check_hospital = #{checkHospital}
</if>
<if test="displayState != null and displayState != ''">
and display_state = #{displayState}
</if>
<if test="errormsg != null and errormsg != ''">
and errormsg = #{errormsg}
</if>
<if test="checkDoctor != null and checkDoctor != ''">
and check_doctor = #{checkDoctor}
</if>
<if test="medicalHistoryInquiry != null and medicalHistoryInquiry != ''">
and medical_history_inquiry = #{medicalHistoryInquiry}
</if>
<if test="behavioralObservation != null and behavioralObservation != ''">
and behavioral_observation = #{behavioralObservation}
</if>
<if test="physicalExamination != null and physicalExamination != ''">
and physical_examination = #{physicalExamination}
</if>
<if test="cARSScale != null and cARSScale != ''">
and c_a_r_s_scale = #{cARSScale}
</if>
<if test="otherScales != null and otherScales != ''">
and other_scales = #{otherScales}
</if>
<if test="auxiliaryInspection != null and auxiliaryInspection != ''">
and auxiliary_inspection = #{auxiliaryInspection}
</if>
<if test="diagnosticResult != null and diagnosticResult != ''">
and diagnostic_result = #{diagnosticResult}
</if>
<if test="comorbidDisease != null and comorbidDisease != ''">
and comorbid_disease = #{comorbidDisease}
</if>
<if test="comorbidDiseaseRes != null and comorbidDiseaseRes != ''">
and comorbid_disease_res = #{comorbidDiseaseRes}
</if>
<if test="rehabilitationAdvice != null and rehabilitationAdvice != ''">
and rehabilitation_advice = #{rehabilitationAdvice}
</if>
<if test="rehabilitationAdviceRes != null and rehabilitationAdviceRes != ''">
and rehabilitation_advice_res = #{rehabilitationAdviceRes}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<select id="count" resultType="java.lang.Long">
select count(1)
from baby_autism_diagnosis
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="created != null and created != ''">
and created = #{created}
</if>
<if test="createdStr != null and createdStr != ''">
and created_str = #{createdStr}
</if>
<if test="modified != null and modified != ''">
and modified = #{modified}
</if>
<if test="modifiedStr != null and modifiedStr != ''">
and modified_str = #{modifiedStr}
</if>
<if test="yn != null">
and yn = #{yn}
</if>
<if test="operaterId != null and operaterId != ''">
and operater_id = #{operaterId}
</if>
<if test="hospitalId != null and hospitalId != ''">
and hospital_id = #{hospitalId}
</if>
<if test="babyId != null and babyId != ''">
and baby_id = #{babyId}
</if>
<if test="babyBuildDate != null and babyBuildDate != ''">
and baby_build_date = #{babyBuildDate}
</if>
<if test="babyBuildDateStr != null and babyBuildDateStr != ''">
and baby_build_date_str = #{babyBuildDateStr}
</if>
<if test="babyName != null and babyName != ''">
and baby_name = #{babyName}
</if>
<if test="babySex != null">
and baby_sex = #{babySex}
</if>
<if test="babyMName != null and babyMName != ''">
and baby_m_name = #{babyMName}
</if>
<if test="babyFName != null and babyFName != ''">
and baby_f_name = #{babyFName}
</if>
<if test="babyMPhone != null and babyMPhone != ''">
and baby_m_phone = #{babyMPhone}
</if>
<if test="babyFPhone != null and babyFPhone != ''">
and baby_f_phone = #{babyFPhone}
</if>
<if test="babyMCertNo != null and babyMCertNo != ''">
and baby_m_cert_no = #{babyMCertNo}
</if>
<if test="babyFCertNo != null and babyFCertNo != ''">
and baby_f_cert_no = #{babyFCertNo}
</if>
<if test="pid != null and pid != ''">
and pid = #{pid}
</if>
<if test="checkMonthAge != null and checkMonthAge != ''">
and check_month_age = #{checkMonthAge}
</if>
<if test="checkMonthId != null and checkMonthId != ''">
and check_month_id = #{checkMonthId}
</if>
<if test="birth != null and birth != ''">
and birth = #{birth}
</if>
<if test="birthStr != null and birthStr != ''">
and birth_str = #{birthStr}
</if>
<if test="checkTime != null and checkTime != ''">
and check_time = #{checkTime}
</if>
<if test="checkTimeStr != null and checkTimeStr != ''">
and check_time_str = #{checkTimeStr}
</if>
<if test="nextCheckTime != null and nextCheckTime != ''">
and next_check_time = #{nextCheckTime}
</if>
<if test="nextCheckTimeStr != null and nextCheckTimeStr != ''">
and next_check_time_str = #{nextCheckTimeStr}
</if>
<if test="doctor != null and doctor != ''">
and doctor = #{doctor}
</if>
<if test="doctorSign != null and doctorSign != ''">
and doctor_sign = #{doctorSign}
</if>
<if test="patientSign != null and patientSign != ''">
and patient_sign = #{patientSign}
</if>
<if test="checkHospital != null and checkHospital != ''">
and check_hospital = #{checkHospital}
</if>
<if test="displayState != null and displayState != ''">
and display_state = #{displayState}
</if>
<if test="errormsg != null and errormsg != ''">
and errormsg = #{errormsg}
</if>
<if test="checkDoctor != null and checkDoctor != ''">
and check_doctor = #{checkDoctor}
</if>
<if test="medicalHistoryInquiry != null and medicalHistoryInquiry != ''">
and medical_history_inquiry = #{medicalHistoryInquiry}
</if>
<if test="behavioralObservation != null and behavioralObservation != ''">
and behavioral_observation = #{behavioralObservation}
</if>
<if test="physicalExamination != null and physicalExamination != ''">
and physical_examination = #{physicalExamination}
</if>
<if test="cARSScale != null and cARSScale != ''">
and c_a_r_s_scale = #{cARSScale}
</if>
<if test="otherScales != null and otherScales != ''">
and other_scales = #{otherScales}
</if>
<if test="auxiliaryInspection != null and auxiliaryInspection != ''">
and auxiliary_inspection = #{auxiliaryInspection}
</if>
<if test="diagnosticResult != null and diagnosticResult != ''">
and diagnostic_result = #{diagnosticResult}
</if>
<if test="comorbidDisease != null and comorbidDisease != ''">
and comorbid_disease = #{comorbidDisease}
</if>
<if test="comorbidDiseaseRes != null and comorbidDiseaseRes != ''">
and comorbid_disease_res = #{comorbidDiseaseRes}
</if>
<if test="rehabilitationAdvice != null and rehabilitationAdvice != ''">
and rehabilitation_advice = #{rehabilitationAdvice}
</if>
<if test="rehabilitationAdviceRes != null and rehabilitationAdviceRes != ''">
and rehabilitation_advice_res = #{rehabilitationAdviceRes}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" >
insert into baby_autism_diagnosis(created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res)
values (#{created}, #{createdStr}, #{modified}, #{modifiedStr}, #{yn}, #{operaterId}, #{hospitalId}, #{babyId}, #{babyBuildDate}, #{babyBuildDateStr}, #{babyName}, #{babySex}, #{babyMName}, #{babyFName}, #{babyMPhone}, #{babyFPhone}, #{babyMCertNo}, #{babyFCertNo}, #{pid}, #{checkMonthAge}, #{checkMonthId}, #{birth}, #{birthStr}, #{checkTime}, #{checkTimeStr}, #{nextCheckTime}, #{nextCheckTimeStr}, #{doctor}, #{doctorSign}, #{patientSign}, #{checkHospital}, #{displayState}, #{errormsg}, #{checkDoctor}, #{medicalHistoryInquiry}, #{behavioralObservation}, #{physicalExamination}, #{cARSScale}, #{otherScales}, #{auxiliaryInspection}, #{diagnosticResult}, #{comorbidDisease}, #{comorbidDiseaseRes}, #{rehabilitationAdvice}, #{rehabilitationAdviceRes})
</insert>
<insert id="insertBatch" >
insert into baby_autism_diagnosis(created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.created}, #{entity.createdStr}, #{entity.modified}, #{entity.modifiedStr}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyBuildDateStr}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.birthStr}, #{entity.checkTime}, #{entity.checkTimeStr}, #{entity.nextCheckTime}, #{entity.nextCheckTimeStr}, #{entity.doctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.checkHospital}, #{entity.displayState}, #{entity.errormsg}, #{entity.checkDoctor}, #{entity.medicalHistoryInquiry}, #{entity.behavioralObservation}, #{entity.physicalExamination}, #{entity.cARSScale}, #{entity.otherScales}, #{entity.auxiliaryInspection}, #{entity.diagnosticResult}, #{entity.comorbidDisease}, #{entity.comorbidDiseaseRes}, #{entity.rehabilitationAdvice}, #{entity.rehabilitationAdviceRes})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" >
insert into baby_autism_diagnosis(created, created_str, modified, modified_str, yn, operater_id, hospital_id, baby_id, baby_build_date, baby_build_date_str, baby_name, baby_sex, baby_m_name, baby_f_name, baby_m_phone, baby_f_phone, baby_m_cert_no, baby_f_cert_no, pid, check_month_age, check_month_id, birth, birth_str, check_time, check_time_str, next_check_time, next_check_time_str, doctor, doctor_sign, patient_sign, check_hospital, display_state, errormsg, check_doctor, medical_history_inquiry, behavioral_observation, physical_examination, c_a_r_s_scale, other_scales, auxiliary_inspection, diagnostic_result, comorbid_disease, comorbid_disease_res, rehabilitation_advice, rehabilitation_advice_res)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.created}, #{entity.createdStr}, #{entity.modified}, #{entity.modifiedStr}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{entity.babyBuildDateStr}, #{entity.babyName}, #{entity.babySex}, #{entity.babyMName}, #{entity.babyFName}, #{entity.babyMPhone}, #{entity.babyFPhone}, #{entity.babyMCertNo}, #{entity.babyFCertNo}, #{entity.pid}, #{entity.checkMonthAge}, #{entity.checkMonthId}, #{entity.birth}, #{entity.birthStr}, #{entity.checkTime}, #{entity.checkTimeStr}, #{entity.nextCheckTime}, #{entity.nextCheckTimeStr}, #{entity.doctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.checkHospital}, #{entity.displayState}, #{entity.errormsg}, #{entity.checkDoctor}, #{entity.medicalHistoryInquiry}, #{entity.behavioralObservation}, #{entity.physicalExamination}, #{entity.cARSScale}, #{entity.otherScales}, #{entity.auxiliaryInspection}, #{entity.diagnosticResult}, #{entity.comorbidDisease}, #{entity.comorbidDiseaseRes}, #{entity.rehabilitationAdvice}, #{entity.rehabilitationAdviceRes})
</foreach>
on duplicate key update
created = values(created),
created_str = values(created_str),
modified = values(modified),
modified_str = values(modified_str),
yn = values(yn),
operater_id = values(operater_id),
hospital_id = values(hospital_id),
baby_id = values(baby_id),
baby_build_date = values(baby_build_date),
baby_build_date_str = values(baby_build_date_str),
baby_name = values(baby_name),
baby_sex = values(baby_sex),
baby_m_name = values(baby_m_name),
baby_f_name = values(baby_f_name),
baby_m_phone = values(baby_m_phone),
baby_f_phone = values(baby_f_phone),
baby_m_cert_no = values(baby_m_cert_no),
baby_f_cert_no = values(baby_f_cert_no),
pid = values(pid),
check_month_age = values(check_month_age),
check_month_id = values(check_month_id),
birth = values(birth),
birth_str = values(birth_str),
check_time = values(check_time),
check_time_str = values(check_time_str),
next_check_time = values(next_check_time),
next_check_time_str = values(next_check_time_str),
doctor = values(doctor),
doctor_sign = values(doctor_sign),
patient_sign = values(patient_sign),
check_hospital = values(check_hospital),
display_state = values(display_state),
errormsg = values(errormsg),
check_doctor = values(check_doctor),
medical_history_inquiry = values(medical_history_inquiry),
behavioral_observation = values(behavioral_observation),
physical_examination = values(physical_examination),
c_a_r_s_scale = values(c_a_r_s_scale),
other_scales = values(other_scales),
auxiliary_inspection = values(auxiliary_inspection),
diagnostic_result = values(diagnostic_result),
comorbid_disease = values(comorbid_disease),
comorbid_disease_res = values(comorbid_disease_res),
rehabilitation_advice = values(rehabilitation_advice),
rehabilitation_advice_res = values(rehabilitation_advice_res)
</insert>
<!--通过主键修改数据-->
<update id="update">
update baby_autism_diagnosis
<set>
<if test="created != null and created != ''">
created = #{created},
</if>
<if test="createdStr != null and createdStr != ''">
created_str = #{createdStr},
</if>
<if test="modified != null and modified != ''">
modified = #{modified},
</if>
<if test="modifiedStr != null and modifiedStr != ''">
modified_str = #{modifiedStr},
</if>
<if test="yn != null">
yn = #{yn},
</if>
<if test="operaterId != null and operaterId != ''">
operater_id = #{operaterId},
</if>
<if test="hospitalId != null and hospitalId != ''">
hospital_id = #{hospitalId},
</if>
<if test="babyId != null and babyId != ''">
baby_id = #{babyId},
</if>
<if test="babyBuildDate != null and babyBuildDate != ''">
baby_build_date = #{babyBuildDate},
</if>
<if test="babyBuildDateStr != null and babyBuildDateStr != ''">
baby_build_date_str = #{babyBuildDateStr},
</if>
<if test="babyName != null and babyName != ''">
baby_name = #{babyName},
</if>
<if test="babySex != null">
baby_sex = #{babySex},
</if>
<if test="babyMName != null and babyMName != ''">
baby_m_name = #{babyMName},
</if>
<if test="babyFName != null and babyFName != ''">
baby_f_name = #{babyFName},
</if>
<if test="babyMPhone != null and babyMPhone != ''">
baby_m_phone = #{babyMPhone},
</if>
<if test="babyFPhone != null and babyFPhone != ''">
baby_f_phone = #{babyFPhone},
</if>
<if test="babyMCertNo != null and babyMCertNo != ''">
baby_m_cert_no = #{babyMCertNo},
</if>
<if test="babyFCertNo != null and babyFCertNo != ''">
baby_f_cert_no = #{babyFCertNo},
</if>
<if test="pid != null and pid != ''">
pid = #{pid},
</if>
<if test="checkMonthAge != null and checkMonthAge != ''">
check_month_age = #{checkMonthAge},
</if>
<if test="checkMonthId != null and checkMonthId != ''">
check_month_id = #{checkMonthId},
</if>
<if test="birth != null and birth != ''">
birth = #{birth},
</if>
<if test="birthStr != null and birthStr != ''">
birth_str = #{birthStr},
</if>
<if test="checkTime != null and checkTime != ''">
check_time = #{checkTime},
</if>
<if test="checkTimeStr != null and checkTimeStr != ''">
check_time_str = #{checkTimeStr},
</if>
<if test="nextCheckTime != null and nextCheckTime != ''">
next_check_time = #{nextCheckTime},
</if>
<if test="nextCheckTimeStr != null and nextCheckTimeStr != ''">
next_check_time_str = #{nextCheckTimeStr},
</if>
<if test="doctor != null and doctor != ''">
doctor = #{doctor},
</if>
<if test="doctorSign != null and doctorSign != ''">
doctor_sign = #{doctorSign},
</if>
<if test="patientSign != null and patientSign != ''">
patient_sign = #{patientSign},
</if>
<if test="checkHospital != null and checkHospital != ''">
check_hospital = #{checkHospital},
</if>
<if test="displayState != null and displayState != ''">
display_state = #{displayState},
</if>
<if test="errormsg != null and errormsg != ''">
errormsg = #{errormsg},
</if>
<if test="checkDoctor != null and checkDoctor != ''">
check_doctor = #{checkDoctor},
</if>
<if test="medicalHistoryInquiry != null and medicalHistoryInquiry != ''">
medical_history_inquiry = #{medicalHistoryInquiry},
</if>
<if test="behavioralObservation != null and behavioralObservation != ''">
behavioral_observation = #{behavioralObservation},
</if>
<if test="physicalExamination != null and physicalExamination != ''">
physical_examination = #{physicalExamination},
</if>
<if test="cARSScale != null and cARSScale != ''">
c_a_r_s_scale = #{cARSScale},
</if>
<if test="otherScales != null and otherScales != ''">
other_scales = #{otherScales},
</if>
<if test="auxiliaryInspection != null and auxiliaryInspection != ''">
auxiliary_inspection = #{auxiliaryInspection},
</if>
<if test="diagnosticResult != null and diagnosticResult != ''">
diagnostic_result = #{diagnosticResult},
</if>
<if test="comorbidDisease != null and comorbidDisease != ''">
comorbid_disease = #{comorbidDisease},
</if>
<if test="comorbidDiseaseRes != null and comorbidDiseaseRes != ''">
comorbid_disease_res = #{comorbidDiseaseRes},
</if>
<if test="rehabilitationAdvice != null and rehabilitationAdvice != ''">
rehabilitation_advice = #{rehabilitationAdvice},
</if>
<if test="rehabilitationAdviceRes != null and rehabilitationAdviceRes != ''">
rehabilitation_advice_res = #{rehabilitationAdviceRes},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete from baby_autism_diagnosis where id = #{id}
</delete>
</mapper>