소스 검색

代码优化

wangyu 6 년 전
부모
커밋
1ea422b1c8
1개의 변경된 파일0개의 추가작업 그리고 18개의 파일을 삭제
  1. 0 18
      aipt-service/src/main/resources/mapper/ConceptMapper.xml

+ 0 - 18
aipt-service/src/main/resources/mapper/ConceptMapper.xml

@@ -192,17 +192,11 @@
         LEFT JOIN kl_library_info t2 ON t1.id = t2.concept_id
         LEFT JOIN kl_concept_common t3 ON t1.id = t3.concept_id
         LEFT JOIN kl_lexicon t6 ON t6.id = t1.lib_type
-        <if test="isStatic != null and isStatic == 1">
-            LEFT JOIN kl_concept_detail t7 ON t7.concept_id = t1.id
-        </if>
         WHERE
         t1.is_deleted = 'N'
         AND t2.is_deleted = 'N'
         AND t3.is_deleted = 'N'
         AND t6.is_deleted = 'N'
-        <if test="isStatic != null and isStatic == 1">
-            AND t7.is_deleted = 'N'
-        </if>
         <if test="type != null">
             AND t1.lib_type = #{type}
         </if>
@@ -240,17 +234,11 @@
         LEFT JOIN kl_library_info t2 ON t1.id = t2.concept_id
         LEFT JOIN kl_concept_common t3 ON t1.id = t3.concept_id
         LEFT JOIN kl_lexicon t6 ON t6.id = t1.lib_type
-        <if test="isStatic != null and isStatic == 1">
-            LEFT JOIN kl_concept_detail t7 ON t7.concept_id = t1.id
-        </if>
         WHERE
         t1.is_deleted = 'N'
         AND t2.is_deleted = 'N'
         AND t3.is_deleted = 'N'
         AND t6.is_deleted = 'N'
-        <if test="isStatic != null and isStatic == 1">
-            AND t7.is_deleted = 'N'
-        </if>
         <if test="type != null">
             AND t1.lib_type = #{type}
         </if>
@@ -288,17 +276,11 @@
         LEFT JOIN kl_library_info t2 ON t1.id = t2.concept_id
         LEFT JOIN kl_concept_common t3 ON t1.id = t3.concept_id
         LEFT JOIN kl_lexicon t6 ON t6.id = t1.lib_type
-        <if test="isStatic != null and isStatic == 1">
-            LEFT JOIN kl_concept_detail t7 ON t7.concept_id = t1.id
-        </if>
         WHERE
         t1.is_deleted = 'N'
         AND t2.is_deleted = 'N'
         AND t3.is_deleted = 'N'
         AND t6.is_deleted = 'N'
-        <if test="isStatic != null and isStatic == 1">
-            AND t7.is_deleted = 'N'
-        </if>
         <if test="type != null">
             AND t1.lib_type = #{type}
         </if>