build/classes/com/mapper/TeacherMapper.xml

(开头部分) 6KB

这里只显示每个文件的开头 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.TeacherDao" >
<resultMap id="BaseResultMap" type="com.entity.Teacher" >
    <id column="teaid" property="teaid" jdbcType="INTEGER" />
    <result column="teacard" property="teacard" jdbcType="VARCHAR" />
    <result column="teanumber" property="teanumber" jdbcType="VARCHAR" />
    <result column="teaname" property="teaname" jdbcType="VARCHAR" />
    <result column="teapassword" property="teapassword" jdbcType="VARCHAR" />
    <result column="teasex" property="teasex" jdbcType="VARCHAR" />
    <result column="teatitle" property="teatitle" jdbcType="VARCHAR" />
    <result column="teaminzhu" property="teaminzhu" jdbcType="VARCHAR" />
    <result column="claid" property="claid" jdbcType="INTEGER" />
  </resultMap>
  <sql id="Base_Column_List" >
    teaid, teacard, teanumber, teaname, teapassword, teasex, teatitle, teaminzhu, claid
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from teacher
    where teaid = #{teaid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from teacher
    where teaid = #{teaid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.entity.Teacher" >
    insert into teacher (teaid, teacard, teanumber, 
      teaname, teapassword, teasex, 
      teatitle, teaminzhu, claid
      )
    values (#{teaid,jdbcType=INTEGER}, #{teacard,jdbcType=VARCHAR}, #{teanumber,jdbcType=VARCHAR}, 
      #{teaname,jdbcType=VARCHAR}, #{teapassword,jdbcType=VARCHAR}, #{teasex,jdbcType=VARCHAR}, 
      #{teatitle,jdbcType=VARCHAR}, #{teaminzhu,jdbcType=VARCHAR}, #{claid,jdbcType=INTEGER}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.entity.Teacher" >
    insert into teacher
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="teaid != null" >
        teaid,
      </if>
      <if test="teacard != null" >
        teacard,
      </if>
      <if test="teanumber != null" >
        teanumber,
      </if>
      <if test="teaname != null" >
        teaname,
      </if>
      <if test="teapassword != null" >
        teapassword,
      </if>
      <if test="teasex != null" >
        teasex,
      </if>
      <if test="teatitle != null" >
        teatitle,
后面还有 111 行代码,购买后查看完整代码

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

AI 解读 AI

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

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