wzy
2022-08-14 b141df9bf9764db8567efebed48006e12ab1f657
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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>