diff --git a/src/main/java/neatlogic/framework/knowledge/dao/mapper/KnowledgeDocumentMapper.xml b/src/main/java/neatlogic/framework/knowledge/dao/mapper/KnowledgeDocumentMapper.xml index 23d7fd729ad531c353931d9a9d59e31f1b07441d..e9cc95e86fe94533ba73a68ee2b25fde41057f68 100755 --- a/src/main/java/neatlogic/framework/knowledge/dao/mapper/KnowledgeDocumentMapper.xml +++ b/src/main/java/neatlogic/framework/knowledge/dao/mapper/KnowledgeDocumentMapper.xml @@ -469,19 +469,59 @@ #{source} - - and kd.`knowledge_document_type_uuid` in ( - SELECT `uuid` FROM `knowledge_document_type` WHERE - `lft` >= ( - SELECT `lft` FROM `knowledge_document_type` WHERE `uuid` = #{knowledgeDocumentTypeUuid} - ) - AND - `rht` <= ( - SELECT `rht` FROM `knowledge_document_type` WHERE `uuid` = #{knowledgeDocumentTypeUuid} - ) - ) - AND kc.`id` = (SELECT knowledge_circle_id FROM `knowledge_document_type` WHERE `uuid` = - #{knowledgeDocumentTypeUuid}) + + and kd.`knowledge_document_type_uuid` in + + #{knowledgeDocumentTypeUuid} + + + + AND kc.`id` = #{knowledgeCircleId} + + + and kdc.`user_uuid` = #{collector} + + + + + + and kdv.`lcu` in + + #{lcu} + + + + and kdv.`lcd` >= #{lcdStartTime} + + + and kdv.`lcd` <= #{lcdEndTime} + + + and ktg.`name` in + + #{tag} + + + + and kdv.`status` in + + #{status} + + + + and kd.`source` in + + #{source} + + + + and kd.`knowledge_document_type_uuid` in + + #{knowledgeDocumentTypeUuid} + + + + AND kc.`id` = #{knowledgeCircleId} and kdc.`user_uuid` = #{collector} @@ -515,7 +555,7 @@ + +