| | |
| | | <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,mg.name menuGroupName,mg.store_type,st.name storeTypeName |
| | | t.m_id pId,t.name pName,mg.name gName,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 mg.store_type = st.store_type_cd |
| | | <if test="gId !=null and gId != ''"> |
| | | and t.g_id= #{gId} |
| | | </if> |
| | | <if test="gName !=null and gName != ''"> |
| | | and mg.name= #{gName} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name like concat('%',#{name},'%') |
| | |
| | | <if test="gId !=null and gId != ''"> |
| | | and t.g_id= #{gId} |
| | | </if> |
| | | <if test="gName !=null and gName != ''"> |
| | | and mg.name= #{gName} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name like concat('%',#{name},'%') |
| | | </if> |