@@ -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 @@
) T
WHERE T.cat_id IS NOT NULL
@@ -946,6 +948,7 @@
AND cp_id = #{cpId}
+ AND flg_valid
order by display_no asc
<if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">