linwe
2023-12-08 91e2a286bb5b72172bb2e2d5f96be03439c51f72
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
@@ -69,7 +69,7 @@
    </select>
    <!--查询场所集合信息-->
    <select id="selectPlaceNodeList" resultType="org.springblade.common.node.TreeNode" >
    <select id="selectPlaceNodeList" resultType="org.springblade.common.node.TreeStringNode" >
        select jp.id,
               jp.house_code      houseCode,
               jp.place_name as   name,
@@ -145,4 +145,13 @@
        </if>
        limit 1
    </select>
    <!--查询出有用户id 的场所-->
    <select id="getHasUserIdPlaceList" resultType="org.springblade.modules.place.entity.PlaceEntity">
        select
        jp.*
        from jczz_place jp
        left join blade_user bu on bu.id = jp.principal_user_id and bu.is_deleted = 0
        where jp.is_deleted = 0 and jp.principal_user_id is not null
    </select>
</mapper>