New file |
| | |
| | | <?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.dy.pipIrrGlobal.daoBa.BaRolePrivilegeMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoBa.BaRolePrivilege"> |
| | | <!--@mbg.generated--> |
| | | <!--@Table ba_role_privilege--> |
| | | <id column="roleId" jdbcType="BIGINT" property="roleId" /> |
| | | <id column="privilegeId" jdbcType="BIGINT" property="privilegeId" /> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | <!--@mbg.generated--> |
| | | roleId, privilegeId |
| | | </sql> |
| | | |
| | | <insert id="putin" parameterType="com.dy.pipIrrGlobal.pojoBa.BaRolePrivilege"> |
| | | <!--@mbg.generated--> |
| | | insert into ba_role_privilege (roleId, privilegeId) |
| | | values (#{roleId,jdbcType=BIGINT}, #{privilegeId,jdbcType=BIGINT}) |
| | | </insert> |
| | | |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoBa.BaRolePrivilege"> |
| | | <!--@mbg.generated--> |
| | | insert into ba_role_privilege |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="roleId != null"> |
| | | roleId, |
| | | </if> |
| | | <if test="privilegeId != null"> |
| | | privilegeId, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="roleId != null"> |
| | | #{roleId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="privilegeId != null"> |
| | | #{privilegeId,jdbcType=BIGINT}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="map"> |
| | | <!--@mbg.generated--> |
| | | delete from ba_role_privilege |
| | | where roleId = #{roleId,jdbcType=BIGINT} |
| | | and privilegeId = #{privilegeId,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | <delete id="deleteByRoleId" parameterType="long"> |
| | | delete from ba_role_privilege |
| | | where roleId = #{roleId,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | <delete id="deleteByPrivilegeId" parameterType="long"> |
| | | delete from ba_role_privilege |
| | | where privilegeId = #{privilegeId,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | </mapper> |