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