Ver código fonte

getConsentList 쿼리 수정

3cooking 5 anos atrás
pai
commit
6b4731e57b

+ 1 - 1
consentApi/bin/main/mybatis/mapper/ConsentMapper.xml

@@ -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}
         ]]>

+ 1 - 1
consentApi/src/main/resources/mybatis/mapper/ConsentMapper.xml

@@ -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}
         ]]>