|
@@ -13,6 +13,7 @@
|
|
<result column="bed_no" property="bedNo" />
|
|
<result column="bed_no" property="bedNo" />
|
|
<result column="dept_name" property="deptName" />
|
|
<result column="dept_name" property="deptName" />
|
|
<result column="record_date" property="recordDate" />
|
|
<result column="record_date" property="recordDate" />
|
|
|
|
+ <result column="rec_title" property="recTitle" />
|
|
<result column="birthday" property="birthday" />
|
|
<result column="birthday" property="birthday" />
|
|
<result column="marriage" property="marriage" />
|
|
<result column="marriage" property="marriage" />
|
|
<result column="job_type" property="jobType" />
|
|
<result column="job_type" property="jobType" />
|
|
@@ -65,4 +66,75 @@
|
|
<result column="modifier" property="modifier" />
|
|
<result column="modifier" property="modifier" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
+ <update id="updateBatchByKey">
|
|
|
|
+ <foreach collection="list" item="item" separator=";">
|
|
|
|
+ update med_admission_note
|
|
|
|
+ <set>
|
|
|
|
+ name = #{item.name},
|
|
|
|
+ sex = #{item.sex},
|
|
|
|
+ age = #{item.age},
|
|
|
|
+ bed_no = #{item.bedNo},
|
|
|
|
+ dept_name = #{item.deptName},
|
|
|
|
+ record_date = #{item.recordDate},
|
|
|
|
+ rec_title = #{item.recTitle},
|
|
|
|
+ birthday = #{item.birthday},
|
|
|
|
+ marriage = #{item.marriage},
|
|
|
|
+ job_type = #{item.jobType},
|
|
|
|
+ nation = #{item.nation},
|
|
|
|
+ phone = #{item.phone},
|
|
|
|
+ workplace = #{item.workplace},
|
|
|
|
+ register_address = #{item.registerAddress},
|
|
|
|
+ born_address = #{item.bornAddress},
|
|
|
|
+ expect_date = #{item.expectDate},
|
|
|
|
+ last_menstrual = #{item.lastMenstrual},
|
|
|
|
+ pregnant_num = #{item.pregnantNum},
|
|
|
|
+ behospital_date = #{item.behospitalDate},
|
|
|
|
+ history_teller = #{item.historyTeller},
|
|
|
|
+ chief = #{item.chief},
|
|
|
|
+ present = #{item.present},
|
|
|
|
+ past_history = #{item.pastHistory},
|
|
|
|
+ personal_history = #{item.personalHistory},
|
|
|
|
+ marital_history = #{item.maritalHistory},
|
|
|
|
+ menstrual_history = #{item.menstrualHistory},
|
|
|
|
+ family_history = #{item.familyHistory},
|
|
|
|
+ feeding_history = #{item.feedingHistory},
|
|
|
|
+ operation_history = #{item.operationHistory},
|
|
|
|
+ blood_history = #{item.bloodHistory},
|
|
|
|
+ infection_history = #{item.infectionHistory},
|
|
|
|
+ special_vital = #{item.specialVital},
|
|
|
|
+ assistant_exam = #{item.assistantExam},
|
|
|
|
+ lis_exam = #{item.lisExam},
|
|
|
|
+ pacs_exam = #{item.pacsExam},
|
|
|
|
+ tentative_diagnosis = #{item.tentativeDiagnosis},
|
|
|
|
+ supply_diagnosis = #{item.supplyDiagnosis},
|
|
|
|
+ revised_diagnosis = #{item.revisedDiagnosis},
|
|
|
|
+ rec_doctor = #{item.recDoctor},
|
|
|
|
+ rec_date = #{item.recDate},
|
|
|
|
+ audit_doctor = #{item.auditDoctor},
|
|
|
|
+ audit_date = #{item.auditDate},
|
|
|
|
+ temperature = #{item.temperature},
|
|
|
|
+ pulse = #{item.pulse},
|
|
|
|
+ breathe = #{item.breathe},
|
|
|
|
+ blood_pressure = #{item.bloodPressure},
|
|
|
|
+ pain = #{item.pain},
|
|
|
|
+ weight = #{item.weight},
|
|
|
|
+ height = #{item.height},
|
|
|
|
+ bmi = #{item.bmi},
|
|
|
|
+ whole_data = #{item.wholeData},
|
|
|
|
+ remark = #{item.remark},
|
|
|
|
+ <if test="item.gmtModified != null">
|
|
|
|
+ gmt_modified = #{item.gmtModified},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="item.modifier != null">
|
|
|
|
+ modifier = #{item.modifier},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where rec_id = #{item.recId} and hospital_id = #{item.hospitalId} and behospital_code = #{item.behospitalCode}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <select id="getColumnZhAndCh" resultType="com.diagbot.dto.data.ColumnZhAndChDTO">
|
|
|
|
+ select COLUMN_NAME as en,column_comment as ch from INFORMATION_SCHEMA.Columns where table_name='med_admission_note'
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|