xuhy
2024-12-11 5be07b1a021f596b003eac001f4cb77416ae6c7b
ruoyi-system/src/main/resources/mapper/system/TIndexMenuMapper.xml
@@ -34,17 +34,14 @@
        id, menu_name, menu_sort, create_by, create_time, is_delete
    </sql>
    <select id="allert" resultMap="tree">
        SELECT tt.id as tid, tt.titile_name,tm.id,tm.major_name
        SELECT tt.id as tid, tt.titile_name
        FROM t_technical_title tt
                 LEFT JOIN t_title_major tm  on tm.technical_id = tt.id
        WHERE 1=1 and tt.is_delete = 0 and tm.is_delete = 0
        WHERE 1=1 and tt.is_delete = 0
        <if test="cityCode != null and cityCode.size() > 0">
            <foreach collection="cityCode" item="id"  separator=",">
                OR   FIND_IN_SET(#{id}, tm.region_ids)
                and   FIND_IN_SET(#{id}, tt.region_ids)
            </foreach>
        </if>
    </select>
    <select id="userUp" resultType="java.util.Map">
        SELECT