<?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.ssm.manage.mapper.SysMenuPowerMapper">
  <resultMap id="BaseResultMap" type="com.ssm.manage.entity.SysMenuPower">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="type" jdbcType="INTEGER" property="type" />
    <result column="parent_id" jdbcType="VARCHAR" property="parentId" />
    <result column="power_name" jdbcType="VARCHAR" property="powerName" />
  </resultMap>
  <sql id="BaseColumnList">a.menu_id,a.menu_name,a.power_id,a.power_name</sql>


<!--  <insert id="saveMenuPower" parameterType="java.util.List">-->
<!--    insert into sys_menu_power (menu_id,menu_name,power_id,power_name) values-->
<!--    <foreach collection="sysMenuPowerList" index="index" item="sysMenuPower" separator=",">-->
<!--      (#{sysMenuPower.menuId},#{sysMenuPower.menuName},#{sysMenuPower.powerId},#{sysMenuPower.powerName})-->
<!--    </foreach>-->
<!--  </insert>-->

<!--  <delete id="deleteMenuPower" parameterType="java.util.List">-->
<!--    delete from sys_menu_power where-->
<!--    <foreach collection="sysMenuPowerList" index="index" item="sysMenuPower" separator="or">-->
<!--      menu_id = #{sysMenuPower.menuId} AND power_id = #{sysMenuPower.powerId}-->
<!--    </foreach>-->
<!--  </delete>-->
</mapper>