src/com/mapper/CourseMapper.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.CourseDao" >
<resultMap id="BaseResultMap" type="com.entity.Course" >
<id column="csid" property="csid" jdbcType="INTEGER" />
<result column="csname" property="csname" jdbcType="VARCHAR" />
<result column="caid" property="caid" jdbcType="INTEGER" />
<result column="cscost" property="cscost" jdbcType="DOUBLE" />
<result column="cstime" property="cstime" jdbcType="VARCHAR" />
<result column="csintro" property="csintro" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
csid, csname, caid, cscost, cstime, csintro
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from course
where csid = #{csid,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from course
where csid = #{csid,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.entity.Course" >
insert into course (csid, csname, caid,
cscost, cstime, csintro
)
values (#{csid,jdbcType=INTEGER}, #{csname,jdbcType=VARCHAR}, #{caid,jdbcType=INTEGER},
#{cscost,jdbcType=DOUBLE}, #{cstime,jdbcType=VARCHAR}, #{csintro,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.entity.Course" >
insert into course
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="csid != null" >
csid,
</if>
<if test="csname != null" >
csname,
</if>
<if test="caid != null" >
caid,
</if>
<if test="cscost != null" >
cscost,
</if>
<if test="cstime != null" >
cstime,
</if>
<if test="csintro != null" >
csintro,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="csid != null" >
#{csid,jdbcType=INTEGER},
</if>
<if test="csname != null" >
#{csname,jdbcType=VARCHAR},
后面还有 58 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
