匹配患者添加作废条件

docus-active-query-service_1.3
tan 2 years ago
parent 6be01e30f6
commit e81866557b

@ -7,6 +7,7 @@
select patient_id select patient_id
from docus_medicalrecord.t_basic from docus_medicalrecord.t_basic
where jzh = #{jzh} where jzh = #{jzh}
and is_cancel='0'
</select> </select>
<select id="getjzhByDate" resultType="map"> <select id="getjzhByDate" resultType="map">
select inpatient_no,admiss_date,dis_date,admiss_times,jzh select inpatient_no,admiss_date,dis_date,admiss_times,jzh
@ -65,6 +66,7 @@
from docus_medicalrecord.t_basic from docus_medicalrecord.t_basic
where inpatient_no=#{inPatientNo} where inpatient_no=#{inPatientNo}
and admiss_times=#{visitId} and admiss_times=#{visitId}
and is_cancel='0'
</select> </select>
<select id="getJzhByInpatientNo" resultType="java.lang.String"> <select id="getJzhByInpatientNo" resultType="java.lang.String">
select jzh select jzh
@ -72,11 +74,13 @@
where inpatient_no=#{inPatientNo} where inpatient_no=#{inPatientNo}
and admiss_times=#{visitId} and admiss_times=#{visitId}
and jzh is not null and jzh is not null
and is_cancel='0'
</select> </select>
<select id="getJzhByJzh" resultType="java.lang.String"> <select id="getJzhByJzh" resultType="java.lang.String">
select jzh select jzh
from docus_medicalrecord.t_basic from docus_medicalrecord.t_basic
where jzh=#{jzh} where jzh=#{jzh}
and is_cancel='0'
</select> </select>
<resultMap id="groupByJzh" type="com.docus.bgts.entity.JzhListSync"> <resultMap id="groupByJzh" type="com.docus.bgts.entity.JzhListSync">

Loading…
Cancel
Save