|
@@ -0,0 +1,538 @@
|
|
|
+<?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.transactionRecordManage.mapper.CollectionEditRecordMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.idea.transactionRecordManage.model.CollectionEditRecord">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="group_id" jdbcType="VARCHAR" property="groupId" />
|
|
|
+ <result column="disc_id" jdbcType="VARCHAR" property="discId" />
|
|
|
+ <result column="house_id" jdbcType="VARCHAR" property="houseId" />
|
|
|
+ <result column="customer_management_id" jdbcType="VARCHAR" property="customerManagementId" />
|
|
|
+ <result column="business_id" jdbcType="VARCHAR" property="businessId" />
|
|
|
+ <result column="business_type" jdbcType="VARCHAR" property="businessType" />
|
|
|
+ <result column="content_type" jdbcType="INTEGER" property="contentType" />
|
|
|
+ <result column="bank_number" jdbcType="CHAR" property="bankNumber" />
|
|
|
+ <result column="pay_money" jdbcType="DECIMAL" property="payMoney" />
|
|
|
+ <result column="pay_time" jdbcType="TIMESTAMP" property="payTime" />
|
|
|
+ <result column="payment_method" jdbcType="INTEGER" property="paymentMethod" />
|
|
|
+ <result column="nc_submit_status" jdbcType="INTEGER" property="ncSubmitStatus" />
|
|
|
+ <result column="nc_submit_date" jdbcType="TIMESTAMP" property="ncSubmitDate" />
|
|
|
+ <result column="nc_submit_name" jdbcType="VARCHAR" property="ncSubmitName" />
|
|
|
+ <result column="nc_bank_serial_id" jdbcType="VARCHAR" property="ncBankSerialId" />
|
|
|
+ <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
|
|
|
+ <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
+ <result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
|
|
|
+ <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
|
+ </resultMap>
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.idea.transactionRecordManage.model.CollectionEditRecord">
|
|
|
+ <result column="nc_json" jdbcType="LONGVARCHAR" property="ncJson" />
|
|
|
+ </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, group_id, disc_id, house_id, customer_management_id, business_id, business_type,
|
|
|
+ content_type, bank_number, pay_money, pay_time, payment_method, nc_submit_status,
|
|
|
+ nc_submit_date, nc_submit_name, nc_bank_serial_id, created_by, created_at, updated_by,
|
|
|
+ updated_at
|
|
|
+ </sql>
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
+ nc_json
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExampleWithBLOBs" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecordExample" resultMap="ResultMapWithBLOBs">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
+ from collection_edit_record
|
|
|
+ <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.transactionRecordManage.model.CollectionEditRecordExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from collection_edit_record
|
|
|
+ <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 collection_edit_record
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from collection_edit_record
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecordExample">
|
|
|
+ delete from collection_edit_record
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecord">
|
|
|
+ insert into collection_edit_record (id, group_id, disc_id,
|
|
|
+ house_id, customer_management_id, business_id,
|
|
|
+ business_type, content_type, bank_number,
|
|
|
+ pay_money, pay_time, payment_method,
|
|
|
+ nc_submit_status, nc_submit_date, nc_submit_name,
|
|
|
+ nc_bank_serial_id, created_by, created_at,
|
|
|
+ updated_by, updated_at, nc_json
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR}, #{discId,jdbcType=VARCHAR},
|
|
|
+ #{houseId,jdbcType=VARCHAR}, #{customerManagementId,jdbcType=VARCHAR}, #{businessId,jdbcType=VARCHAR},
|
|
|
+ #{businessType,jdbcType=VARCHAR}, #{contentType,jdbcType=INTEGER}, #{bankNumber,jdbcType=CHAR},
|
|
|
+ #{payMoney,jdbcType=DECIMAL}, #{payTime,jdbcType=TIMESTAMP}, #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ #{ncSubmitStatus,jdbcType=INTEGER}, #{ncSubmitDate,jdbcType=TIMESTAMP}, #{ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ #{ncBankSerialId,jdbcType=VARCHAR}, #{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ #{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, #{ncJson,jdbcType=LONGVARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecord">
|
|
|
+ insert into collection_edit_record
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="groupId != null">
|
|
|
+ group_id,
|
|
|
+ </if>
|
|
|
+ <if test="discId != null">
|
|
|
+ disc_id,
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id,
|
|
|
+ </if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ customer_management_id,
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null">
|
|
|
+ business_id,
|
|
|
+ </if>
|
|
|
+ <if test="businessType != null">
|
|
|
+ business_type,
|
|
|
+ </if>
|
|
|
+ <if test="contentType != null">
|
|
|
+ content_type,
|
|
|
+ </if>
|
|
|
+ <if test="bankNumber != null">
|
|
|
+ bank_number,
|
|
|
+ </if>
|
|
|
+ <if test="payMoney != null">
|
|
|
+ pay_money,
|
|
|
+ </if>
|
|
|
+ <if test="payTime != null">
|
|
|
+ pay_time,
|
|
|
+ </if>
|
|
|
+ <if test="paymentMethod != null">
|
|
|
+ payment_method,
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitStatus != null">
|
|
|
+ nc_submit_status,
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitDate != null">
|
|
|
+ nc_submit_date,
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitName != null">
|
|
|
+ nc_submit_name,
|
|
|
+ </if>
|
|
|
+ <if test="ncBankSerialId != null">
|
|
|
+ nc_bank_serial_id,
|
|
|
+ </if>
|
|
|
+ <if test="createdBy != null">
|
|
|
+ created_by,
|
|
|
+ </if>
|
|
|
+ <if test="createdAt != null">
|
|
|
+ created_at,
|
|
|
+ </if>
|
|
|
+ <if test="updatedBy != null">
|
|
|
+ updated_by,
|
|
|
+ </if>
|
|
|
+ <if test="updatedAt != null">
|
|
|
+ updated_at,
|
|
|
+ </if>
|
|
|
+ <if test="ncJson != null">
|
|
|
+ nc_json,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="groupId != null">
|
|
|
+ #{groupId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="discId != null">
|
|
|
+ #{discId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null">
|
|
|
+ #{businessId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessType != null">
|
|
|
+ #{businessType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contentType != null">
|
|
|
+ #{contentType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bankNumber != null">
|
|
|
+ #{bankNumber,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="payMoney != null">
|
|
|
+ #{payMoney,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="payTime != null">
|
|
|
+ #{payTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="paymentMethod != null">
|
|
|
+ #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitStatus != null">
|
|
|
+ #{ncSubmitStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitDate != null">
|
|
|
+ #{ncSubmitDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitName != null">
|
|
|
+ #{ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ncBankSerialId != null">
|
|
|
+ #{ncBankSerialId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createdBy != null">
|
|
|
+ #{createdBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createdAt != null">
|
|
|
+ #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updatedBy != null">
|
|
|
+ #{updatedBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updatedAt != null">
|
|
|
+ #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="ncJson != null">
|
|
|
+ #{ncJson,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecordExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from collection_edit_record
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update collection_edit_record
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.groupId != null">
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.discId != null">
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.houseId != null">
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.customerManagementId != null">
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.businessId != null">
|
|
|
+ business_id = #{record.businessId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.businessType != null">
|
|
|
+ business_type = #{record.businessType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contentType != null">
|
|
|
+ content_type = #{record.contentType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bankNumber != null">
|
|
|
+ bank_number = #{record.bankNumber,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.payMoney != null">
|
|
|
+ pay_money = #{record.payMoney,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.payTime != null">
|
|
|
+ pay_time = #{record.payTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.paymentMethod != null">
|
|
|
+ payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.ncSubmitStatus != null">
|
|
|
+ nc_submit_status = #{record.ncSubmitStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.ncSubmitDate != null">
|
|
|
+ nc_submit_date = #{record.ncSubmitDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.ncSubmitName != null">
|
|
|
+ nc_submit_name = #{record.ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.ncBankSerialId != null">
|
|
|
+ nc_bank_serial_id = #{record.ncBankSerialId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createdBy != null">
|
|
|
+ created_by = #{record.createdBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createdAt != null">
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updatedBy != null">
|
|
|
+ updated_by = #{record.updatedBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.updatedAt != null">
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.ncJson != null">
|
|
|
+ nc_json = #{record.ncJson,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
+ update collection_edit_record
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ business_id = #{record.businessId,jdbcType=VARCHAR},
|
|
|
+ business_type = #{record.businessType,jdbcType=VARCHAR},
|
|
|
+ content_type = #{record.contentType,jdbcType=INTEGER},
|
|
|
+ bank_number = #{record.bankNumber,jdbcType=CHAR},
|
|
|
+ pay_money = #{record.payMoney,jdbcType=DECIMAL},
|
|
|
+ pay_time = #{record.payTime,jdbcType=TIMESTAMP},
|
|
|
+ payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
+ nc_submit_status = #{record.ncSubmitStatus,jdbcType=INTEGER},
|
|
|
+ nc_submit_date = #{record.ncSubmitDate,jdbcType=TIMESTAMP},
|
|
|
+ nc_submit_name = #{record.ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ nc_bank_serial_id = #{record.ncBankSerialId,jdbcType=VARCHAR},
|
|
|
+ created_by = #{record.createdBy,jdbcType=VARCHAR},
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_by = #{record.updatedBy,jdbcType=VARCHAR},
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ nc_json = #{record.ncJson,jdbcType=LONGVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update collection_edit_record
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{record.customerManagementId,jdbcType=VARCHAR},
|
|
|
+ business_id = #{record.businessId,jdbcType=VARCHAR},
|
|
|
+ business_type = #{record.businessType,jdbcType=VARCHAR},
|
|
|
+ content_type = #{record.contentType,jdbcType=INTEGER},
|
|
|
+ bank_number = #{record.bankNumber,jdbcType=CHAR},
|
|
|
+ pay_money = #{record.payMoney,jdbcType=DECIMAL},
|
|
|
+ pay_time = #{record.payTime,jdbcType=TIMESTAMP},
|
|
|
+ payment_method = #{record.paymentMethod,jdbcType=INTEGER},
|
|
|
+ nc_submit_status = #{record.ncSubmitStatus,jdbcType=INTEGER},
|
|
|
+ nc_submit_date = #{record.ncSubmitDate,jdbcType=TIMESTAMP},
|
|
|
+ nc_submit_name = #{record.ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ nc_bank_serial_id = #{record.ncBankSerialId,jdbcType=VARCHAR},
|
|
|
+ created_by = #{record.createdBy,jdbcType=VARCHAR},
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_by = #{record.updatedBy,jdbcType=VARCHAR},
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecord">
|
|
|
+ update collection_edit_record
|
|
|
+ <set>
|
|
|
+ <if test="groupId != null">
|
|
|
+ group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="discId != null">
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customerManagementId != null">
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null">
|
|
|
+ business_id = #{businessId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessType != null">
|
|
|
+ business_type = #{businessType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contentType != null">
|
|
|
+ content_type = #{contentType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bankNumber != null">
|
|
|
+ bank_number = #{bankNumber,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="payMoney != null">
|
|
|
+ pay_money = #{payMoney,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="payTime != null">
|
|
|
+ pay_time = #{payTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="paymentMethod != null">
|
|
|
+ payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitStatus != null">
|
|
|
+ nc_submit_status = #{ncSubmitStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitDate != null">
|
|
|
+ nc_submit_date = #{ncSubmitDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="ncSubmitName != null">
|
|
|
+ nc_submit_name = #{ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ncBankSerialId != null">
|
|
|
+ nc_bank_serial_id = #{ncBankSerialId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createdBy != null">
|
|
|
+ created_by = #{createdBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createdAt != null">
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updatedBy != null">
|
|
|
+ updated_by = #{updatedBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updatedAt != null">
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="ncJson != null">
|
|
|
+ nc_json = #{ncJson,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecord">
|
|
|
+ update collection_edit_record
|
|
|
+ set group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ business_id = #{businessId,jdbcType=VARCHAR},
|
|
|
+ business_type = #{businessType,jdbcType=VARCHAR},
|
|
|
+ content_type = #{contentType,jdbcType=INTEGER},
|
|
|
+ bank_number = #{bankNumber,jdbcType=CHAR},
|
|
|
+ pay_money = #{payMoney,jdbcType=DECIMAL},
|
|
|
+ pay_time = #{payTime,jdbcType=TIMESTAMP},
|
|
|
+ payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ nc_submit_status = #{ncSubmitStatus,jdbcType=INTEGER},
|
|
|
+ nc_submit_date = #{ncSubmitDate,jdbcType=TIMESTAMP},
|
|
|
+ nc_submit_name = #{ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ nc_bank_serial_id = #{ncBankSerialId,jdbcType=VARCHAR},
|
|
|
+ created_by = #{createdBy,jdbcType=VARCHAR},
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_by = #{updatedBy,jdbcType=VARCHAR},
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
+ nc_json = #{ncJson,jdbcType=LONGVARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.idea.transactionRecordManage.model.CollectionEditRecord">
|
|
|
+ update collection_edit_record
|
|
|
+ set group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ customer_management_id = #{customerManagementId,jdbcType=VARCHAR},
|
|
|
+ business_id = #{businessId,jdbcType=VARCHAR},
|
|
|
+ business_type = #{businessType,jdbcType=VARCHAR},
|
|
|
+ content_type = #{contentType,jdbcType=INTEGER},
|
|
|
+ bank_number = #{bankNumber,jdbcType=CHAR},
|
|
|
+ pay_money = #{payMoney,jdbcType=DECIMAL},
|
|
|
+ pay_time = #{payTime,jdbcType=TIMESTAMP},
|
|
|
+ payment_method = #{paymentMethod,jdbcType=INTEGER},
|
|
|
+ nc_submit_status = #{ncSubmitStatus,jdbcType=INTEGER},
|
|
|
+ nc_submit_date = #{ncSubmitDate,jdbcType=TIMESTAMP},
|
|
|
+ nc_submit_name = #{ncSubmitName,jdbcType=VARCHAR},
|
|
|
+ nc_bank_serial_id = #{ncBankSerialId,jdbcType=VARCHAR},
|
|
|
+ created_by = #{createdBy,jdbcType=VARCHAR},
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
+ updated_by = #{updatedBy,jdbcType=VARCHAR},
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|