患者查询SQL修复

master
gongzhenkun 2 years ago
parent 4455fd3966
commit 9e0b5f822d

@ -156,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and b.hospital_id = #{hospitalId} and b.hospital_id = #{hospitalId}
</if> </if>
<if test="doctorId != null"> <if test="doctorId != null">
and b.doctor_d = #{doctorId} and b.doctor_id = #{doctorId}
</if> </if>
<if test="doctorName != null and doctorName != ''"> <if test="doctorName != null and doctorName != ''">
and d.name like concat('%', #{doctorName}, '%') and d.name like concat('%', #{doctorName}, '%')

Loading…
Cancel
Save