浏览代码

平均分bug处理

zhanghang 3 年之前
父节点
当前提交
fb3fbd548a
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 8 - 8
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -20429,25 +20429,25 @@
             AND a.beh_dept_name = #{getDoctorDetailPageVO.deptName}
         </if>
         <if test="getDoctorDetailPageVO.deptName == '-0'">
-            AND a.beh_dept_name = '-'
+            AND (a.beh_dept_name IS NULL OR a.beh_dept_name = '' OR a.beh_dept_name = '-')
         </if>
         <if test="getDoctorDetailPageVO.deptId != null and getDoctorDetailPageVO.deptId != '' and getDoctorDetailPageVO.deptId != '-0'">
             AND a.beh_dept_id = #{getDoctorDetailPageVO.deptId}
         </if>
         <if test="getDoctorDetailPageVO.deptId == '-0'">
-            AND a.beh_dept_id = '-'
+            AND (a.beh_dept_id IS NULL OR a.beh_dept_id = '' OR a.beh_dept_id = '-')
         </if>
         <if test="getDoctorDetailPageVO.doctorId != null and getDoctorDetailPageVO.doctorId != '' and getDoctorDetailPageVO.doctorId != '-0'">
             AND a.doctor_id = #{getDoctorDetailPageVO.doctorId}
         </if>
         <if test="getDoctorDetailPageVO.doctorId == '-0'">
-            AND a.doctor_id = '-'
+            AND (a.doctor_id IS NULL OR a.doctor_id = '' OR a.doctor_id = '-')
         </if>
         <if test="getDoctorDetailPageVO.doctorName != null and getDoctorDetailPageVO.doctorName != '' and getDoctorDetailPageVO.doctorName != '-0' ">
             AND a.doctor_name =  #{getDoctorDetailPageVO.doctorName}
         </if>
         <if test="getDoctorDetailPageVO.doctorName == '-0'">
-            AND a.doctor_name = '-'
+            AND (a.doctor_name IS NULL OR a.doctor_name = '' OR a.doctor_name = '-')
         </if>
         <if test="getDoctorDetailPageVO.casesId != null and getDoctorDetailPageVO.casesId != 0">
             AND d.cases_id = #{getDoctorDetailPageVO.casesId}
@@ -20661,25 +20661,25 @@
             AND a.beh_dept_name = #{getDetailRecordListPageVO.deptName}
         </if>
         <if test="getDetailRecordListPageVO.deptName == '-0'">
-            AND a.beh_dept_name = '-'
+            AND (a.beh_dept_name IS NULL OR a.beh_dept_name = '' OR a.beh_dept_name = '-')
         </if>
         <if test="getDetailRecordListPageVO.deptId != null and getDetailRecordListPageVO.deptId != '' and getDetailRecordListPageVO.deptId != '-0'">
             AND a.beh_dept_id = #{getDetailRecordListPageVO.deptId}
         </if>
         <if test="getDetailRecordListPageVO.deptId == '-0'">
-            AND a.beh_dept_id = '-'
+            AND (a.beh_dept_id IS NULL OR a.beh_dept_id = '' OR a.beh_dept_id = '-')
         </if>
         <if test="getDetailRecordListPageVO.doctorId != null and getDetailRecordListPageVO.doctorId != '' and getDetailRecordListPageVO.doctorId != '-0'">
             AND a.doctor_id = #{getDetailRecordListPageVO.doctorId}
         </if>
         <if test="getDetailRecordListPageVO.doctorId == '-0'">
-            AND a.doctor_id = '-'
+            AND (a.doctor_id IS NULL OR a.doctor_id = '' OR a.doctor_id = '-')
         </if>
         <if test="getDetailRecordListPageVO.doctorName != null and getDetailRecordListPageVO.doctorName != '' and getDetailRecordListPageVO.doctorName != '-0' ">
             AND a.doctor_name =  #{getDetailRecordListPageVO.doctorName}
         </if>
         <if test="getDetailRecordListPageVO.doctorName == '-0'">
-            AND a.doctor_name = '-'
+            AND (a.doctor_name IS NULL OR a.doctor_name = '' OR a.doctor_name = '-')
         </if>
         <if test="getDetailRecordListPageVO.level != null and getDetailRecordListPageVO.level != ''">
             AND b.`level` = #{getDetailRecordListPageVO.level}