|
|
@@ -95,8 +95,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectFsUserInformationCollectionByDoctorType2"
|
|
|
resultType="com.fs.his.domain.FsUserInformationCollection">
|
|
|
select fui.*,fp.patient_name as patientName from fs_user_information_collection fui left join fs_patient fp on fui.patient_id = fp.patient_id
|
|
|
- where fui.doctor_confirm = 1
|
|
|
- <if test="maps.doctorType2Id != null and maps.doctorType2Id != ''"> and fui.doctor_type2_id = #{maps.doctorType2Id}</if>
|
|
|
+ where fui.doctor_confirm = 1 and fui.store_order_id IS NOT NULL
|
|
|
+ <if test="maps.doctorType2Id != null and maps.doctorType2Id != ''"> and fui.doctor_type2_id = #{maps.doctorType2Id}</if>
|
|
|
<if test="maps.doctorType2Confirm != null"> and fui.doctor_type2_confirm = #{maps.doctorType2Confirm}</if>
|
|
|
<if test="maps.packageOrderCode != null and maps.packageOrderCode != ''"> and fui.package_order_code = #{maps.packageOrderCode}</if>
|
|
|
<if test="maps.patientName != null and maps.patientName != ''"> and fp.patient_name like concat(#{maps.patientName},"%")</if>
|