WebRoot/WEB-INF/classes/mapper/sys/UserMapper.xml

(开头部分) 6KB

这里只显示每个文件的开头 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.sxt.sys.mapper.UserMapper">
	<resultMap id="BaseResultMap" type="com.sxt.sys.domain.User">
		<id column="userid" jdbcType="INTEGER" property="userid" />
		<result column="loginname" jdbcType="VARCHAR"
			property="loginname" />
		<result column="identity" jdbcType="VARCHAR"
			property="identity" />
		<result column="realname" jdbcType="VARCHAR"
			property="realname" />
		<result column="sex" jdbcType="INTEGER" property="sex" />
		<result column="address" jdbcType="VARCHAR" property="address" />
		<result column="phone" jdbcType="VARCHAR" property="phone" />
		<result column="pwd" jdbcType="VARCHAR" property="pwd" />
		<result column="position" jdbcType="VARCHAR"
			property="position" />
		<result column="type" jdbcType="INTEGER" property="type" />
		<result column="available" jdbcType="INTEGER"
			property="available" />
	</resultMap>
	<sql id="Base_Column_List">
		userid, loginname, identity, realname, sex, address, phone, pwd, position,
		type,
		available
	</sql>
	<select id="selectByPrimaryKey"
		parameterType="java.lang.Integer" resultMap="BaseResultMap">
		select
		<include refid="Base_Column_List" />
		from sys_user
		where userid = #{userid,jdbcType=INTEGER}
	</select>
	<delete id="deleteByPrimaryKey"
		parameterType="java.lang.Integer">
		delete from sys_user
		where userid = #{userid,jdbcType=INTEGER}
	</delete>
	<insert id="insert" parameterType="com.sxt.sys.domain.User">
		insert into sys_user (userid, loginname, identity,
		realname, sex, address,
		phone, pwd, position,
		type, available)
		values (#{userid,jdbcType=INTEGER}, #{loginname,jdbcType=VARCHAR},
		#{identity,jdbcType=VARCHAR},
		#{realname,jdbcType=VARCHAR}, #{sex,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR},
		#{phone,jdbcType=VARCHAR}, #{pwd,jdbcType=VARCHAR},
		#{position,jdbcType=VARCHAR},
		#{type,jdbcType=INTEGER}, #{available,jdbcType=INTEGER})
	</insert>
	<insert id="insertSelective"
		parameterType="com.sxt.sys.domain.User">
		insert into sys_user
		<trim prefix="(" suffix=")" suffixOverrides=",">
			<if test="userid != null">
				userid,
			</if>
			<if test="loginname != null">
				loginname,
			</if>
后面还有 158 行代码,购买后查看完整代码

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

AI 解读 AI

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

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