idea版本/二手物品交易与租赁系统论文/secondhand/web/WEB-INF/classes/com/mapper/SalesMapper.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.SalesDao" >
  <resultMap id="BaseResultMap" type="com.entity.Sales" >
    <id column="seid" property="seid" jdbcType="INTEGER" />
    <result column="jkid" property="jkid" jdbcType="INTEGER" />
    <result column="jkprice" property="jkprice" jdbcType="DOUBLE" />
    <result column="jkcount" property="jkcount" jdbcType="INTEGER" />
    <result column="setime" property="setime" jdbcType="VARCHAR" />
    <result column="csid" property="csid" jdbcType="INTEGER" />
    <result column="seflag" property="seflag" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    seid, jkid, jkprice, jkcount, setime, csid, seflag
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from sales
    where seid = #{seid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from sales
    where seid = #{seid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.entity.Sales" >
    insert into sales (seid, jkid, jkprice, 
      jkcount, setime, csid, 
      seflag)
    values (#{seid,jdbcType=INTEGER}, #{jkid,jdbcType=INTEGER}, #{jkprice,jdbcType=DOUBLE}, 
      #{jkcount,jdbcType=INTEGER}, #{setime,jdbcType=VARCHAR}, #{csid,jdbcType=INTEGER}, 
      #{seflag,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.entity.Sales" >
    insert into sales
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="seid != null" >
        seid,
      </if>
      <if test="jkid != null" >
        jkid,
      </if>
      <if test="jkprice != null" >
        jkprice,
      </if>
      <if test="jkcount != null" >
        jkcount,
      </if>
      <if test="setime != null" >
        setime,
      </if>
      <if test="csid != null" >
        csid,
      </if>
      <if test="seflag != null" >
        seflag,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="seid != null" >
后面还有 65 行代码,购买后查看完整代码

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

AI 解读 AI

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

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