<?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="doubleSieving.id != null and doubleSieving.id != ''">
and id = #{doubleSieving.id}
</if>
<if test="doubleSieving.created != null ">
and created = #{doubleSieving.created}
</if>
<if test="doubleSieving.modified != null ">
and modified = #{doubleSieving.modified}
</if>
<if test="doubleSieving.yn != null">
and yn = #{doubleSieving.yn}
</if>
<if test="doubleSieving.operaterId != null and doubleSieving.operaterId != ''">
and operater_id = #{doubleSieving.operaterId}
</if>
<if test="doubleSieving.hospitalId != null and doubleSieving.hospitalId != ''">
and hospital_id = #{doubleSieving.hospitalId}
</if>
<if test="doubleSieving.babyId != null and doubleSieving.babyId != ''">
and baby_id = #{doubleSieving.babyId}
</if>
<if test="doubleSieving.babyBuildDate != null ">
and baby_build_date = #{doubleSieving.babyBuildDate}
</if>
<if test="doubleSieving.babyName != null and doubleSieving.babyName != ''">
and baby_name = #{doubleSieving.babyName}
</if>
<if test="doubleSieving.babySex != null">
and baby_sex = #{doubleSieving.babySex}
</if>
<if test="doubleSieving.babyMName != null and doubleSieving.babyMName != ''">
and baby_m_name = #{doubleSieving.babyMName}
</if>
<if test="doubleSieving.babyFName != null and doubleSieving.babyFName != ''">
and baby_f_name = #{doubleSieving.babyFName}
</if>
<if test="doubleSieving.babyMPhone != null and doubleSieving.babyMPhone != ''">
and baby_m_phone = #{doubleSieving.babyMPhone}
</if>
<if test="doubleSieving.babyFPhone != null and doubleSieving.babyFPhone != ''">
and baby_f_phone = #{doubleSieving.babyFPhone}
</if>
<if test="doubleSieving.babyMCertNo != null and doubleSieving.babyMCertNo != ''">
and baby_m_cert_no = #{doubleSieving.babyMCertNo}
</if>
<if test="doubleSieving.babyFCertNo != null and doubleSieving.babyFCertNo != ''">
and baby_f_cert_no = #{doubleSieving.babyFCertNo}
</if>
<if test="doubleSieving.pid != null and doubleSieving.pid != ''">
and pid = #{doubleSieving.pid}
</if>
<if test="doubleSieving.checkMonthAge != null and doubleSieving.checkMonthAge != ''">
and check_month_age = #{doubleSieving.checkMonthAge}
</if>
<if test="doubleSieving.checkMonthId != null and doubleSieving.checkMonthId != ''">
and check_month_id = #{doubleSieving.checkMonthId}
</if>
<if test="doubleSieving.birth != null ">
and birth = #{doubleSieving.birth}
</if>
<if test="doubleSieving.checkTime != null">
and check_time = #{doubleSieving.checkTime}
</if>
<if test="doubleSieving.nextCheckTime != null">
and next_check_time = #{doubleSieving.nextCheckTime}
</if>
<if test="doubleSieving.checkDoctor != null and doubleSieving.checkDoctor != ''">
and check_doctor = #{doubleSieving.checkDoctor}
</if>
<if test="doubleSieving.doctorSign != null and doubleSieving.doctorSign != ''">
and doctor_sign = #{doubleSieving.doctorSign}
</if>
<if test="doubleSieving.patientSign != null and doubleSieving.patientSign != ''">
and patient_sign = #{doubleSieving.patientSign}
</if>
<if test="doubleSieving.preliminaryScreeningResults != null and doubleSieving.preliminaryScreeningResults != ''">
and preliminary_screening_results = #{pdoubleSieving.reliminaryScreeningResults}
</if>
<if test="doubleSieving.preliminaryScreeningResultsFailedProject != null and doubleSieving.preliminaryScreeningResultsFailedProject != ''">
and preliminary_screening_results_failed_project = #{doubleSieving.preliminaryScreeningResultsFailedProject}
</if>
<if test="doubleSieving.medicalHistoryName != null and doubleSieving.medicalHistoryName != ''">
and medical_history = #{doubleSieving.medicalHistoryName}
</if>
<if test="doubleSieving.medicalHistoryRemark != null and doubleSieving.medicalHistoryRemark != ''">
and medical_history_remark = #{doubleSieving.medicalHistoryRemark}
</if>
<if test="doubleSieving.developerQuotient != null and doubleSieving.developerQuotient != ''">
and developer_quotient = #{doubleSieving.developerQuotient}
</if>
<if test="doubleSieving.bigMovement != null and doubleSieving.bigMovement != ''">
and big_movement = #{doubleSieving.bigMovement}
</if>
<if test="doubleSieving.fineMotion != null and doubleSieving.fineMotion != ''">
and fine_motion = #{doubleSieving.fineMotion}
</if>
<if test="doubleSieving.adaptability != null and doubleSieving.adaptability != ''">
and adaptability = #{doubleSieving.adaptability}
</if>
<if test="doubleSieving.languageNum != null and doubleSieving.languageNum != ''">
and language_num = #{doubleSieving.languageNum}
</if>
<if test="doubleSieving.socialBehavior != null and doubleSieving.socialBehavior != ''">
and social_behavior = #{doubleSieving.socialBehavior}
</if>
<if test="doubleSieving.pediatricHeartScaleAssessMentresults != null and doubleSieving.pediatricHeartScaleAssessMentresults != ''">
and pediatric_heart_scale_assess_mentresults = #{doubleSieving.pediatricHeartScaleAssessMentresults}
</if>
<if test="doubleSieving.coreProjectNum != null and doubleSieving.coreProjectNum != ''">
and core_project_num = #{doubleSieving.coreProjectNum}
</if>
<if test="doubleSieving.positivetNum != null and doubleSieving.positivetNum != ''">
and positivet_num = #{doubleSieving.positivetNum}
</if>
<if test="doubleSieving.screeningScaleMentresults != null and doubleSieving.screeningScaleMentresults != ''">
and screening_scale_mentresults = #{doubleSieving.screeningScaleMentresults}
</if>
<if test="doubleSieving.behaviorRatingScaleTotal != null and doubleSieving.behaviorRatingScaleTotal != ''">
and behavior_rating_scale_total = #{doubleSieving.behaviorRatingScaleTotal}
</if>
<if test="doubleSieving.feelNum != null and doubleSieving.feelNum != ''">
and feel_num = #{doubleSieving.feelNum}
</if>
<if test="doubleSieving.socialInteractionNum != null and doubleSieving.socialInteractionNum != ''">
and social_interaction_num = #{doubleSieving.socialInteractionNum}
</if>
<if test="doubleSieving.bodyMovementNum != null and doubleSieving.bodyMovementNum != ''">
and body_movement_num = #{doubleSieving.bodyMovementNum}
</if>
<if test="doubleSieving.behaviorRatingLanguageNum != null and doubleSieving.behaviorRatingLanguageNum != ''">
and behavior_rating_language_num = #{doubleSieving.behaviorRatingLanguageNum}
</if>
<if test="doubleSieving.selfCareInDailyLifeNum != null and doubleSieving.selfCareInDailyLifeNum != ''">
and self_care_in_daily_life_num = #{doubleSieving.selfCareInDailyLifeNum}
</if>
<if test="doubleSieving.behaviorRatingScaleAssessMentresults != null and doubleSieving.behaviorRatingScaleAssessMentresults != ''">
and behavior_rating_scale_assess_mentresults = #{doubleSieving.behaviorRatingScaleAssessMentresults}
</if>
<if test="doubleSieving.rescreenResults != null and doubleSieving.rescreenResults != ''">
and rescreen_results = #{doubleSieving.rescreenResults}
</if>
</where>
GROUP BY baby_id
limit #{pageable.offset}, #{pageable.limit}
</select>
<!--统计总行数-->
<select id="count" resultType="java.lang.Long">
select count(1)
from (select id from baby_autism_double_sieving
<where>
<if test="doubleSieving.id != null and doubleSieving.id != ''">
and id = #{doubleSieving.id}
</if>
<if test="doubleSieving.created != null ">
and created = #{doubleSieving.created}
</if>
<if test="doubleSieving.modified != null ">
and modified = #{doubleSieving.modified}
</if>
<if test="doubleSieving.yn != null">
and yn = #{doubleSieving.yn}
</if>
<if test="doubleSieving.operaterId != null and doubleSieving.operaterId != ''">
and operater_id = #{doubleSieving.operaterId}
</if>
<if test="doubleSieving.hospitalId != null and doubleSieving.hospitalId != ''">
and hospital_id = #{doubleSieving.hospitalId}
</if>
<if test="doubleSieving.babyId != null and doubleSieving.babyId != ''">
and baby_id = #{doubleSieving.babyId}
</if>
<if test="doubleSieving.babyBuildDate != null ">
and baby_build_date = #{doubleSieving.babyBuildDate}
</if>
<if test="doubleSieving.babyName != null and doubleSieving.babyName != ''">
and baby_name = #{doubleSieving.babyName}
</if>
<if test="doubleSieving.babySex != null">
and baby_sex = #{doubleSieving.babySex}
</if>
<if test="doubleSieving.babyMName != null and doubleSieving.babyMName != ''">
and baby_m_name = #{doubleSieving.babyMName}
</if>
<if test="doubleSieving.babyFName != null and doubleSieving.babyFName != ''">
and baby_f_name = #{doubleSieving.babyFName}
</if>
<if test="doubleSieving.babyMPhone != null and doubleSieving.babyMPhone != ''">
and baby_m_phone = #{doubleSieving.babyMPhone}
</if>
<if test="doubleSieving.babyFPhone != null and doubleSieving.babyFPhone != ''">
and baby_f_phone = #{doubleSieving.babyFPhone}
</if>
<if test="doubleSieving.babyMCertNo != null and doubleSieving.babyMCertNo != ''">
and baby_m_cert_no = #{doubleSieving.babyMCertNo}
</if>
<if test="doubleSieving.babyFCertNo != null and doubleSieving.babyFCertNo != ''">
and baby_f_cert_no = #{doubleSieving.babyFCertNo}
</if>
<if test="doubleSieving.pid != null and doubleSieving.pid != ''">
and pid = #{doubleSieving.pid}
</if>
<if test="doubleSieving.checkMonthAge != null and doubleSieving.checkMonthAge != ''">
and check_month_age = #{doubleSieving.checkMonthAge}
</if>
<if test="doubleSieving.checkMonthId != null and doubleSieving.checkMonthId != ''">
and check_month_id = #{doubleSieving.checkMonthId}
</if>
<if test="doubleSieving.birth != null ">
and birth = #{doubleSieving.birth}
</if>
<if test="doubleSieving.checkTime != null">
and check_time = #{doubleSieving.checkTime}
</if>
<if test="doubleSieving.nextCheckTime != null">
and next_check_time = #{doubleSieving.nextCheckTime}
</if>
<if test="doubleSieving.checkDoctor != null and doubleSieving.checkDoctor != ''">
and check_doctor = #{doubleSieving.checkDoctor}
</if>
<if test="doubleSieving.doctorSign != null and doubleSieving.doctorSign != ''">
and doctor_sign = #{doubleSieving.doctorSign}
</if>
<if test="doubleSieving.patientSign != null and doubleSieving.patientSign != ''">
and patient_sign = #{doubleSieving.patientSign}
</if>
<if test="doubleSieving.preliminaryScreeningResults != null and doubleSieving.preliminaryScreeningResults != ''">
and preliminary_screening_results = #{pdoubleSieving.reliminaryScreeningResults}
</if>
<if test="doubleSieving.preliminaryScreeningResultsFailedProject != null and doubleSieving.preliminaryScreeningResultsFailedProject != ''">
and preliminary_screening_results_failed_project = #{doubleSieving.preliminaryScreeningResultsFailedProject}
</if>
<if test="doubleSieving.medicalHistoryName != null and doubleSieving.medicalHistoryName != ''">
and medical_history = #{doubleSieving.medicalHistoryName}
</if>
<if test="doubleSieving.medicalHistoryRemark != null and doubleSieving.medicalHistoryRemark != ''">
and medical_history_remark = #{doubleSieving.medicalHistoryRemark}
</if>
<if test="doubleSieving.developerQuotient != null and doubleSieving.developerQuotient != ''">
and developer_quotient = #{doubleSieving.developerQuotient}
</if>
<if test="doubleSieving.bigMovement != null and doubleSieving.bigMovement != ''">
and big_movement = #{doubleSieving.bigMovement}
</if>
<if test="doubleSieving.fineMotion != null and doubleSieving.fineMotion != ''">
and fine_motion = #{doubleSieving.fineMotion}
</if>
<if test="doubleSieving.adaptability != null and doubleSieving.adaptability != ''">
and adaptability = #{doubleSieving.adaptability}
</if>
<if test="doubleSieving.languageNum != null and doubleSieving.languageNum != ''">
and language_num = #{doubleSieving.languageNum}
</if>
<if test="doubleSieving.socialBehavior != null and doubleSieving.socialBehavior != ''">
and social_behavior = #{doubleSieving.socialBehavior}
</if>
<if test="doubleSieving.pediatricHeartScaleAssessMentresults != null and doubleSieving.pediatricHeartScaleAssessMentresults != ''">
and pediatric_heart_scale_assess_mentresults = #{doubleSieving.pediatricHeartScaleAssessMentresults}
</if>
<if test="doubleSieving.coreProjectNum != null and doubleSieving.coreProjectNum != ''">
and core_project_num = #{doubleSieving.coreProjectNum}
</if>
<if test="doubleSieving.positivetNum != null and doubleSieving.positivetNum != ''">
and positivet_num = #{doubleSieving.positivetNum}
</if>
<if test="doubleSieving.screeningScaleMentresults != null and doubleSieving.screeningScaleMentresults != ''">
and screening_scale_mentresults = #{doubleSieving.screeningScaleMentresults}
</if>
<if test="doubleSieving.behaviorRatingScaleTotal != null and doubleSieving.behaviorRatingScaleTotal != ''">
and behavior_rating_scale_total = #{doubleSieving.behaviorRatingScaleTotal}
</if>
<if test="doubleSieving.feelNum != null and doubleSieving.feelNum != ''">
and feel_num = #{doubleSieving.feelNum}
</if>
<if test="doubleSieving.socialInteractionNum != null and doubleSieving.socialInteractionNum != ''">
and social_interaction_num = #{doubleSieving.socialInteractionNum}
</if>
<if test="doubleSieving.bodyMovementNum != null and doubleSieving.bodyMovementNum != ''">
and body_movement_num = #{doubleSieving.bodyMovementNum}
</if>
<if test="doubleSieving.behaviorRatingLanguageNum != null and doubleSieving.behaviorRatingLanguageNum != ''">
and behavior_rating_language_num = #{doubleSieving.behaviorRatingLanguageNum}
</if>
<if test="doubleSieving.selfCareInDailyLifeNum != null and doubleSieving.selfCareInDailyLifeNum != ''">
and self_care_in_daily_life_num = #{doubleSieving.selfCareInDailyLifeNum}
</if>
<if test="doubleSieving.behaviorRatingScaleAssessMentresults != null and doubleSieving.behaviorRatingScaleAssessMentresults != ''">
and behavior_rating_scale_assess_mentresults = #{doubleSieving.behaviorRatingScaleAssessMentresults}
</if>
<if test="doubleSieving.rescreenResults != null and doubleSieving.rescreenResults != ''">
and rescreen_results = #{doubleSieving.rescreenResults}
</if>
</where>
GROUP BY baby_id) as d
</select>
<!--新增所有列-->
<insert id="insert" >
insert into baby_autism_double_sieving(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)
values (#{id},#{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" >
insert into baby_autism_double_sieving(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)
values
<foreach collection="entities" item="entity" separator=",">
(#{id},#{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" >
insert into baby_autism_double_sieving(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)
values
<foreach collection="entities" item="entity" separator=",">
(#{id},#{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>