|
@@ -80,6 +80,9 @@
|
|
|
LEFT JOIN med_behospital_info b ON a.behospital_code = b.behospital_code
|
|
|
WHERE
|
|
|
a.hospital_id = b.hospital_id
|
|
|
+ <if test="getComplaintRecordVO.isPlacefile != null and getComplaintRecordVO.isPlacefile != '' ">
|
|
|
+ <![CDATA[ AND b.is_placefile = #{getComplaintRecordVO.isPlacefile}]]>
|
|
|
+ </if>
|
|
|
<if test="getComplaintRecordVO.deptName != null and getComplaintRecordVO.deptName != '' ">
|
|
|
<![CDATA[ AND b.beh_dept_name = #{getComplaintRecordVO.deptName}]]>
|
|
|
</if>
|
|
@@ -134,6 +137,9 @@
|
|
|
AND a.hospital_id = #{getAppealReviewVO.hospitalId}
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.check_id = #{getAppealReviewVO.appealId}
|
|
|
+ <if test="getAppealReviewVO.isPlacefile != null and getAppealReviewVO.isPlacefile != '' ">
|
|
|
+ <![CDATA[ AND b.is_placefile = #{getAppealReviewVO.isPlacefile}]]>
|
|
|
+ </if>
|
|
|
<if test="getAppealReviewVO.complaintDateStart != null ">
|
|
|
<![CDATA[ AND a.gmt_create >= #{getAppealReviewVO.complaintDateStart}]]>
|
|
|
</if>
|