Jelajahi Sumber

修改过滤无效数据

zhoux 1 tahun lalu
induk
melakukan
ced36c997b
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

+ 3 - 0
src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

@@ -798,6 +798,7 @@
             <if test="cpId != null">
             <if test="cpId != null">
                 AND tmgc.cp_id = #{cpId}
                 AND tmgc.cp_id = #{cpId}
             </if>
             </if>
+            AND  tmgc.flg_valid
         </where>
         </where>
         UNION ALL--父级
         UNION ALL--父级
         SELECT
         SELECT
@@ -817,6 +818,7 @@
             <if test="cpId != null">
             <if test="cpId != null">
                 AND tmgc.cp_id = #{cpId}
                 AND tmgc.cp_id = #{cpId}
             </if>
             </if>
+            AND  tmgc.flg_valid
         </where>
         </where>
         ) T
         ) T
         WHERE T.cat_id IS NOT NULL
         WHERE T.cat_id IS NOT NULL
@@ -946,6 +948,7 @@
             <if test="cpId != null">
             <if test="cpId != null">
                 AND cp_id = #{cpId}
                 AND cp_id = #{cpId}
             </if>
             </if>
+            AND flg_valid
         </where>
         </where>
         order by display_no asc
         order by display_no asc
         <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
         <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">