Forráskód Böngészése

解决查询协作文件的BUG

wukai 2 éve
szülő
commit
a84c3b9f39

+ 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">