Selaa lähdekoodia

解决查询协作文件的BUG

wukai 2 vuotta sitten
vanhempi
commit
a84c3b9f39
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 6 4
      doc-biz/src/main/resources/mapper/biz/DocInfoMapper.xml

+ 6 - 4
doc-biz/src/main/resources/mapper/biz/DocInfoMapper.xml

@@ -22,10 +22,12 @@
     <sql id="selectDocInfoVo">
         select *
         from (select a.*,
-                     case when b.DOC_ID!=NULL then 'Y' ELSE 'N' END IS_ACTOR,
-                  B.IS_FILED, B.FILED_TIME
-              FROM doc_info a LEFT JOIN doc_actor b
-              ON a.DOC_ID=b.doc_id) t
+                     case when b.DOC_ID IS NOT NULL then 'Y' ELSE 'N' END IS_ACTOR,
+                     B.IS_FILED,
+                     B.FILED_TIME
+              FROM doc_info a
+                       LEFT JOIN doc_actor b
+                                 ON a.DOC_ID = b.doc_id) t
     </sql>
 
     <select id="selectDocInfoList" parameterType="DocInfo" resultMap="DocInfoResult">