linwe
2023-11-11 4cc3da53fca83e9212511c980acb6799ec346565
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
@@ -46,9 +46,17 @@
    <!--查询场所集合信息-->
    <select id="selectPlaceNodeList" resultType="org.springblade.common.node.TreeNode" >
        select id,place_name as name,false as hasChildren from jczz_place
        where 1=1 and is_deleted = 0
        and principal_user_id = #{userId}
        select jp.id,
               jp.house_code      houseCode,
               jp.place_name as   name,
               jda.doorplate_type doorplateType,
               jda.address_level  addressLevel,
               false         as   hasChildren
        from jczz_place jp
                 left join jczz_doorplate_address jda on jp.house_code = jda.address_code
        where 1 = 1
          and jp.is_deleted = 0
          and jp.principal_user_id = #{userId}
    </select>