|
@@ -19620,4 +19620,47 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <update id="updateBatchByKey">
|
|
|
|
+ <foreach collection="list" item="item" separator=";">
|
|
|
|
+ update med_behospital_info
|
|
|
|
+ <set>
|
|
|
|
+ name = #{item.name},
|
|
|
|
+ sex = #{item.sex},
|
|
|
|
+ birthday = #{item.birthday},
|
|
|
|
+ file_code = #{item.fileCode},
|
|
|
|
+ qc_type_id = #{item.qcTypeId},
|
|
|
|
+ ward_code = #{item.wardCode},
|
|
|
|
+ ward_name = #{item.wardName},
|
|
|
|
+ beh_dept_id = #{item.behDeptId},
|
|
|
|
+ beh_dept_name = #{item.behDeptName},
|
|
|
|
+ bed_code = #{item.bedCode},
|
|
|
|
+ bed_name = #{item.bedName},
|
|
|
|
+ insurance_name = #{item.insuranceName},
|
|
|
|
+ job_type = #{item.jobType},
|
|
|
|
+ behospital_date = #{item.behospitalDate},
|
|
|
|
+ leave_hospital_date = #{item.leaveHospitalDate},
|
|
|
|
+ diagnose_icd = #{item.diagnoseIcd},
|
|
|
|
+ diagnose = #{item.diagnose},
|
|
|
|
+ beh_doctor_id = #{item.behDoctorId},
|
|
|
|
+ beh_doctor_name = #{item.behDoctorName},
|
|
|
|
+ doctor_id = #{item.doctorId},
|
|
|
|
+ doctor_name = #{item.doctorName},
|
|
|
|
+ director_doctor_id = #{item.directorDoctorId},
|
|
|
|
+ director_doctor_name = #{item.directorDoctorName},
|
|
|
|
+ placefile_date = #{item.placefileDate},
|
|
|
|
+ is_placefile = #{item.isPlacefile},
|
|
|
|
+ <if test="item.gmtModified != null">
|
|
|
|
+ gmt_modified = #{item.gmtModified},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="item.modifier != null">
|
|
|
|
+ modifier = #{item.modifier},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="item.isDeleted != null">
|
|
|
|
+ is_deleted = #{item.isDeleted},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where behospital_code = #{item.behospitalCode} and hospital_id = #{item.hospitalId}
|
|
|
|
+ </foreach>
|
|
|
|
+ </update>
|
|
</mapper>
|
|
</mapper>
|