| | |
| | | <!-- 保存路由信息至 instance表中 add by wuxw 2018-07-03 --> |
| | | <insert id="saveBasePrivilegeInfo" parameterType="Map"> |
| | | insert into p_privilege( |
| | | p_id,name,resource,domain,description |
| | | p_id,name,resource,domain,description,m_id |
| | | ) values ( |
| | | #{pId},#{name},#{resource},#{domain},#{description} |
| | | #{pId},#{name},#{resource},#{domain},#{description},#{mId} |
| | | ) |
| | | |
| | | </insert> |
| | |
| | | </if> |
| | | <if test="domain !=null and domain != ''"> |
| | | and t.domain= #{domain} |
| | | </if> |
| | | <if test="mId !=null and mId != ''"> |
| | | and t.m_id= #{mId} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | <if test="domain !=null and domain != ''"> |
| | | and t.domain= #{domain} |
| | | </if> |
| | | <if test="mId !=null and mId != ''"> |
| | | and t.m_id= #{mId} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | |
| | | insert into m_menu( |
| | | m_id,name,g_id,url,seq,p_id,description,is_show |
| | | ) values ( |
| | | #{mId},#{name},#{gId},#{url},#{seq},#{pId},#{description},#{isShow} |
| | | #{mId},#{name},#{gId},#{url},#{seq},'-1',#{description},#{isShow} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | from m_menu t,p_privilege p |
| | | where t.status_cd= '0' |
| | | and p.status_cd= '0' |
| | | and t.p_id = p.p_id |
| | | and t.m_id = p.m_id |
| | | <if test="gId !=null and gId != ''"> |
| | | and t.g_id= #{gId} |
| | | </if> |
| | |
| | | <if test="mName !=null and mName != ''"> |
| | | and t.name like concat('%',#{mName},'%') |
| | | </if> |
| | | <if test="pId !=null and pId != ''"> |
| | | and t.p_id= #{pId} |
| | | </if> |
| | | |
| | | <if test="domain !=null and domain != ''"> |
| | | and p.domain= #{domain} |
| | | </if> |
| | |
| | | and t.m_id= #{mId} |
| | | </if> |
| | | <if test="pId !=null and pId != ''"> |
| | | and t.p_id= #{pId} |
| | | and p.p_id= #{pId} |
| | | </if> |
| | | <if test="isShow !=null and isShow != ''"> |
| | | and t.is_show= #{isShow} |
| | |
| | | from m_menu t,p_privilege p |
| | | where t.status_cd= '0' |
| | | and p.status_cd= '0' |
| | | and t.p_id = p.p_id |
| | | and t.m_id = p.m_id |
| | | <if test="gId !=null and gId != ''"> |
| | | and t.g_id= #{gId} |
| | | </if> |
| | |
| | | and p.name like concat('%',#{pName},'%') |
| | | </if> |
| | | <if test="mId !=null and mId != ''"> |
| | | and t.m_id= #{mId} |
| | | and p.m_id= #{mId} |
| | | </if> |
| | | <if test="pId !=null and pId != ''"> |
| | | and t.p_id= #{pId} |