소스 검색

getConsentList 쿼리 수정

3cooking 5 년 전
부모
커밋
6b4731e57b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      consentApi/bin/main/mybatis/mapper/ConsentMapper.xml
  2. 1 1
      consentApi/src/main/resources/mybatis/mapper/ConsentMapper.xml

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