浏览代码

bug处理

chengyao 3 年之前
父节点
当前提交
33e5c5f324
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/MedClickInfoMapper.xml

+ 2 - 2
src/main/resources/mapper/MedClickInfoMapper.xml

@@ -269,7 +269,7 @@
             and b.behospital_code like CONCAT('%',#{behospitalCode},'%')
             and b.behospital_code like CONCAT('%',#{behospitalCode},'%')
         </if>
         </if>
         <if test="doctorId != null and doctorId != ''">
         <if test="doctorId != null and doctorId != ''">
-            and b.doctor_id = #{doctor_id}
+            and b.doctor_id like CONCAT('%',#{doctorId},'%')
         </if>
         </if>
         <if test="doctorName != null and doctorName != ''">
         <if test="doctorName != null and doctorName != ''">
             and b.doctor_name like CONCAT('%',#{doctorName},'%')
             and b.doctor_name like CONCAT('%',#{doctorName},'%')
@@ -317,7 +317,7 @@
             and a.dept_name = #{deptName}
             and a.dept_name = #{deptName}
         </if>
         </if>
         <if test="doctorId != null and doctorId != ''">
         <if test="doctorId != null and doctorId != ''">
-            and b.doctor_id = #{doctor_id}
+            and b.doctor_id like CONCAT('%',#{doctorId},'%')
         </if>
         </if>
         <if test="doctorName != null and doctorName != ''">
         <if test="doctorName != null and doctorName != ''">
             and b.doctor_name like CONCAT('%',#{doctorName},'%')
             and b.doctor_name like CONCAT('%',#{doctorName},'%')