cgf
2025-08-23 9ec0a61f90ac2464eebc643bfe2d93ac9ba6e569
java110-db/src/main/resources/mapper/user/MenuCatalogV1ServiceDaoImplMapper.xml
@@ -8,9 +8,9 @@
    <!-- 保存菜单目录信息 add by wuxw 2018-07-03 -->
    <insert id="saveMenuCatalogInfo" parameterType="Map">
        insert into m_menu_catalog(
        store_type,ca_id,name,icon,seq,url,is_show
        store_type,ca_id,name,icon,seq,url,is_show,priv_id
        ) values (
        #{storeType},#{caId},#{name},#{icon},#{seq},#{url},#{isShow}
        #{storeType},#{caId},#{name},#{icon},#{seq},#{url},#{isShow},#{privId}
        )
    </insert>
@@ -18,7 +18,7 @@
    <!-- 查询菜单目录信息 add by wuxw 2018-07-03 -->
    <select id="getMenuCatalogInfo" parameterType="Map" resultType="Map">
        select t.store_type,t.store_type storeType,t.ca_id,t.ca_id caId,t.name,t.icon,t.status_cd,t.status_cd
        statusCd,t.seq,t.url,t.is_show,t.is_show isShow
        statusCd,t.seq,t.url,t.is_show,t.is_show isShow,t.priv_id privId
        from m_menu_catalog t
        where 1 =1
        <if test="storeType !=null and storeType != ''">
@@ -74,6 +74,9 @@
        <if test="url !=null and url != ''">
            , t.url= #{url}
        </if>
        <if test="privId !=null and privId != ''">
            , t.priv_id = #{privId}
        </if>
        <if test="isShow !=null and isShow != ''">
            , t.is_show= #{isShow}
        </if>
@@ -124,11 +127,21 @@
        mmg.`description` menuGroupDescription,mm.is_show isShow,mm.description
        FROM m_menu mm
        inner join m_menu_group mmg on mm.`g_id` = mmg.`g_id` AND mmg.`status_cd` = '0'
        inner join m_menu_group_catalog mgc on mmg.g_id = mgc.g_id and mgc.status_cd = '0'
        <if test="caId !=null and caId != ''">
            inner join m_menu_group_catalog mgc on mmg.g_id = mgc.g_id and mgc.status_cd = '0'
        </if>
        <if test="communityId !=null and communityId != ''">
            inner join m_menu_group_community mgcy on mgcy.g_id = mmg.g_id and mgcy.status_cd = '0'
        </if>
        WHERE
         mmg.group_type = #{groupType}
        mmg.group_type = #{groupType}
        and mmg.store_type= #{domain}
        and mgc.ca_id = #{caId}
        <if test="caId !=null and caId != ''">
            and mgc.ca_id = #{caId}
        </if>
        <if test="communityId !=null and communityId != ''">
            and mgcy.community_id = #{communityId}
        </if>
        AND mm.`status_cd` = '0'
        AND mm.`m_id` IN (
        SELECT pp.`m_id` FROM p_privilege_user ppu,p_privilege pp