@@ -188,7 +188,7 @@
</if>
<if test='patientCode != "" and patientCode != null'>
- <if test='userId == "" and userId == null'>
+ <if test='userId == "" or userId == null'>
<![CDATA[
AND CMT.PID = #{patientCode}
]]>