<?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.BabyAutismDoubleSievingMapper">
<resultMap type="com.lyms.platform.pojo.BabyAutismDoubleSieving" id="BabyAutismDoubleSievingMap">
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="created" column="created" jdbcType="VARCHAR"/>
<result property="modified" column="modified" 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="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="checkTime" column="check_time" jdbcType="VARCHAR"/>
<result property="nextCheckTime" column="next_check_time" jdbcType="VARCHAR"/>
<result property="checkDoctor" column="check_doctor" jdbcType="VARCHAR"/>
<result property="doctorSign" column="doctor_sign" jdbcType="VARCHAR"/>
<result property="patientSign" column="patient_sign" jdbcType="VARCHAR"/>
<result property="preliminaryScreeningResults" column="preliminary_screening_results" jdbcType="VARCHAR"/>
<result property="preliminaryScreeningResultsFailedProject" column="preliminary_screening_results_failed_project" jdbcType="VARCHAR"/>
<result property="medicalHistoryName" column="medical_history" jdbcType="VARCHAR"/>
<result property="medicalHistoryRemark" column="medical_history_remark" jdbcType="VARCHAR"/>
<result property="developerQuotient" column="developer_quotient" jdbcType="VARCHAR"/>
<result property="bigMovement" column="big_movement" jdbcType="VARCHAR"/>
<result property="fineMotion" column="fine_motion" jdbcType="VARCHAR"/>
<result property="adaptability" column="adaptability" jdbcType="VARCHAR"/>
<result property="languageNum" column="language_num" jdbcType="VARCHAR"/>
<result property="socialBehavior" column="social_behavior" jdbcType="VARCHAR"/>
<result property="pediatricHeartScaleAssessMentresults" column="pediatric_heart_scale_assess_mentresults" jdbcType="VARCHAR"/>
<result property="coreProjectNum" column="core_project_num" jdbcType="VARCHAR"/>
<result property="positivetNum" column="positivet_num" jdbcType="VARCHAR"/>
<result property="screeningScaleMentresults" column="screening_scale_mentresults" jdbcType="VARCHAR"/>
<result property="behaviorRatingScaleTotal" column="behavior_rating_scale_total" jdbcType="VARCHAR"/>
<result property="feelNum" column="feel_num" jdbcType="VARCHAR"/>
<result property="socialInteractionNum" column="social_interaction_num" jdbcType="VARCHAR"/>
<result property="bodyMovementNum" column="body_movement_num" jdbcType="VARCHAR"/>
<result property="behaviorRatingLanguageNum" column="behavior_rating_language_num" jdbcType="VARCHAR"/>
<result property="selfCareInDailyLifeNum" column="self_care_in_daily_life_num" jdbcType="VARCHAR"/>
<result property="behaviorRatingScaleAssessMentresults" column="behavior_rating_scale_assess_mentresults" jdbcType="VARCHAR"/>
<result property="rescreenResults" column="rescreen_results" jdbcType="VARCHAR"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="BabyAutismDoubleSievingMap">
select
id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, 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, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, preliminary_screening_results, preliminary_screening_results_failed_project, medical_history, medical_history_remark, developer_quotient, big_movement, fine_motion, adaptability, language_num, social_behavior, pediatric_heart_scale_assess_mentresults, core_project_num, positivet_num, screening_scale_mentresults, behavior_rating_scale_total, feel_num, social_interaction_num, body_movement_num, behavior_rating_language_num, self_care_in_daily_life_num, behavior_rating_scale_assess_mentresults, rescreen_results
from baby_autism_double_sieving
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="BabyAutismDoubleSievingMap">
select
id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, 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, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, preliminary_screening_results, preliminary_screening_results_failed_project, medical_history, medical_history_remark, developer_quotient, big_movement, fine_motion, adaptability, language_num, social_behavior, pediatric_heart_scale_assess_mentresults, core_project_num, positivet_num, screening_scale_mentresults, behavior_rating_scale_total, feel_num, social_interaction_num, body_movement_num, behavior_rating_language_num, self_care_in_daily_life_num, behavior_rating_scale_assess_mentresults, rescreen_results
from baby_autism_double_sieving
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="created != null and created != ''">
and created = #{created}
</if>
<if test="modified != null and modified != ''">
and modified = #{modified}
</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="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="checkTime != null and checkTime != ''">
and check_time = #{checkTime}
</if>
<if test="nextCheckTime != null and nextCheckTime != ''">
and next_check_time = #{nextCheckTime}
</if>
<if test="checkDoctor != null and checkDoctor != ''">
and check_doctor = #{checkDoctor}
</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="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
and preliminary_screening_results = #{preliminaryScreeningResults}
</if>
<if test="preliminaryScreeningResultsFailedProject != null and preliminaryScreeningResultsFailedProject != ''">
and preliminary_screening_results_failed_project = #{preliminaryScreeningResultsFailedProject}
</if>
<if test="medicalHistoryName != null and medicalHistoryName != ''">
and medical_history = #{medicalHistoryName}
</if>
<if test="medicalHistoryRemark != null and medicalHistoryRemark != ''">
and medical_history_remark = #{medicalHistoryRemark}
</if>
<if test="developerQuotient != null and developerQuotient != ''">
and developer_quotient = #{developerQuotient}
</if>
<if test="bigMovement != null and bigMovement != ''">
and big_movement = #{bigMovement}
</if>
<if test="fineMotion != null and fineMotion != ''">
and fine_motion = #{fineMotion}
</if>
<if test="adaptability != null and adaptability != ''">
and adaptability = #{adaptability}
</if>
<if test="languageNum != null and languageNum != ''">
and language_num = #{languageNum}
</if>
<if test="socialBehavior != null and socialBehavior != ''">
and social_behavior = #{socialBehavior}
</if>
<if test="pediatricHeartScaleAssessMentresults != null and pediatricHeartScaleAssessMentresults != ''">
and pediatric_heart_scale_assess_mentresults = #{pediatricHeartScaleAssessMentresults}
</if>
<if test="coreProjectNum != null and coreProjectNum != ''">
and core_project_num = #{coreProjectNum}
</if>
<if test="positivetNum != null and positivetNum != ''">
and positivet_num = #{positivetNum}
</if>
<if test="screeningScaleMentresults != null and screeningScaleMentresults != ''">
and screening_scale_mentresults = #{screeningScaleMentresults}
</if>
<if test="behaviorRatingScaleTotal != null and behaviorRatingScaleTotal != ''">
and behavior_rating_scale_total = #{behaviorRatingScaleTotal}
</if>
<if test="feelNum != null and feelNum != ''">
and feel_num = #{feelNum}
</if>
<if test="socialInteractionNum != null and socialInteractionNum != ''">
and social_interaction_num = #{socialInteractionNum}
</if>
<if test="bodyMovementNum != null and bodyMovementNum != ''">
and body_movement_num = #{bodyMovementNum}
</if>
<if test="behaviorRatingLanguageNum != null and behaviorRatingLanguageNum != ''">
and behavior_rating_language_num = #{behaviorRatingLanguageNum}
</if>
<if test="selfCareInDailyLifeNum != null and selfCareInDailyLifeNum != ''">
and self_care_in_daily_life_num = #{selfCareInDailyLifeNum}
</if>
<if test="behaviorRatingScaleAssessMentresults != null and behaviorRatingScaleAssessMentresults != ''">
and behavior_rating_scale_assess_mentresults = #{behaviorRatingScaleAssessMentresults}
</if>
<if test="rescreenResults != null and rescreenResults != ''">
and rescreen_results = #{rescreenResults}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<select id="count" resultType="java.lang.Long">
select count(1)
from baby_autism_double_sieving
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="created != null and created != ''">
and created = #{created}
</if>
<if test="modified != null and modified != ''">
and modified = #{modified}
</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="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="checkTime != null and checkTime != ''">
and check_time = #{checkTime}
</if>
<if test="nextCheckTime != null and nextCheckTime != ''">
and next_check_time = #{nextCheckTime}
</if>
<if test="checkDoctor != null and checkDoctor != ''">
and check_doctor = #{checkDoctor}
</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="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
and preliminary_screening_results = #{preliminaryScreeningResults}
</if>
<if test="preliminaryScreeningResultsFailedProject != null and preliminaryScreeningResultsFailedProject != ''">
and preliminary_screening_results_failed_project = #{preliminaryScreeningResultsFailedProject}
</if>
<if test="medicalHistoryName != null and medicalHistoryName != ''">
and medical_history = #{medicalHistoryName}
</if>
<if test="medicalHistoryRemark != null and medicalHistoryRemark != ''">
and medical_history_remark = #{medicalHistoryRemark}
</if>
<if test="developerQuotient != null and developerQuotient != ''">
and developer_quotient = #{developerQuotient}
</if>
<if test="bigMovement != null and bigMovement != ''">
and big_movement = #{bigMovement}
</if>
<if test="fineMotion != null and fineMotion != ''">
and fine_motion = #{fineMotion}
</if>
<if test="adaptability != null and adaptability != ''">
and adaptability = #{adaptability}
</if>
<if test="languageNum != null and languageNum != ''">
and language_num = #{languageNum}
</if>
<if test="socialBehavior != null and socialBehavior != ''">
and social_behavior = #{socialBehavior}
</if>
<if test="pediatricHeartScaleAssessMentresults != null and pediatricHeartScaleAssessMentresults != ''">
and pediatric_heart_scale_assess_mentresults = #{pediatricHeartScaleAssessMentresults}
</if>
<if test="coreProjectNum != null and coreProjectNum != ''">
and core_project_num = #{coreProjectNum}
</if>
<if test="positivetNum != null and positivetNum != ''">
and positivet_num = #{positivetNum}
</if>
<if test="screeningScaleMentresults != null and screeningScaleMentresults != ''">
and screening_scale_mentresults = #{screeningScaleMentresults}
</if>
<if test="behaviorRatingScaleTotal != null and behaviorRatingScaleTotal != ''">
and behavior_rating_scale_total = #{behaviorRatingScaleTotal}
</if>
<if test="feelNum != null and feelNum != ''">
and feel_num = #{feelNum}
</if>
<if test="socialInteractionNum != null and socialInteractionNum != ''">
and social_interaction_num = #{socialInteractionNum}
</if>
<if test="bodyMovementNum != null and bodyMovementNum != ''">
and body_movement_num = #{bodyMovementNum}
</if>
<if test="behaviorRatingLanguageNum != null and behaviorRatingLanguageNum != ''">
and behavior_rating_language_num = #{behaviorRatingLanguageNum}
</if>
<if test="selfCareInDailyLifeNum != null and selfCareInDailyLifeNum != ''">
and self_care_in_daily_life_num = #{selfCareInDailyLifeNum}
</if>
<if test="behaviorRatingScaleAssessMentresults != null and behaviorRatingScaleAssessMentresults != ''">
and behavior_rating_scale_assess_mentresults = #{behaviorRatingScaleAssessMentresults}
</if>
<if test="rescreenResults != null and rescreenResults != ''">
and rescreen_results = #{rescreenResults}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into baby_autism_double_sieving(created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, 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, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, preliminary_screening_results, preliminary_screening_results_failed_project, medical_history, medical_history_remark, developer_quotient, big_movement, fine_motion, adaptability, language_num, social_behavior, pediatric_heart_scale_assess_mentresults, core_project_num, positivet_num, screening_scale_mentresults, behavior_rating_scale_total, feel_num, social_interaction_num, body_movement_num, behavior_rating_language_num, self_care_in_daily_life_num, behavior_rating_scale_assess_mentresults, rescreen_results)
values (#{created}, #{modified}, #{yn}, #{operaterId}, #{hospitalId}, #{babyId}, #{babyBuildDate}, #{babyName}, #{babySex}, #{babyMName}, #{babyFName}, #{babyMPhone}, #{babyFPhone}, #{babyMCertNo}, #{babyFCertNo}, #{pid}, #{checkMonthAge}, #{checkMonthId}, #{birth}, #{checkTime}, #{nextCheckTime}, #{checkDoctor}, #{doctorSign}, #{patientSign}, #{preliminaryScreeningResults}, #{preliminaryScreeningResultsFailedProject}, #{medicalHistoryName}, #{medicalHistoryRemark}, #{developerQuotient}, #{bigMovement}, #{fineMotion}, #{adaptability}, #{languageNum}, #{socialBehavior}, #{pediatricHeartScaleAssessMentresults}, #{coreProjectNum}, #{positivetNum}, #{screeningScaleMentresults}, #{behaviorRatingScaleTotal}, #{feelNum}, #{socialInteractionNum}, #{bodyMovementNum}, #{behaviorRatingLanguageNum}, #{selfCareInDailyLifeNum}, #{behaviorRatingScaleAssessMentresults}, #{rescreenResults})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into baby_autism_double_sieving(created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, 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, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, preliminary_screening_results, preliminary_screening_results_failed_project, medical_history, medical_history_remark, developer_quotient, big_movement, fine_motion, adaptability, language_num, social_behavior, pediatric_heart_scale_assess_mentresults, core_project_num, positivet_num, screening_scale_mentresults, behavior_rating_scale_total, feel_num, social_interaction_num, body_movement_num, behavior_rating_language_num, self_care_in_daily_life_num, behavior_rating_scale_assess_mentresults, rescreen_results)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{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.checkTime}, #{entity.nextCheckTime}, #{entity.checkDoctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.preliminaryScreeningResults}, #{entity.preliminaryScreeningResultsFailedProject}, #{entity.medicalHistoryName}, #{entity.medicalHistoryRemark}, #{entity.developerQuotient}, #{entity.bigMovement}, #{entity.fineMotion}, #{entity.adaptability}, #{entity.languageNum}, #{entity.socialBehavior}, #{entity.pediatricHeartScaleAssessMentresults}, #{entity.coreProjectNum}, #{entity.positivetNum}, #{entity.screeningScaleMentresults}, #{entity.behaviorRatingScaleTotal}, #{entity.feelNum}, #{entity.socialInteractionNum}, #{entity.bodyMovementNum}, #{entity.behaviorRatingLanguageNum}, #{entity.selfCareInDailyLifeNum}, #{entity.behaviorRatingScaleAssessMentresults}, #{entity.rescreenResults})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into baby_autism_double_sieving(created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, 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, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, preliminary_screening_results, preliminary_screening_results_failed_project, medical_history, medical_history_remark, developer_quotient, big_movement, fine_motion, adaptability, language_num, social_behavior, pediatric_heart_scale_assess_mentresults, core_project_num, positivet_num, screening_scale_mentresults, behavior_rating_scale_total, feel_num, social_interaction_num, body_movement_num, behavior_rating_language_num, self_care_in_daily_life_num, behavior_rating_scale_assess_mentresults, rescreen_results)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.created}, #{entity.modified}, #{entity.yn}, #{entity.operaterId}, #{entity.hospitalId}, #{entity.babyId}, #{entity.babyBuildDate}, #{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.checkTime}, #{entity.nextCheckTime}, #{entity.checkDoctor}, #{entity.doctorSign}, #{entity.patientSign}, #{entity.preliminaryScreeningResults}, #{entity.preliminaryScreeningResultsFailedProject}, #{entity.medicalHistoryName}, #{entity.medicalHistoryRemark}, #{entity.developerQuotient}, #{entity.bigMovement}, #{entity.fineMotion}, #{entity.adaptability}, #{entity.languageNum}, #{entity.socialBehavior}, #{entity.pediatricHeartScaleAssessMentresults}, #{entity.coreProjectNum}, #{entity.positivetNum}, #{entity.screeningScaleMentresults}, #{entity.behaviorRatingScaleTotal}, #{entity.feelNum}, #{entity.socialInteractionNum}, #{entity.bodyMovementNum}, #{entity.behaviorRatingLanguageNum}, #{entity.selfCareInDailyLifeNum}, #{entity.behaviorRatingScaleAssessMentresults}, #{entity.rescreenResults})
</foreach>
on duplicate key update
created = values(created),
modified = values(modified),
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_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),
check_time = values(check_time),
next_check_time = values(next_check_time),
check_doctor = values(check_doctor),
doctor_sign = values(doctor_sign),
patient_sign = values(patient_sign),
preliminary_screening_results = values(preliminary_screening_results),
preliminary_screening_results_failed_project = values(preliminary_screening_results_failed_project),
medical_history = values(medical_history),
medical_history_remark = values(medical_history_remark),
developer_quotient = values(developer_quotient),
big_movement = values(big_movement),
fine_motion = values(fine_motion),
adaptability = values(adaptability),
language_num = values(language_num),
social_behavior = values(social_behavior),
pediatric_heart_scale_assess_mentresults = values(pediatric_heart_scale_assess_mentresults),
core_project_num = values(core_project_num),
positivet_num = values(positivet_num),
screening_scale_mentresults = values(screening_scale_mentresults),
behavior_rating_scale_total = values(behavior_rating_scale_total),
feel_num = values(feel_num),
social_interaction_num = values(social_interaction_num),
body_movement_num = values(body_movement_num),
behavior_rating_language_num = values(behavior_rating_language_num),
self_care_in_daily_life_num = values(self_care_in_daily_life_num),
behavior_rating_scale_assess_mentresults = values(behavior_rating_scale_assess_mentresults),
rescreen_results = values(rescreen_results)
</insert>
<!--通过主键修改数据-->
<update id="update">
update baby_autism_double_sieving
<set>
<if test="created != null and created != ''">
created = #{created},
</if>
<if test="modified != null and modified != ''">
modified = #{modified},
</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="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="checkTime != null and checkTime != ''">
check_time = #{checkTime},
</if>
<if test="nextCheckTime != null and nextCheckTime != ''">
next_check_time = #{nextCheckTime},
</if>
<if test="checkDoctor != null and checkDoctor != ''">
check_doctor = #{checkDoctor},
</if>
<if test="doctorSign != null and doctorSign != ''">
doctor_sign = #{doctorSign},
</if>
<if test="patientSign != null and patientSign != ''">
patient_sign = #{patientSign},
</if>
<if test="preliminaryScreeningResults != null and preliminaryScreeningResults != ''">
preliminary_screening_results = #{preliminaryScreeningResults},
</if>
<if test="preliminaryScreeningResultsFailedProject != null and preliminaryScreeningResultsFailedProject != ''">
preliminary_screening_results_failed_project = #{preliminaryScreeningResultsFailedProject},
</if>
<if test="medicalHistoryName != null and medicalHistoryName != ''">
medical_history = #{medicalHistoryName},
</if>
<if test="medicalHistoryRemark != null and medicalHistoryRemark != ''">
medical_history_remark = #{medicalHistoryRemark},
</if>
<if test="developerQuotient != null and developerQuotient != ''">
developer_quotient = #{developerQuotient},
</if>
<if test="bigMovement != null and bigMovement != ''">
big_movement = #{bigMovement},
</if>
<if test="fineMotion != null and fineMotion != ''">
fine_motion = #{fineMotion},
</if>
<if test="adaptability != null and adaptability != ''">
adaptability = #{adaptability},
</if>
<if test="languageNum != null and languageNum != ''">
language_num = #{languageNum},
</if>
<if test="socialBehavior != null and socialBehavior != ''">
social_behavior = #{socialBehavior},
</if>
<if test="pediatricHeartScaleAssessMentresults != null and pediatricHeartScaleAssessMentresults != ''">
pediatric_heart_scale_assess_mentresults = #{pediatricHeartScaleAssessMentresults},
</if>
<if test="coreProjectNum != null and coreProjectNum != ''">
core_project_num = #{coreProjectNum},
</if>
<if test="positivetNum != null and positivetNum != ''">
positivet_num = #{positivetNum},
</if>
<if test="screeningScaleMentresults != null and screeningScaleMentresults != ''">
screening_scale_mentresults = #{screeningScaleMentresults},
</if>
<if test="behaviorRatingScaleTotal != null and behaviorRatingScaleTotal != ''">
behavior_rating_scale_total = #{behaviorRatingScaleTotal},
</if>
<if test="feelNum != null and feelNum != ''">
feel_num = #{feelNum},
</if>
<if test="socialInteractionNum != null and socialInteractionNum != ''">
social_interaction_num = #{socialInteractionNum},
</if>
<if test="bodyMovementNum != null and bodyMovementNum != ''">
body_movement_num = #{bodyMovementNum},
</if>
<if test="behaviorRatingLanguageNum != null and behaviorRatingLanguageNum != ''">
behavior_rating_language_num = #{behaviorRatingLanguageNum},
</if>
<if test="selfCareInDailyLifeNum != null and selfCareInDailyLifeNum != ''">
self_care_in_daily_life_num = #{selfCareInDailyLifeNum},
</if>
<if test="behaviorRatingScaleAssessMentresults != null and behaviorRatingScaleAssessMentresults != ''">
behavior_rating_scale_assess_mentresults = #{behaviorRatingScaleAssessMentresults},
</if>
<if test="rescreenResults != null and rescreenResults != ''">
rescreen_results = #{rescreenResults},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete from baby_autism_double_sieving where id = #{id}
</delete>
<select id="queryListByBabyId" resultMap="BabyAutismDoubleSievingMap">
select
id, created, modified, yn, operater_id, hospital_id, baby_id, baby_build_date, 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, check_time, next_check_time, check_doctor, doctor_sign, patient_sign, preliminary_screening_results,
preliminary_screening_results_failed_project, medical_history, medical_history_remark, developer_quotient,
big_movement, fine_motion, adaptability, language_num, social_behavior,screening_scale_mentresults,
pediatric_heart_scale_assess_mentresults, core_project_num, positivet_num, behavior_rating_scale_total,
feel_num, social_interaction_num, body_movement_num, behavior_rating_language_num, self_care_in_daily_life_num,
behavior_rating_scale_assess_mentresults, rescreen_results
from baby_autism_double_sieving
<where>
and baby_id = #{id}
</where>
order by check_time
</select>
</mapper>