Przeglądaj źródła

修改过滤无效数据

zhoux 1 rok temu
rodzic
commit
ced36c997b

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

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