old mode 100644
new mode 100755
| | |
| | | <!-- 保存路由信息至 instance表中 add by wuxw 2018-07-03 --> |
| | | <insert id="saveMenuGroupInfo" parameterType="Map"> |
| | | insert into m_menu_group( |
| | | g_id,name,icon,label,seq,description,group_type,store_type_cd |
| | | g_id,name,icon,label,seq,description,group_type,store_type |
| | | ) values ( |
| | | #{gId},#{name},#{icon},#{label},#{seq},#{description},#{groupType},#{storeTypeCd} |
| | | #{gId},#{name},#{icon},#{label},#{seq},#{description},#{groupType},#{storeType} |
| | | ) |
| | | |
| | | </insert> |
| | |
| | | |
| | | <!-- 查询路由信息 add by wuxw 2018-07-03 --> |
| | | <select id="getMenuGroupInfo" parameterType="Map" resultType="Map"> |
| | | select t.g_id,t.name,t.icon,t.label,t.seq,t.description,t.g_id gId,t.group_type groupType,t.store_type_cd storeTypeCd |
| | | select t.g_id,t.name,t.icon,t.label,t.seq,t.description,t.g_id gId,t.group_type groupType,t.store_type storeType |
| | | from m_menu_group t |
| | | where t.status_cd= '0' |
| | | <if test="gId !=null and gId != ''"> |
| | |
| | | <if test="groupType !=null and groupType != ''"> |
| | | and t.group_type= #{groupType} |
| | | </if> |
| | | <if test="storeTypeCd !=null and storeTypeCd != ''"> |
| | | and t.store_type_cd= #{storeTypeCd} |
| | | <if test="storeType !=null and storeType != ''"> |
| | | and t.store_type= #{storeType} |
| | | </if> |
| | | <if test="seq !=null"> |
| | | and t.seq= #{seq} |
| | |
| | | <if test="seq !=null "> |
| | | t.seq= #{seq}, |
| | | </if> |
| | | <if test="storeTypeCd !=null and storeTypeCd != ''"> |
| | | t.store_type_cd= #{storeTypeCd}, |
| | | <if test="storeType !=null and storeType != ''"> |
| | | t.store_type= #{storeType}, |
| | | </if> |
| | | <if test="description !=null and description != ''"> |
| | | t.description= #{description} |
| | |
| | | <select id="queryMenuGroupsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from m_menu_group t |
| | | where 1 =1 |
| | | where t.status_cd= '0' |
| | | <if test="gId !=null and gId != ''"> |
| | | and t.g_id= #{gId} |
| | | </if> |
| | |
| | | <if test="seq !=null"> |
| | | and t.seq= #{seq} |
| | | </if> |
| | | <if test="storeTypeCd !=null and storeTypeCd != ''"> |
| | | and t.store_type_cd= #{storeTypeCd} |
| | | <if test="storeType !=null and storeType != ''"> |
| | | and t.store_type= #{storeType} |
| | | </if> |
| | | <if test="description !=null and description != ''"> |
| | | and t.description= #{description} |
| | |
| | | |
| | | <!-- 查询路由信息 add by wuxw 2018-07-03 --> |
| | | <select id="getBasePrivilegeInfo" parameterType="Map" resultType="Map"> |
| | | select t.p_id,t.name,t.domain,t.resource,t.description,t.p_id pId,t.create_time createTime |
| | | select t.p_id,t.name,t.domain,t.resource,t.description,t.p_id pId,t.create_time createTime,st.name stName |
| | | from p_privilege t |
| | | left join store_type st on t.domain=st.store_type_cd |
| | | where t.status_cd= '0' |
| | | <if test="pId !=null and pId != ''"> |
| | | and t.p_id= #{pId} |
| | |
| | | <select id="getMenuInfo" parameterType="Map" resultType="Map"> |
| | | select DISTINCT t.m_id mId,t.name,t.g_id gId,t.url,t.seq,t.p_id pId,t.description,t.is_show isShow, |
| | | if(t.is_show='Y','显示','不显示') isShowName, |
| | | t.m_id pId,t.name pName |
| | | from m_menu t,p_privilege p |
| | | t.m_id pId,t.name pName,mg.name menuGroupName,mg.store_type,st.name storeTypeName |
| | | from m_menu t,p_privilege p,m_menu_group mg,store_type st |
| | | where t.status_cd= '0' |
| | | and p.status_cd= '0' |
| | | and t.m_id = p.m_id |
| | | and t.g_id = mg.g_id |
| | | and mg.store_type = st.store_type_cd |
| | | <if test="gId !=null and gId != ''"> |
| | | and t.g_id= #{gId} |
| | | </if> |
| | |
| | | AND ppr.status_cd = '0' |
| | | ) |
| | | </if> |
| | | order by t.seq asc |
| | | order by t.seq |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | |
| | | <!-- 查询路由数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryMenusCount" parameterType="Map" resultType="Map"> |
| | | select count(DISTINCT(t.m_id)) count |
| | | from m_menu t,p_privilege p |
| | | from m_menu t,p_privilege p,m_menu_group mg,store_type st |
| | | where t.status_cd= '0' |
| | | and p.status_cd= '0' |
| | | and t.m_id = p.m_id |
| | | and t.g_id = mg.g_id |
| | | and mg.store_type = st.store_type_cd |
| | | <if test="gId !=null and gId != ''"> |
| | | and t.g_id= #{gId} |
| | | </if> |