linwe
2023-11-24 305bf77bd37bb476f58c3e1499a4be3c352b66cc
src/main/java/org/springblade/modules/label/mapper/LabelMapper.xml
@@ -29,7 +29,14 @@
    <select id="getLabelTreeList" resultType="org.springblade.common.node.TreeIntegerNode">
        select  id as id,parent_id as parentId,label_name as name, sort FROM jczz_label where is_deleted = 0
        SELECT
            jl.id AS id,
            jl.parent_id AS parentId,
            jl.label_name AS NAME,
            jl.sort,
            (SELECT count(1) from jczz_user_house_label where label_id = jl.id ) count
        FROM
            jczz_label jl  where is_deleted = 0
    </select>