|
@@ -0,0 +1,561 @@
|
|
|
+<?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.idea.buildManage.mapper.ParkRoomReservationMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.idea.buildManage.model.ParkRoomReservation">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="park_info_id" jdbcType="VARCHAR" property="parkInfoId" />
|
|
|
+ <result column="park_info_name" jdbcType="VARCHAR" property="parkInfoName" />
|
|
|
+ <result column="park_floor_disc_id" jdbcType="VARCHAR" property="parkFloorDiscId" />
|
|
|
+ <result column="park_floor_disc_name" jdbcType="VARCHAR" property="parkFloorDiscName" />
|
|
|
+ <result column="mnp_building_id" jdbcType="VARCHAR" property="mnpBuildingId" />
|
|
|
+ <result column="mnp_building_no" jdbcType="VARCHAR" property="mnpBuildingNo" />
|
|
|
+ <result column="park_room_id" jdbcType="VARCHAR" property="parkRoomId" />
|
|
|
+ <result column="park_room_floor" jdbcType="VARCHAR" property="parkRoomFloor" />
|
|
|
+ <result column="park_room_no" jdbcType="VARCHAR" property="parkRoomNo" />
|
|
|
+ <result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
|
|
|
+ <result column="buyer_phone" jdbcType="VARCHAR" property="buyerPhone" />
|
|
|
+ <result column="buyer_gender" jdbcType="VARCHAR" property="buyerGender" />
|
|
|
+ <result column="buyer_address" jdbcType="VARCHAR" property="buyerAddress" />
|
|
|
+ <result column="applicant_name" jdbcType="VARCHAR" property="applicantName" />
|
|
|
+ <result column="applicant_phone" jdbcType="VARCHAR" property="applicantPhone" />
|
|
|
+ <result column="overview_content" jdbcType="VARCHAR" property="overviewContent" />
|
|
|
+ <result column="reservation_date" jdbcType="TIMESTAMP" property="reservationDate" />
|
|
|
+ <result column="reservation_time_start" jdbcType="VARCHAR" property="reservationTimeStart" />
|
|
|
+ <result column="reservation_time_end" jdbcType="VARCHAR" property="reservationTimeEnd" />
|
|
|
+ <result column="reservation_order" jdbcType="INTEGER" property="reservationOrder" />
|
|
|
+ <result column="reservation_status" jdbcType="INTEGER" property="reservationStatus" />
|
|
|
+ <result column="door_pass_status" jdbcType="INTEGER" property="doorPassStatus" />
|
|
|
+ <result column="create_user" jdbcType="VARCHAR" property="createUser" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="update_user" jdbcType="VARCHAR" property="updateUser" />
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, park_info_id, park_info_name, park_floor_disc_id, park_floor_disc_name, mnp_building_id,
|
|
|
+ mnp_building_no, park_room_id, park_room_floor, park_room_no, buyer_name, buyer_phone,
|
|
|
+ buyer_gender, buyer_address, applicant_name, applicant_phone, overview_content, reservation_date,
|
|
|
+ reservation_time_start, reservation_time_end, reservation_order, reservation_status,
|
|
|
+ door_pass_status, create_user, create_time, update_user, update_time
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.idea.buildManage.model.ParkRoomReservationExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from park_room_reservation
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from park_room_reservation
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from park_room_reservation
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.idea.buildManage.model.ParkRoomReservationExample">
|
|
|
+ delete from park_room_reservation
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.idea.buildManage.model.ParkRoomReservation">
|
|
|
+ insert into park_room_reservation (id, park_info_id, park_info_name,
|
|
|
+ park_floor_disc_id, park_floor_disc_name, mnp_building_id,
|
|
|
+ mnp_building_no, park_room_id, park_room_floor,
|
|
|
+ park_room_no, buyer_name, buyer_phone,
|
|
|
+ buyer_gender, buyer_address, applicant_name,
|
|
|
+ applicant_phone, overview_content, reservation_date,
|
|
|
+ reservation_time_start, reservation_time_end,
|
|
|
+ reservation_order, reservation_status, door_pass_status,
|
|
|
+ create_user, create_time, update_user,
|
|
|
+ update_time)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{parkInfoId,jdbcType=VARCHAR}, #{parkInfoName,jdbcType=VARCHAR},
|
|
|
+ #{parkFloorDiscId,jdbcType=VARCHAR}, #{parkFloorDiscName,jdbcType=VARCHAR}, #{mnpBuildingId,jdbcType=VARCHAR},
|
|
|
+ #{mnpBuildingNo,jdbcType=VARCHAR}, #{parkRoomId,jdbcType=VARCHAR}, #{parkRoomFloor,jdbcType=VARCHAR},
|
|
|
+ #{parkRoomNo,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{buyerPhone,jdbcType=VARCHAR},
|
|
|
+ #{buyerGender,jdbcType=VARCHAR}, #{buyerAddress,jdbcType=VARCHAR}, #{applicantName,jdbcType=VARCHAR},
|
|
|
+ #{applicantPhone,jdbcType=VARCHAR}, #{overviewContent,jdbcType=VARCHAR}, #{reservationDate,jdbcType=TIMESTAMP},
|
|
|
+ #{reservationTimeStart,jdbcType=VARCHAR}, #{reservationTimeEnd,jdbcType=VARCHAR},
|
|
|
+ #{reservationOrder,jdbcType=INTEGER}, #{reservationStatus,jdbcType=INTEGER}, #{doorPassStatus,jdbcType=INTEGER},
|
|
|
+ #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=VARCHAR},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.idea.buildManage.model.ParkRoomReservation">
|
|
|
+ insert into park_room_reservation
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="parkInfoId != null">
|
|
|
+ park_info_id,
|
|
|
+ </if>
|
|
|
+ <if test="parkInfoName != null">
|
|
|
+ park_info_name,
|
|
|
+ </if>
|
|
|
+ <if test="parkFloorDiscId != null">
|
|
|
+ park_floor_disc_id,
|
|
|
+ </if>
|
|
|
+ <if test="parkFloorDiscName != null">
|
|
|
+ park_floor_disc_name,
|
|
|
+ </if>
|
|
|
+ <if test="mnpBuildingId != null">
|
|
|
+ mnp_building_id,
|
|
|
+ </if>
|
|
|
+ <if test="mnpBuildingNo != null">
|
|
|
+ mnp_building_no,
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomId != null">
|
|
|
+ park_room_id,
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomFloor != null">
|
|
|
+ park_room_floor,
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomNo != null">
|
|
|
+ park_room_no,
|
|
|
+ </if>
|
|
|
+ <if test="buyerName != null">
|
|
|
+ buyer_name,
|
|
|
+ </if>
|
|
|
+ <if test="buyerPhone != null">
|
|
|
+ buyer_phone,
|
|
|
+ </if>
|
|
|
+ <if test="buyerGender != null">
|
|
|
+ buyer_gender,
|
|
|
+ </if>
|
|
|
+ <if test="buyerAddress != null">
|
|
|
+ buyer_address,
|
|
|
+ </if>
|
|
|
+ <if test="applicantName != null">
|
|
|
+ applicant_name,
|
|
|
+ </if>
|
|
|
+ <if test="applicantPhone != null">
|
|
|
+ applicant_phone,
|
|
|
+ </if>
|
|
|
+ <if test="overviewContent != null">
|
|
|
+ overview_content,
|
|
|
+ </if>
|
|
|
+ <if test="reservationDate != null">
|
|
|
+ reservation_date,
|
|
|
+ </if>
|
|
|
+ <if test="reservationTimeStart != null">
|
|
|
+ reservation_time_start,
|
|
|
+ </if>
|
|
|
+ <if test="reservationTimeEnd != null">
|
|
|
+ reservation_time_end,
|
|
|
+ </if>
|
|
|
+ <if test="reservationOrder != null">
|
|
|
+ reservation_order,
|
|
|
+ </if>
|
|
|
+ <if test="reservationStatus != null">
|
|
|
+ reservation_status,
|
|
|
+ </if>
|
|
|
+ <if test="doorPassStatus != null">
|
|
|
+ door_pass_status,
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ create_user,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="updateUser != null">
|
|
|
+ update_user,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkInfoId != null">
|
|
|
+ #{parkInfoId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkInfoName != null">
|
|
|
+ #{parkInfoName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkFloorDiscId != null">
|
|
|
+ #{parkFloorDiscId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkFloorDiscName != null">
|
|
|
+ #{parkFloorDiscName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mnpBuildingId != null">
|
|
|
+ #{mnpBuildingId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mnpBuildingNo != null">
|
|
|
+ #{mnpBuildingNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomId != null">
|
|
|
+ #{parkRoomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomFloor != null">
|
|
|
+ #{parkRoomFloor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomNo != null">
|
|
|
+ #{parkRoomNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerName != null">
|
|
|
+ #{buyerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerPhone != null">
|
|
|
+ #{buyerPhone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerGender != null">
|
|
|
+ #{buyerGender,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerAddress != null">
|
|
|
+ #{buyerAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="applicantName != null">
|
|
|
+ #{applicantName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="applicantPhone != null">
|
|
|
+ #{applicantPhone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="overviewContent != null">
|
|
|
+ #{overviewContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reservationDate != null">
|
|
|
+ #{reservationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="reservationTimeStart != null">
|
|
|
+ #{reservationTimeStart,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reservationTimeEnd != null">
|
|
|
+ #{reservationTimeEnd,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reservationOrder != null">
|
|
|
+ #{reservationOrder,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="reservationStatus != null">
|
|
|
+ #{reservationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="doorPassStatus != null">
|
|
|
+ #{doorPassStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ #{createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUser != null">
|
|
|
+ #{updateUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.idea.buildManage.model.ParkRoomReservationExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from park_room_reservation
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update park_room_reservation
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parkInfoId != null">
|
|
|
+ park_info_id = #{record.parkInfoId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parkInfoName != null">
|
|
|
+ park_info_name = #{record.parkInfoName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parkFloorDiscId != null">
|
|
|
+ park_floor_disc_id = #{record.parkFloorDiscId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parkFloorDiscName != null">
|
|
|
+ park_floor_disc_name = #{record.parkFloorDiscName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.mnpBuildingId != null">
|
|
|
+ mnp_building_id = #{record.mnpBuildingId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.mnpBuildingNo != null">
|
|
|
+ mnp_building_no = #{record.mnpBuildingNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parkRoomId != null">
|
|
|
+ park_room_id = #{record.parkRoomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parkRoomFloor != null">
|
|
|
+ park_room_floor = #{record.parkRoomFloor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.parkRoomNo != null">
|
|
|
+ park_room_no = #{record.parkRoomNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buyerName != null">
|
|
|
+ buyer_name = #{record.buyerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buyerPhone != null">
|
|
|
+ buyer_phone = #{record.buyerPhone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buyerGender != null">
|
|
|
+ buyer_gender = #{record.buyerGender,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buyerAddress != null">
|
|
|
+ buyer_address = #{record.buyerAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.applicantName != null">
|
|
|
+ applicant_name = #{record.applicantName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.applicantPhone != null">
|
|
|
+ applicant_phone = #{record.applicantPhone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.overviewContent != null">
|
|
|
+ overview_content = #{record.overviewContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.reservationDate != null">
|
|
|
+ reservation_date = #{record.reservationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.reservationTimeStart != null">
|
|
|
+ reservation_time_start = #{record.reservationTimeStart,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.reservationTimeEnd != null">
|
|
|
+ reservation_time_end = #{record.reservationTimeEnd,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.reservationOrder != null">
|
|
|
+ reservation_order = #{record.reservationOrder,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.reservationStatus != null">
|
|
|
+ reservation_status = #{record.reservationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.doorPassStatus != null">
|
|
|
+ door_pass_status = #{record.doorPassStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.createUser != null">
|
|
|
+ create_user = #{record.createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateUser != null">
|
|
|
+ update_user = #{record.updateUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateTime != null">
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update park_room_reservation
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ park_info_id = #{record.parkInfoId,jdbcType=VARCHAR},
|
|
|
+ park_info_name = #{record.parkInfoName,jdbcType=VARCHAR},
|
|
|
+ park_floor_disc_id = #{record.parkFloorDiscId,jdbcType=VARCHAR},
|
|
|
+ park_floor_disc_name = #{record.parkFloorDiscName,jdbcType=VARCHAR},
|
|
|
+ mnp_building_id = #{record.mnpBuildingId,jdbcType=VARCHAR},
|
|
|
+ mnp_building_no = #{record.mnpBuildingNo,jdbcType=VARCHAR},
|
|
|
+ park_room_id = #{record.parkRoomId,jdbcType=VARCHAR},
|
|
|
+ park_room_floor = #{record.parkRoomFloor,jdbcType=VARCHAR},
|
|
|
+ park_room_no = #{record.parkRoomNo,jdbcType=VARCHAR},
|
|
|
+ buyer_name = #{record.buyerName,jdbcType=VARCHAR},
|
|
|
+ buyer_phone = #{record.buyerPhone,jdbcType=VARCHAR},
|
|
|
+ buyer_gender = #{record.buyerGender,jdbcType=VARCHAR},
|
|
|
+ buyer_address = #{record.buyerAddress,jdbcType=VARCHAR},
|
|
|
+ applicant_name = #{record.applicantName,jdbcType=VARCHAR},
|
|
|
+ applicant_phone = #{record.applicantPhone,jdbcType=VARCHAR},
|
|
|
+ overview_content = #{record.overviewContent,jdbcType=VARCHAR},
|
|
|
+ reservation_date = #{record.reservationDate,jdbcType=TIMESTAMP},
|
|
|
+ reservation_time_start = #{record.reservationTimeStart,jdbcType=VARCHAR},
|
|
|
+ reservation_time_end = #{record.reservationTimeEnd,jdbcType=VARCHAR},
|
|
|
+ reservation_order = #{record.reservationOrder,jdbcType=INTEGER},
|
|
|
+ reservation_status = #{record.reservationStatus,jdbcType=INTEGER},
|
|
|
+ door_pass_status = #{record.doorPassStatus,jdbcType=INTEGER},
|
|
|
+ create_user = #{record.createUser,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_user = #{record.updateUser,jdbcType=VARCHAR},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.idea.buildManage.model.ParkRoomReservation">
|
|
|
+ update park_room_reservation
|
|
|
+ <set>
|
|
|
+ <if test="parkInfoId != null">
|
|
|
+ park_info_id = #{parkInfoId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkInfoName != null">
|
|
|
+ park_info_name = #{parkInfoName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkFloorDiscId != null">
|
|
|
+ park_floor_disc_id = #{parkFloorDiscId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkFloorDiscName != null">
|
|
|
+ park_floor_disc_name = #{parkFloorDiscName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mnpBuildingId != null">
|
|
|
+ mnp_building_id = #{mnpBuildingId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mnpBuildingNo != null">
|
|
|
+ mnp_building_no = #{mnpBuildingNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomId != null">
|
|
|
+ park_room_id = #{parkRoomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomFloor != null">
|
|
|
+ park_room_floor = #{parkRoomFloor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="parkRoomNo != null">
|
|
|
+ park_room_no = #{parkRoomNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerName != null">
|
|
|
+ buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerPhone != null">
|
|
|
+ buyer_phone = #{buyerPhone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerGender != null">
|
|
|
+ buyer_gender = #{buyerGender,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerAddress != null">
|
|
|
+ buyer_address = #{buyerAddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="applicantName != null">
|
|
|
+ applicant_name = #{applicantName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="applicantPhone != null">
|
|
|
+ applicant_phone = #{applicantPhone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="overviewContent != null">
|
|
|
+ overview_content = #{overviewContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reservationDate != null">
|
|
|
+ reservation_date = #{reservationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="reservationTimeStart != null">
|
|
|
+ reservation_time_start = #{reservationTimeStart,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reservationTimeEnd != null">
|
|
|
+ reservation_time_end = #{reservationTimeEnd,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reservationOrder != null">
|
|
|
+ reservation_order = #{reservationOrder,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="reservationStatus != null">
|
|
|
+ reservation_status = #{reservationStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="doorPassStatus != null">
|
|
|
+ door_pass_status = #{doorPassStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ create_user = #{createUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateUser != null">
|
|
|
+ update_user = #{updateUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.idea.buildManage.model.ParkRoomReservation">
|
|
|
+ update park_room_reservation
|
|
|
+ set park_info_id = #{parkInfoId,jdbcType=VARCHAR},
|
|
|
+ park_info_name = #{parkInfoName,jdbcType=VARCHAR},
|
|
|
+ park_floor_disc_id = #{parkFloorDiscId,jdbcType=VARCHAR},
|
|
|
+ park_floor_disc_name = #{parkFloorDiscName,jdbcType=VARCHAR},
|
|
|
+ mnp_building_id = #{mnpBuildingId,jdbcType=VARCHAR},
|
|
|
+ mnp_building_no = #{mnpBuildingNo,jdbcType=VARCHAR},
|
|
|
+ park_room_id = #{parkRoomId,jdbcType=VARCHAR},
|
|
|
+ park_room_floor = #{parkRoomFloor,jdbcType=VARCHAR},
|
|
|
+ park_room_no = #{parkRoomNo,jdbcType=VARCHAR},
|
|
|
+ buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
+ buyer_phone = #{buyerPhone,jdbcType=VARCHAR},
|
|
|
+ buyer_gender = #{buyerGender,jdbcType=VARCHAR},
|
|
|
+ buyer_address = #{buyerAddress,jdbcType=VARCHAR},
|
|
|
+ applicant_name = #{applicantName,jdbcType=VARCHAR},
|
|
|
+ applicant_phone = #{applicantPhone,jdbcType=VARCHAR},
|
|
|
+ overview_content = #{overviewContent,jdbcType=VARCHAR},
|
|
|
+ reservation_date = #{reservationDate,jdbcType=TIMESTAMP},
|
|
|
+ reservation_time_start = #{reservationTimeStart,jdbcType=VARCHAR},
|
|
|
+ reservation_time_end = #{reservationTimeEnd,jdbcType=VARCHAR},
|
|
|
+ reservation_order = #{reservationOrder,jdbcType=INTEGER},
|
|
|
+ reservation_status = #{reservationStatus,jdbcType=INTEGER},
|
|
|
+ door_pass_status = #{doorPassStatus,jdbcType=INTEGER},
|
|
|
+ create_user = #{createUser,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_user = #{updateUser,jdbcType=VARCHAR},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|