src/com/mapper/HomeworkMapper.xml

(开头部分) 5KB

这里只显示每个文件的开头 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.HomeworkDao" >
  <resultMap id="BaseResultMap" type="com.entity.Homework" >
    <id column="hwid" property="hwid" jdbcType="INTEGER" />
    <result column="assid" property="assid" jdbcType="INTEGER" />
    <result column="hwtime" property="hwtime" jdbcType="VARCHAR" />
    <result column="hwfujian" property="hwfujian" jdbcType="VARCHAR" />
    <result column="hwchengji" property="hwchengji" jdbcType="DOUBLE" />
    <result column="hwcorrectfujian" property="hwcorrectfujian" jdbcType="VARCHAR" />
    <result column="sdid" property="sdid" jdbcType="INTEGER" />
    <result column="hwflag" property="hwflag" jdbcType="VARCHAR" />
    <result column="hwcomment" property="hwcomment" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    hwid, assid, hwtime, hwfujian, hwchengji, hwcorrectfujian, sdid, hwflag, hwcomment
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from homework
    where hwid = #{hwid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from homework
    where hwid = #{hwid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.entity.Homework" >
    insert into homework (hwid, assid, hwtime, 
      hwfujian, hwchengji, hwcorrectfujian, 
      sdid, hwflag, hwcomment
      )
    values (#{hwid,jdbcType=INTEGER}, #{assid,jdbcType=INTEGER}, #{hwtime,jdbcType=VARCHAR}, 
      #{hwfujian,jdbcType=VARCHAR}, #{hwchengji,jdbcType=DOUBLE}, #{hwcorrectfujian,jdbcType=VARCHAR}, 
      #{sdid,jdbcType=INTEGER}, #{hwflag,jdbcType=VARCHAR}, #{hwcomment,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.entity.Homework" >
    insert into homework
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="hwid != null" >
        hwid,
      </if>
      <if test="assid != null" >
        assid,
      </if>
      <if test="hwtime != null" >
        hwtime,
      </if>
      <if test="hwfujian != null" >
        hwfujian,
      </if>
      <if test="hwchengji != null" >
        hwchengji,
      </if>
      <if test="hwcorrectfujian != null" >
        hwcorrectfujian,
      </if>
      <if test="sdid != null" >
        sdid,
后面还有 87 行代码,购买后查看完整代码

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

AI 解读

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

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