build/classes/com/mapper/FoodMapper.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.FoodDao" >
  <resultMap id="BaseResultMap" type="com.entity.Food" >
    <id column="fdid" property="fdid" jdbcType="INTEGER" />
    <result column="tyid" property="tyid" jdbcType="INTEGER" />
    <result column="fdname" property="fdname" jdbcType="VARCHAR" />
    <result column="fdprice" property="fdprice" jdbcType="DECIMAL" />
    <result column="fdpicture" property="fdpicture" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    fdid, tyid, fdname, fdprice, fdpicture
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from food
    where fdid = #{fdid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from food
    where fdid = #{fdid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.entity.Food" >
    insert into food (fdid, tyid, fdname, 
      fdprice, fdpicture)
    values (#{fdid,jdbcType=INTEGER}, #{tyid,jdbcType=INTEGER}, #{fdname,jdbcType=VARCHAR}, 
      #{fdprice,jdbcType=DECIMAL}, #{fdpicture,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.entity.Food" >
    insert into food
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="fdid != null" >
        fdid,
      </if>
      <if test="tyid != null" >
        tyid,
      </if>
      <if test="fdname != null" >
        fdname,
      </if>
      <if test="fdprice != null" >
        fdprice,
      </if>
      <if test="fdpicture != null" >
        fdpicture,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="fdid != null" >
        #{fdid,jdbcType=INTEGER},
      </if>
      <if test="tyid != null" >
        #{tyid,jdbcType=INTEGER},
      </if>
      <if test="fdname != null" >
        #{fdname,jdbcType=VARCHAR},
      </if>
      <if test="fdprice != null" >
        #{fdprice,jdbcType=DECIMAL},
后面还有 67 行代码,购买后查看完整代码

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

AI 解读 AI

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

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