src/main/resources/mapper/TelMapper.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.yj.oa.project.mapper.TelMapper">
<resultMap id="BaseResultMap" type="com.yj.oa.project.po.Tel">
<id column="id" property="id" jdbcType="INTEGER"/>
<result column="userId" property="userid" jdbcType="VARCHAR"/>
<result column="userName" property="username" jdbcType="VARCHAR"/>
<result column="deptName" property="deptname" jdbcType="INTEGER"/>
<result column="tel" property="tel" jdbcType="VARCHAR"/>
<result column="email" property="email" jdbcType="VARCHAR"/>
<result column="status" property="status" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id, userId, userName, deptName, tel, email, status
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from t_tel
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectTelList" parameterType="Tel" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from t_tel
<where>
<if test="userId!=null and userId != ''">
and userId=#{userId}
</if>
<if test="userName!=null and userName != ''">
and userName=#{userName}
</if>
<if test="deptName!=null and deptName != ''">
deptName=#{deptName}
</if>
</where>
</select>
<delete id="deleteByPrimaryKeys" parameterType="java.lang.Integer">
delete from t_tel
where id IN
<foreach collection="array" open="(" separator="," close=")">
#{id,jdbcType=INTEGER}
</foreach>
</delete>
<insert id="insertSelective" parameterType="com.yj.oa.project.po.Tel">
insert into t_tel
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userid != null">
userId,
</if>
<if test="username != null">
userName,
</if>
<if test="deptname != null">
deptName,
后面还有 60 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。