src/main/resources/mapper/UserRoleMapper.xml

(完整代码) 2KB

<?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.yj.oa.project.mapper.UserRoleMapper">
  <resultMap id="BaseResultMap" type="com.yj.oa.project.po.UserRole">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="id" jdbcType="INTEGER" property="id" />
    <result column="userId" jdbcType="INTEGER" property="userId" />
    <result column="roleId" jdbcType="INTEGER" property="roleId" />
    <result column="u_r_Isdel" jdbcType="INTEGER" property="u_r_Isdel" />
  </resultMap>
  <insert id="insert" parameterType="com.yj.oa.project.po.UserRole">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into t_user_role (id, userId, roleId, 
      u_r_Isdel)
    values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}, 
      #{u_r_Isdel,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.yj.oa.project.po.UserRole">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into t_user_role
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="userId != null">
        userId,
      </if>
      <if test="roleId != null">
        roleId,
      </if>
      <if test="u_r_Isdel != null">
        u_r_Isdel,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="userId != null">
        #{userId,jdbcType=INTEGER},
      </if>
      <if test="roleId != null">
        #{roleId,jdbcType=INTEGER},
      </if>
      <if test="u_r_Isdel != null">
        #{u_r_Isdel,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
</mapper>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。