BabyAutismDiagnoseMapper.xml 4.47 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
<?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.example.house.mapper.HouseMapper">
<resultMap id="babyAutismDiagnoseMap" type="workspase.regional-platform.platform-dal.src.main.java.com.lyms.platform.pojo.BabyAutismDiagnoseModel">
<id property="id" column="id"/>
<result property="babyName" column="baby_name"/>
<result property="babyGender" column="baby_gender"/>
<result property="month" column="month"/>
<result property="birth" column="birth"/>
<result property="mPhone" column="m_phone"/>
<result property="highRiskReason" column="high_risk_reason"/>
<result property="mName" column="m_name"/>
<result property="mCardNo" column="m_card_no"/>
<result property="type" column="type"/>
<result property="meal" column="meal"/>
<result property="medicalHistory" column="medical_history"/>
<result property="behavior" column="behavior"/>
<result property="healthNeuro" column="health_neuro"/>
<result property="assess" column="assess"/>
<result property="highRisk" column="high_risk"/>
<result property="elseScale" column="else_scale"/>
<result property="auxiliaryExamination" column="auxiliary_examination"/>
<result property="diagnosis" column="diagnosis"/>
<result property="comorbidDiseases" column="comorbid_diseases"/>
<result property="suggest" column="suggest"/>
<result property="buildId" column="build_id"/>
<result property="medicalEstablishment" column="medical_establishment"/>
<result property="AutismDiagnoseDate" column="autism_diagnose_date"/>
<result property="buildDate" column="build_date"/>
<result property="nextDateStart" column="next_date_start"/>
<result property="pid" column="pid"/>
<result property="queryNo" column="query_no"/>
<result property="patient_sign" column="patient_sign"/>
</resultMap>

<sql id="babyAutismDiagnose">
id,baby_name,baby_gender,month,birth,m_phone,high_risk_reason,m_name,m_card_no,type,medical_history,meal,behavior,high_risk,health_neuro,assess,else_scale,auxiliary_examination,
diagnosis,comorbid_diseases,suggest,build_id,medical_establishment,autism_diagnose_date,build_date,next_date_start,pid,query_no,patient_sign
</sql>

<select id="findOne" parameterType="java.lang.Long" resultMap="babyAutismDiagnoseMap">
select <include refid="babyAutismDiagnose"/> from lyms_baby_autism_diagnose where id = #{id}
</select>
<update id="updateAutismDiagnose">
update lyms_baby_autism_diagnose <set>
baby_name=#{babyName},baby_gender=#{babyGender}, month=#{month},birth=#{birth},m_phone=#{mPhone},high_risk_reason=#{highRiskReason},m_name=#{mName},m_card_no=#{mCardNo},type=#{type},high_risk=#{highRisk},meal=#{meal},medical_history=#{medicalHistory},
behavior=#{behavior},health_neuro=#{healthNeuro},assess=#{assess},else_scale=#{elseScale},auxiliary_examination=#{auxiliaryExamination},diagnosis=#{diagnosis},comorbid_diseases=#{comorbidDiseases},suggest=#{suggest},
#{buildId},#{medicalEstablishment}
</set> where id =#{id}
</update>
<update id="updateAutismDiagnoseByPatientSign">
update lyms_baby_autism_diagnose set patient_sign = #{patientSign} where id = #{id}
</update>
<insert id="save" parameterType="com.lyms.platform.pojo.BabyAutismDiagnoseModel" useGeneratedKeys="true" keyProperty="id">
insert into lyms_baby_autism_diagnose(baby_name,baby_gender,month,birth,m_phone,high_risk_reason,m_name,m_card_no,type,high_risk,meal,medical_history,behavior,health_neuro,assess,else_scale,auxiliary_examination,
diagnosis,comorbid_diseases,suggest,build_id,medical_establishment,autism_diagnose_date,build_date,next_date_start,pid,query_no,patient_sign)
values (#{babyName},#{babyGender}, #{month},#{birth},#{mPhone},#{highRiskReason},#{mName},#{mCardNo},#{type},#{highRisk},#{meal},#{medicalHistory},
#{behavior},#{healthNeuro},#{assess},#{elseScale},#{auxiliaryExamination},#{diagnosis},#{comorbidDiseases},#{suggest},
#{buildId},#{medicalEstablishment},#{AutismDiagnoseDate},#{buildDate},#{nextDateStart},#{pid},#{queryNo},#{patientSign})
</insert>
<select id="findAll" resultMap="houseResultMap">
select * from lyms_baby_autism_diagnose
</select>
</mapper>