src/com/mapper/EnrollMapper.xml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?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.dao.EnrollDao" >
  <resultMap id="BaseResultMap" type="com.entity.Enroll" >
    <id column="erid" property="erid" jdbcType="INTEGER" />
    <result column="csid" property="csid" jdbcType="INTEGER" />
    <result column="mbid" property="mbid" jdbcType="INTEGER" />
    <result column="ertime" property="ertime" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    erid, csid, mbid, ertime
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from enroll
    where erid = #{erid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from enroll
    where erid = #{erid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.entity.Enroll" >
    insert into enroll (erid, csid, mbid, 
      ertime)
    values (#{erid,jdbcType=INTEGER}, #{csid,jdbcType=INTEGER}, #{mbid,jdbcType=INTEGER}, 
      #{ertime,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.entity.Enroll" >
    insert into enroll
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="erid != null" >
        erid,
      </if>
      <if test="csid != null" >
        csid,
      </if>
      <if test="mbid != null" >
        mbid,
      </if>
      <if test="ertime != null" >
        ertime,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="erid != null" >
        #{erid,jdbcType=INTEGER},
      </if>
      <if test="csid != null" >
        #{csid,jdbcType=INTEGER},
      </if>
      <if test="mbid != null" >
        #{mbid,jdbcType=INTEGER},
      </if>
      <if test="ertime != null" >
        #{ertime,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.entity.Enroll" >
后面还有 43 行代码,购买后查看完整代码

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

AI 解读

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

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