|
@@ -18,11 +18,27 @@
|
|
|
<result column="modifier" property="modifier" />
|
|
|
</resultMap>
|
|
|
|
|
|
+ <select id="getRecordData" resultType="com.diagbot.dto.RecordContentDTO">
|
|
|
+ select t1.hospital_id,t1.rec_id, t1.rec_title, t1.rec_type_id, t1.mode_id , t2.name stand_model_name, t3.content_text, t3.html_text, t3.xml_text
|
|
|
+ from med_medical_record t1, qc_mode t2, med_medical_record_content t3
|
|
|
+ where
|
|
|
+ t1.is_deleted = 'N'
|
|
|
+ and t2.is_deleted = 'N'
|
|
|
+ and t3.is_deleted = 'N'
|
|
|
+ and t1.mode_id = t2.id
|
|
|
+ and t1.hospital_id = t3.hospital_id
|
|
|
+ and t1.rec_id = t3.rec_id
|
|
|
+ and t1.hospital_id = #{hospitalId}
|
|
|
+ and t1.behospital_code = #{behospitalCode}
|
|
|
+ and t1.mode_id = #{modeId}
|
|
|
+ and t3.xml_text != ''
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getRecordContent" resultType="com.diagbot.dto.RecordContentDTO">
|
|
|
select t1.hospital_id,t1.rec_id, t1.rec_title, t1.rec_type_id, t1.mode_id , t2.name stand_model_name, t3.content_text, t3.html_text, t3.xml_text
|
|
|
from med_medical_record t1, qc_mode t2, med_medical_record_content t3
|
|
|
where
|
|
|
- t1.is_deleted = 'N'
|
|
|
+ t1.is_deleted = 'N'
|
|
|
and t2.is_deleted = 'N'
|
|
|
and t3.is_deleted = 'N'
|
|
|
and t1.mode_id = t2.id
|