|  |  |  | 
|---|
|  |  |  | join | 
|---|
|  |  |  | manage_role_menu mrm | 
|---|
|  |  |  | on | 
|---|
|  |  |  | mm.`id` = mrm.`menu_id` and mrm.`is_delete`=0 | 
|---|
|  |  |  | mm.`id` = mrm.`menu_id` and mrm.`is_delete`= '0' | 
|---|
|  |  |  | join | 
|---|
|  |  |  | manage_role mr | 
|---|
|  |  |  | on | 
|---|
|  |  |  | 
|---|
|  |  |  | #{role.id} | 
|---|
|  |  |  | </foreach> | 
|---|
|  |  |  | where | 
|---|
|  |  |  | mm.`is_delete`=0 | 
|---|
|  |  |  | mm.`is_delete`= '0' | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getManageMenuByName" resultMap="BaseResultMap"> | 
|---|
|  |  |  | 
|---|
|  |  |  | limit #{start},#{number} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="getManageMenuByNameFuzzy" parameterType="java.util.Map" resultMap="BaseResultMap"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | <include refid="Base_Column_List"></include> | 
|---|
|  |  |  | from manage_menu mm | 
|---|
|  |  |  | where mm.is_delete = 0 | 
|---|
|  |  |  | <if test="name != null"> | 
|---|
|  |  |  | and mm.name like concat('%',#{name},'%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="url != null"> | 
|---|
|  |  |  | and mm.url = #{url} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="icon != null"> | 
|---|
|  |  |  | and mm.icon = #{icon} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="parent_id != null"> | 
|---|
|  |  |  | and mm.parent_id = #{parent_id} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="order != null"> | 
|---|
|  |  |  | and mm.order = #{order} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="desc != null"> | 
|---|
|  |  |  | and mm.desc = #{order} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | limit #{start},#{number} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|