src/com/mapper/SeatMapper.xml

(开头部分) 4KB

这里只显示每个文件的开头 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.SeatDao">
  <resultMap id="BaseResultMap" type="com.entity.Seat" >
    <id column="stid" property="stid" jdbcType="INTEGER" />
    <result column="stname" property="stname" jdbcType="VARCHAR" />
    <result column="stcount" property="stcount" jdbcType="VARCHAR" />
    <result column="sttype" property="sttype" jdbcType="VARCHAR" />
    <result column="ststate" property="ststate" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    stid, stname, stcount, sttype, ststate
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from seat
    where stid = #{stid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from seat
    where stid = #{stid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.entity.Seat" >
    insert into seat (stid, stname, stcount, 
      sttype, ststate)
    values (#{stid,jdbcType=INTEGER}, #{stname,jdbcType=VARCHAR}, #{stcount,jdbcType=VARCHAR}, 
      #{sttype,jdbcType=VARCHAR}, #{ststate,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.entity.Seat" >
    insert into seat
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="stid != null" >
        stid,
      </if>
      <if test="stname != null" >
        stname,
      </if>
      <if test="stcount != null" >
        stcount,
      </if>
      <if test="sttype != null" >
        sttype,
      </if>
      <if test="ststate != null" >
        ststate,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="stid != null" >
        #{stid,jdbcType=INTEGER},
      </if>
      <if test="stname != null" >
        #{stname,jdbcType=VARCHAR},
      </if>
      <if test="stcount != null" >
        #{stcount,jdbcType=VARCHAR},
      </if>
      <if test="sttype != null" >
        #{sttype,jdbcType=VARCHAR},
后面还有 63 行代码,购买后查看完整代码

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

AI 解读 AI

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

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