src/main/java/com/mty/cc/mapper/CourseMapper.xml
(开头部分) 2KB这里只显示每个文件的开头 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.mty.cc.mapper.CourseMapper">
<resultMap id="BaseResultMap" type="com.mty.cc.po.Course">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="cno" jdbcType="VARCHAR" property="cno" />
<result column="cname" jdbcType="VARCHAR" property="cname" />
<result column="grade" jdbcType="VARCHAR" property="grade" />
<result column="time" jdbcType="VARCHAR" property="time" />
</resultMap>
<sql id="Base_Column_List">
id,
cno,
cname,
grade,
time
</sql>
<select id="queryById" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from course
where id = #{id,jdbcType=VARCHAR}
</select>
<select id="queryByAll" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from course
</select>
<delete id="deleteById" parameterType="java.lang.String">
delete from course
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.mty.cc.po.Course">
insert into course (
<if test="id != null">
id,
</if>
<if test="cno != null">
cno,
</if>
<if test="cname != null">
cname,
</if>
<if test="grade != null">
grade,
</if>
time
)values(
<if test="id != null">
#{id},
</if>
<if test="cno != null">
#{cno},
</if>
<if test="cname != null">
后面还有 29 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
