<?xml version="1.0" encoding="UTF-8"?> 
 | 
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 
 | 
<mapper namespace="com.xzx.gc.role.mapper.CoreMenuMapper"> 
 | 
    <update id="clearMenuFunction" parameterType="java.util.List"> 
 | 
        update core_menu set FUNCTION_ID=null where FUNCTION_ID in 
 | 
        <foreach collection="functionIds" index="index" item="id" open="(" separator="," close=")"> 
 | 
            #{id} 
 | 
        </foreach> 
 | 
    </update> 
 | 
    <select id="allMenuWithURL" resultType="com.xzx.gc.entity.CoreMenu"> 
 | 
         select m.*,f.access_url from core_menu m left join core_function  f on m.function_id=f.id 
 | 
    </select> 
 | 
</mapper> 
 |