|
|
|
@ -8,22 +8,43 @@
|
|
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="no" column="no" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientId" column="patient_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientName" column="patient_name" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientGender" column="patient_gender" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientAge" column="patient_age" jdbcType="INTEGER"/>
|
|
|
|
|
<result property="patientMarriage" column="patient_marriage" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientProfession" column="patient_profession" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientPhone" column="patient_phone" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="nativePlace" column="native_place" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientNation" column="patient_nation" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientPostcode" column="patient_postcode" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientBirthplace" column="patient_birthplace" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientHabitation" column="patient_habitation" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="patientSelfDesc" column="patient_self_desc" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="symptoms" column="symptoms" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="primarilyDiagnosisCriteria" column="primarily_diagnosis_criteria" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="confirmDiagnosisCriteria" column="confirm_diagnosis_criteria" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="differentialDiagnosisCriteria" column="differential_diagnosis_criteria" jdbcType="VARCHAR"/>
|
|
|
|
|
|
|
|
|
|
<result property="fullCheck" column="full_check" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id
|
|
|
|
|
,no,patient_id,
|
|
|
|
|
id,no,patient_id,
|
|
|
|
|
patient_name,patient_gender,patient_age,
|
|
|
|
|
patient_marriage,patient_profession,patient_phone,
|
|
|
|
|
native_place,patient_nation,patient_postcode,
|
|
|
|
|
patient_birthplace,patient_habitation,disease_id,
|
|
|
|
|
patient_self_desc,symptoms,primarily_diagnosis_criteria,
|
|
|
|
|
confirm_diagnosis_criteria,confirm_diagnosis_criteria
|
|
|
|
|
confirm_diagnosis_criteria,differential_diagnosis_criteria,full_check,
|
|
|
|
|
create_user_id,create_time,update_user_id,
|
|
|
|
|
update_time
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateMedicalRecNo">
|
|
|
|
|
UPDATE vp_medical_rec
|
|
|
|
|
SET no = CONCAT(#{code}, LPAD(
|
|
|
|
|