resources/mapper/bus/CarMapper.xml

(开头部分) 5KB

这里只显示每个文件的开头 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.bus.mapper.CarMapper">
	<resultMap id="BaseResultMap" type="com.sxt.bus.domain.Car">
		<id column="carnumber" jdbcType="VARCHAR" property="carnumber" />
		<result column="cartype" jdbcType="VARCHAR" property="cartype" />
		<result column="color" jdbcType="VARCHAR" property="color" />
		<result column="price" jdbcType="DOUBLE" property="price" />
		<result column="rentprice" jdbcType="DOUBLE"
			property="rentprice" />
		<result column="deposit" jdbcType="DOUBLE" property="deposit" />
		<result column="isrenting" jdbcType="INTEGER"
			property="isrenting" />
		<result column="description" jdbcType="VARCHAR"
			property="description" />
		<result column="carimg" jdbcType="VARCHAR" property="carimg" />
		<result column="createtime" jdbcType="TIMESTAMP"
			property="createtime" />
	</resultMap>
	<sql id="Base_Column_List">
		carnumber, cartype, color, price, rentprice, deposit, isrenting, description,
		carimg,
		createtime
	</sql>
	<select id="selectByPrimaryKey" parameterType="java.lang.String"
		resultMap="BaseResultMap">
		select
		<include refid="Base_Column_List" />
		from bus_car
		where carnumber = #{carnumber,jdbcType=VARCHAR}
	</select>
	<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
		delete from bus_car
		where carnumber = #{carnumber,jdbcType=VARCHAR}
	</delete>
	<insert id="insert" parameterType="com.sxt.bus.domain.Car">
		insert into bus_car (carnumber, cartype, color,
		price, rentprice, deposit,
		isrenting, description, carimg,
		createtime)
		values (#{carnumber,jdbcType=VARCHAR}, #{cartype,jdbcType=VARCHAR},
		#{color,jdbcType=VARCHAR},
		#{price,jdbcType=DOUBLE}, #{rentprice,jdbcType=DOUBLE}, #{deposit,jdbcType=DOUBLE},
		#{isrenting,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR},
		#{carimg,jdbcType=VARCHAR},
		#{createtime,jdbcType=TIMESTAMP})
	</insert>
	<insert id="insertSelective"
		parameterType="com.sxt.bus.domain.Car">
		insert into bus_car
		<trim prefix="(" suffix=")" suffixOverrides=",">
			<if test="carnumber != null">
				carnumber,
			</if>
			<if test="cartype != null">
				cartype,
			</if>
			<if test="color != null">
				color,
			</if>
后面还有 128 行代码,购买后查看完整代码

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

AI 解读 AI

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

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