|
@@ -0,0 +1,574 @@
|
|
|
+<?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.buyingMore.mapper.BuyingMoreMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.idea.buyingMore.model.BuyingMore">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="type" jdbcType="INTEGER" property="type" />
|
|
|
+ <result column="serial_number" jdbcType="VARCHAR" property="serialNumber" />
|
|
|
+ <result column="contract_id" jdbcType="VARCHAR" property="contractId" />
|
|
|
+ <result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
|
|
|
+ <result column="house_id" jdbcType="VARCHAR" property="houseId" />
|
|
|
+ <result column="house_name" jdbcType="VARCHAR" property="houseName" />
|
|
|
+ <result column="actual_build_area" jdbcType="DOUBLE" property="actualBuildArea" />
|
|
|
+ <result column="signing_date" jdbcType="TIMESTAMP" property="signingDate" />
|
|
|
+ <result column="house_price" jdbcType="DECIMAL" property="housePrice" />
|
|
|
+ <result column="buyer_proportion" jdbcType="DOUBLE" property="buyerProportion" />
|
|
|
+ <result column="transfer_proportion" jdbcType="DOUBLE" property="transferProportion" />
|
|
|
+ <result column="transfer_buyer_proportion" jdbcType="DOUBLE" property="transferBuyerProportion" />
|
|
|
+ <result column="transfer_company_proportion" jdbcType="DOUBLE" property="transferCompanyProportion" />
|
|
|
+ <result column="transfer_price" jdbcType="DOUBLE" property="transferPrice" />
|
|
|
+ <result column="transfer_money" jdbcType="DECIMAL" property="transferMoney" />
|
|
|
+ <result column="registration_date" jdbcType="TIMESTAMP" property="registrationDate" />
|
|
|
+ <result column="created_id" jdbcType="VARCHAR" property="createdId" />
|
|
|
+ <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
+ <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
|
+ <result column="updated_id" jdbcType="VARCHAR" property="updatedId" />
|
|
|
+ <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
|
|
+ </resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.idea.buyingMore.model.BuyingMore">
|
|
|
+ <result column="file_list" jdbcType="LONGVARCHAR" property="fileList" />
|
|
|
+ </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, type, serial_number, contract_id, buyer_name, house_id, house_name, actual_build_area,
|
|
|
+ signing_date, house_price, buyer_proportion, transfer_proportion, transfer_buyer_proportion,
|
|
|
+ transfer_company_proportion, transfer_price, transfer_money, registration_date, created_id,
|
|
|
+ created_at, updated_at, updated_id, del_flag
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ file_list
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.idea.buyingMore.model.BuyingMoreExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from buying_more
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByExample" parameterType="com.idea.buyingMore.model.BuyingMoreExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from buying_more
|
|
|
+ <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="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from buying_more
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from buying_more
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.idea.buyingMore.model.BuyingMoreExample">
|
|
|
+ delete from buying_more
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.idea.buyingMore.model.BuyingMore">
|
|
|
+ insert into buying_more (id, type, serial_number,
|
|
|
+ contract_id, buyer_name, house_id,
|
|
|
+ house_name, actual_build_area, signing_date,
|
|
|
+ house_price, buyer_proportion, transfer_proportion,
|
|
|
+ transfer_buyer_proportion, transfer_company_proportion,
|
|
|
+ transfer_price, transfer_money, registration_date,
|
|
|
+ created_id, created_at, updated_at,
|
|
|
+ updated_id, del_flag, file_list
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ #{contractId,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR},
|
|
|
+ #{houseName,jdbcType=VARCHAR}, #{actualBuildArea,jdbcType=DOUBLE}, #{signingDate,jdbcType=TIMESTAMP},
|
|
|
+ #{housePrice,jdbcType=DECIMAL}, #{buyerProportion,jdbcType=DOUBLE}, #{transferProportion,jdbcType=DOUBLE},
|
|
|
+ #{transferBuyerProportion,jdbcType=DOUBLE}, #{transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ #{transferPrice,jdbcType=DOUBLE}, #{transferMoney,jdbcType=DECIMAL}, #{registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ #{createdId,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ #{updatedId,jdbcType=VARCHAR}, #{delFlag,jdbcType=INTEGER}, #{fileList,jdbcType=LONGVARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.idea.buyingMore.model.BuyingMore">
|
|
|
+ insert into buying_more
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ type,
|
|
|
+ </if>
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ serial_number,
|
|
|
+ </if>
|
|
|
+ <if test="contractId != null">
|
|
|
+ contract_id,
|
|
|
+ </if>
|
|
|
+ <if test="buyerName != null">
|
|
|
+ buyer_name,
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id,
|
|
|
+ </if>
|
|
|
+ <if test="houseName != null">
|
|
|
+ house_name,
|
|
|
+ </if>
|
|
|
+ <if test="actualBuildArea != null">
|
|
|
+ actual_build_area,
|
|
|
+ </if>
|
|
|
+ <if test="signingDate != null">
|
|
|
+ signing_date,
|
|
|
+ </if>
|
|
|
+ <if test="housePrice != null">
|
|
|
+ house_price,
|
|
|
+ </if>
|
|
|
+ <if test="buyerProportion != null">
|
|
|
+ buyer_proportion,
|
|
|
+ </if>
|
|
|
+ <if test="transferProportion != null">
|
|
|
+ transfer_proportion,
|
|
|
+ </if>
|
|
|
+ <if test="transferBuyerProportion != null">
|
|
|
+ transfer_buyer_proportion,
|
|
|
+ </if>
|
|
|
+ <if test="transferCompanyProportion != null">
|
|
|
+ transfer_company_proportion,
|
|
|
+ </if>
|
|
|
+ <if test="transferPrice != null">
|
|
|
+ transfer_price,
|
|
|
+ </if>
|
|
|
+ <if test="transferMoney != null">
|
|
|
+ transfer_money,
|
|
|
+ </if>
|
|
|
+ <if test="registrationDate != null">
|
|
|
+ registration_date,
|
|
|
+ </if>
|
|
|
+ <if test="createdId != null">
|
|
|
+ created_id,
|
|
|
+ </if>
|
|
|
+ <if test="createdAt != null">
|
|
|
+ created_at,
|
|
|
+ </if>
|
|
|
+ <if test="updatedAt != null">
|
|
|
+ updated_at,
|
|
|
+ </if>
|
|
|
+ <if test="updatedId != null">
|
|
|
+ updated_id,
|
|
|
+ </if>
|
|
|
+ <if test="delFlag != null">
|
|
|
+ del_flag,
|
|
|
+ </if>
|
|
|
+ <if test="fileList != null">
|
|
|
+ file_list,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractId != null">
|
|
|
+ #{contractId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerName != null">
|
|
|
+ #{buyerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseName != null">
|
|
|
+ #{houseName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="actualBuildArea != null">
|
|
|
+ #{actualBuildArea,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="signingDate != null">
|
|
|
+ #{signingDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="housePrice != null">
|
|
|
+ #{housePrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="buyerProportion != null">
|
|
|
+ #{buyerProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferProportion != null">
|
|
|
+ #{transferProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferBuyerProportion != null">
|
|
|
+ #{transferBuyerProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferCompanyProportion != null">
|
|
|
+ #{transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferPrice != null">
|
|
|
+ #{transferPrice,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferMoney != null">
|
|
|
+ #{transferMoney,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="registrationDate != null">
|
|
|
+ #{registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createdId != null">
|
|
|
+ #{createdId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createdAt != null">
|
|
|
+ #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updatedAt != null">
|
|
|
+ #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updatedId != null">
|
|
|
+ #{updatedId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="delFlag != null">
|
|
|
+ #{delFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="fileList != null">
|
|
|
+ #{fileList,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.idea.buyingMore.model.BuyingMoreExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from buying_more
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update buying_more
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ type = #{record.type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.serialNumber != null">
|
|
|
+ serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contractId != null">
|
|
|
+ contract_id = #{record.contractId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buyerName != null">
|
|
|
+ buyer_name = #{record.buyerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.houseId != null">
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.houseName != null">
|
|
|
+ house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.actualBuildArea != null">
|
|
|
+ actual_build_area = #{record.actualBuildArea,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.signingDate != null">
|
|
|
+ signing_date = #{record.signingDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.housePrice != null">
|
|
|
+ house_price = #{record.housePrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.buyerProportion != null">
|
|
|
+ buyer_proportion = #{record.buyerProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.transferProportion != null">
|
|
|
+ transfer_proportion = #{record.transferProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.transferBuyerProportion != null">
|
|
|
+ transfer_buyer_proportion = #{record.transferBuyerProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.transferCompanyProportion != null">
|
|
|
+ transfer_company_proportion = #{record.transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.transferPrice != null">
|
|
|
+ transfer_price = #{record.transferPrice,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="record.transferMoney != null">
|
|
|
+ transfer_money = #{record.transferMoney,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.registrationDate != null">
|
|
|
+ registration_date = #{record.registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.createdId != null">
|
|
|
+ created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createdAt != null">
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updatedAt != null">
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updatedId != null">
|
|
|
+ updated_id = #{record.updatedId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.delFlag != null">
|
|
|
+ del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.fileList != null">
|
|
|
+ file_list = #{record.fileList,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ update buying_more
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ type = #{record.type,jdbcType=INTEGER},
|
|
|
+ serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{record.contractId,jdbcType=VARCHAR},
|
|
|
+ buyer_name = #{record.buyerName,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
|
+ actual_build_area = #{record.actualBuildArea,jdbcType=DOUBLE},
|
|
|
+ signing_date = #{record.signingDate,jdbcType=TIMESTAMP},
|
|
|
+ house_price = #{record.housePrice,jdbcType=DECIMAL},
|
|
|
+ buyer_proportion = #{record.buyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_proportion = #{record.transferProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_buyer_proportion = #{record.transferBuyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_company_proportion = #{record.transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_price = #{record.transferPrice,jdbcType=DOUBLE},
|
|
|
+ transfer_money = #{record.transferMoney,jdbcType=DECIMAL},
|
|
|
+ registration_date = #{record.registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{record.updatedId,jdbcType=VARCHAR},
|
|
|
+ del_flag = #{record.delFlag,jdbcType=INTEGER},
|
|
|
+ file_list = #{record.fileList,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update buying_more
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ type = #{record.type,jdbcType=INTEGER},
|
|
|
+ serial_number = #{record.serialNumber,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{record.contractId,jdbcType=VARCHAR},
|
|
|
+ buyer_name = #{record.buyerName,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
|
+ actual_build_area = #{record.actualBuildArea,jdbcType=DOUBLE},
|
|
|
+ signing_date = #{record.signingDate,jdbcType=TIMESTAMP},
|
|
|
+ house_price = #{record.housePrice,jdbcType=DECIMAL},
|
|
|
+ buyer_proportion = #{record.buyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_proportion = #{record.transferProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_buyer_proportion = #{record.transferBuyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_company_proportion = #{record.transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_price = #{record.transferPrice,jdbcType=DOUBLE},
|
|
|
+ transfer_money = #{record.transferMoney,jdbcType=DECIMAL},
|
|
|
+ registration_date = #{record.registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{record.createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{record.updatedId,jdbcType=VARCHAR},
|
|
|
+ del_flag = #{record.delFlag,jdbcType=INTEGER}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.idea.buyingMore.model.BuyingMore">
|
|
|
+ update buying_more
|
|
|
+ <set>
|
|
|
+ <if test="type != null">
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="serialNumber != null">
|
|
|
+ serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractId != null">
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buyerName != null">
|
|
|
+ buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseName != null">
|
|
|
+ house_name = #{houseName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="actualBuildArea != null">
|
|
|
+ actual_build_area = #{actualBuildArea,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="signingDate != null">
|
|
|
+ signing_date = #{signingDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="housePrice != null">
|
|
|
+ house_price = #{housePrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="buyerProportion != null">
|
|
|
+ buyer_proportion = #{buyerProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferProportion != null">
|
|
|
+ transfer_proportion = #{transferProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferBuyerProportion != null">
|
|
|
+ transfer_buyer_proportion = #{transferBuyerProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferCompanyProportion != null">
|
|
|
+ transfer_company_proportion = #{transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferPrice != null">
|
|
|
+ transfer_price = #{transferPrice,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="transferMoney != null">
|
|
|
+ transfer_money = #{transferMoney,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="registrationDate != null">
|
|
|
+ registration_date = #{registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="createdId != null">
|
|
|
+ created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createdAt != null">
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updatedAt != null">
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updatedId != null">
|
|
|
+ updated_id = #{updatedId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="delFlag != null">
|
|
|
+ del_flag = #{delFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="fileList != null">
|
|
|
+ file_list = #{fileList,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.buyingMore.model.BuyingMore">
|
|
|
+ update buying_more
|
|
|
+ set type = #{type,jdbcType=INTEGER},
|
|
|
+ serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ house_name = #{houseName,jdbcType=VARCHAR},
|
|
|
+ actual_build_area = #{actualBuildArea,jdbcType=DOUBLE},
|
|
|
+ signing_date = #{signingDate,jdbcType=TIMESTAMP},
|
|
|
+ house_price = #{housePrice,jdbcType=DECIMAL},
|
|
|
+ buyer_proportion = #{buyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_proportion = #{transferProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_buyer_proportion = #{transferBuyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_company_proportion = #{transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_price = #{transferPrice,jdbcType=DOUBLE},
|
|
|
+ transfer_money = #{transferMoney,jdbcType=DECIMAL},
|
|
|
+ registration_date = #{registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{updatedId,jdbcType=VARCHAR},
|
|
|
+ del_flag = #{delFlag,jdbcType=INTEGER},
|
|
|
+ file_list = #{fileList,jdbcType=LONGVARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.idea.buyingMore.model.BuyingMore">
|
|
|
+ update buying_more
|
|
|
+ set type = #{type,jdbcType=INTEGER},
|
|
|
+ serial_number = #{serialNumber,jdbcType=VARCHAR},
|
|
|
+ contract_id = #{contractId,jdbcType=VARCHAR},
|
|
|
+ buyer_name = #{buyerName,jdbcType=VARCHAR},
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ house_name = #{houseName,jdbcType=VARCHAR},
|
|
|
+ actual_build_area = #{actualBuildArea,jdbcType=DOUBLE},
|
|
|
+ signing_date = #{signingDate,jdbcType=TIMESTAMP},
|
|
|
+ house_price = #{housePrice,jdbcType=DECIMAL},
|
|
|
+ buyer_proportion = #{buyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_proportion = #{transferProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_buyer_proportion = #{transferBuyerProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_company_proportion = #{transferCompanyProportion,jdbcType=DOUBLE},
|
|
|
+ transfer_price = #{transferPrice,jdbcType=DOUBLE},
|
|
|
+ transfer_money = #{transferMoney,jdbcType=DECIMAL},
|
|
|
+ registration_date = #{registrationDate,jdbcType=TIMESTAMP},
|
|
|
+ created_id = #{createdId,jdbcType=VARCHAR},
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_id = #{updatedId,jdbcType=VARCHAR},
|
|
|
+ del_flag = #{delFlag,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|