修改案例相关功能
parent
84b4f72d33
commit
7ff5d6b917
@ -0,0 +1,29 @@
|
||||
⠀⠀⠀⠰⢷⢿⠄
|
||||
⠀⠀⠀⠀⠀⣼⣷⣄
|
||||
⠀⠀⣤⣿⣇⣿⣿⣧⣿⡄
|
||||
⢴⠾⠋⠀⠀⠻⣿⣷⣿⣿⡀
|
||||
○ ⠀⢀⣿⣿⡿⢿⠈⣿
|
||||
⠀⠀⠀⢠⣿⡿⠁⠀⡊⠀⠙
|
||||
⠀⠀⠀⢿⣿⠀⠀⠹⣿
|
||||
⠀⠀⠀⠀⠹⣷⡀⠀⣿⡄
|
||||
⠀⠀⠀⠀⣀⣼⣿⠀⢈⣧.
|
||||
|
||||
⠀⠀⠰⢷⢿⠄
|
||||
⠀⠀⠀⠀⠀⣼⣷⣄
|
||||
⠀⠀⣤⣿⣇⣿⣿⣧⣿⡄
|
||||
⢴⠾⠋⠀⠀⠻⣿⣷⣿⣿⡀
|
||||
○ ⠀⢀⣿⣿⡿⢿⠈⣿
|
||||
⠀⠀⠀⢠⣿⡿⠁⠀⡊⠀⠙
|
||||
⠀⠀⠀⢿⣿⠀⠀⠹⣿
|
||||
⠀⠀⠀⠀⠹⣷⡀⠀⣿⡄
|
||||
⠀⠀⠀⠀⣀⣼⣿⠀⢈⣧.
|
||||
|
||||
⠀⠀⠰⢷⢿⠄
|
||||
⠀⠀⠀⠀⠀⣼⣷⣄
|
||||
⠀⠀⣤⣿⣇⣿⣿⣧⣿⡄
|
||||
⢴⠾⠋⠀⠀⠻⣿⣷⣿⣿⡀
|
||||
○ ⠀⢀⣿⣿⡿⢿⠈⣿
|
||||
⠀⠀⠀⢠⣿⡿⠁⠀⡊⠀⠙
|
||||
⠀⠀⠀⢿⣿⠀⠀⠹⣿
|
||||
⠀⠀⠀⠀⠹⣷⡀⠀⣿⡄
|
||||
⠀⠀⠀⠀⣀⣼⣿⠀⢈⣧.
|
@ -1,327 +1,306 @@
|
||||
<?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.sztzjy.money_management.mapper.CaseDistributionOfPropertyFamilyRecordsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
<id column="case_distribution_of_property_family_records_id" jdbcType="VARCHAR"
|
||||
property="caseDistributionOfPropertyFamilyRecordsId"/>
|
||||
<result column="caseid" jdbcType="VARCHAR" property="caseid"/>
|
||||
<result column="case_distribution_of_property_id" jdbcType="VARCHAR" property="caseDistributionOfPropertyId"/>
|
||||
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||
<result column="age" jdbcType="INTEGER" property="age"/>
|
||||
<result column="customer_relationship" jdbcType="VARCHAR" property="customerRelationship"/>
|
||||
<result column="annual_income" jdbcType="DECIMAL" property="annualIncome"/>
|
||||
<result column="sort" jdbcType="INTEGER" property="sort"/>
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
|
||||
<result column="is_answer" jdbcType="VARCHAR" property="isAnswer"/>
|
||||
</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>
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
<id column="case_distribution_of_property_family_records_id" jdbcType="VARCHAR" property="caseDistributionOfPropertyFamilyRecordsId" />
|
||||
<result column="caseid" jdbcType="VARCHAR" property="caseid" />
|
||||
<result column="case_distribution_of_property_id" jdbcType="VARCHAR" property="caseDistributionOfPropertyId" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="age" jdbcType="INTEGER" property="age" />
|
||||
<result column="customer_relationship" jdbcType="VARCHAR" property="customerRelationship" />
|
||||
<result column="annual_income" jdbcType="DECIMAL" property="annualIncome" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="is_answer" jdbcType="VARCHAR" property="isAnswer" />
|
||||
</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>
|
||||
</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">
|
||||
case_distribution_of_property_family_records_id
|
||||
, caseid, case_distribution_of_property_id,
|
||||
name, age, customer_relationship, annual_income, sort, user_id, is_answer
|
||||
</sql>
|
||||
<select id="selectByExample"
|
||||
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
from case_distribution_of_property_family_records
|
||||
<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 case_distribution_of_property_family_records
|
||||
where case_distribution_of_property_family_records_id =
|
||||
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete
|
||||
from case_distribution_of_property_family_records
|
||||
where case_distribution_of_property_family_records_id =
|
||||
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample"
|
||||
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample">
|
||||
delete from case_distribution_of_property_family_records
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
insert into case_distribution_of_property_family_records (case_distribution_of_property_family_records_id,
|
||||
caseid,
|
||||
case_distribution_of_property_id, name, age,
|
||||
customer_relationship, annual_income, sort,
|
||||
user_id, is_answer)
|
||||
values (#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}, #{caseid,jdbcType=VARCHAR},
|
||||
#{caseDistributionOfPropertyId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER},
|
||||
#{customerRelationship,jdbcType=VARCHAR}, #{annualIncome,jdbcType=DECIMAL}, #{sort,jdbcType=INTEGER},
|
||||
#{userId,jdbcType=VARCHAR}, #{isAnswer,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective"
|
||||
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
insert into case_distribution_of_property_family_records
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="caseDistributionOfPropertyFamilyRecordsId != null">
|
||||
case_distribution_of_property_family_records_id,
|
||||
</if>
|
||||
<if test="caseid != null">
|
||||
caseid,
|
||||
</if>
|
||||
<if test="caseDistributionOfPropertyId != null">
|
||||
case_distribution_of_property_id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="age != null">
|
||||
age,
|
||||
</if>
|
||||
<if test="customerRelationship != null">
|
||||
customer_relationship,
|
||||
</if>
|
||||
<if test="annualIncome != null">
|
||||
annual_income,
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="isAnswer != null">
|
||||
is_answer,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="caseDistributionOfPropertyFamilyRecordsId != null">
|
||||
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="caseid != null">
|
||||
#{caseid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="caseDistributionOfPropertyId != null">
|
||||
#{caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="age != null">
|
||||
#{age,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="customerRelationship != null">
|
||||
#{customerRelationship,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="annualIncome != null">
|
||||
#{annualIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
#{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isAnswer != null">
|
||||
#{isAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample"
|
||||
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample"
|
||||
resultType="java.lang.Long">
|
||||
select count(*) from case_distribution_of_property_family_records
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</trim>
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update case_distribution_of_property_family_records
|
||||
<set>
|
||||
<if test="record.caseDistributionOfPropertyFamilyRecordsId != null">
|
||||
case_distribution_of_property_family_records_id =
|
||||
#{record.caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.caseid != null">
|
||||
caseid = #{record.caseid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.caseDistributionOfPropertyId != null">
|
||||
case_distribution_of_property_id = #{record.caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.name != null">
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.age != null">
|
||||
age = #{record.age,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.customerRelationship != null">
|
||||
customer_relationship = #{record.customerRelationship,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.annualIncome != null">
|
||||
annual_income = #{record.annualIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.sort != null">
|
||||
sort = #{record.sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.isAnswer != null">
|
||||
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</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>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update case_distribution_of_property_family_records
|
||||
set case_distribution_of_property_family_records_id =
|
||||
#{record.caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR},
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
case_distribution_of_property_family_records_id, caseid, case_distribution_of_property_id,
|
||||
name, age, customer_relationship, annual_income, create_time, user_id, is_answer
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from case_distribution_of_property_family_records
|
||||
<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 case_distribution_of_property_family_records
|
||||
where case_distribution_of_property_family_records_id = #{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from case_distribution_of_property_family_records
|
||||
where case_distribution_of_property_family_records_id = #{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample">
|
||||
delete from case_distribution_of_property_family_records
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
insert into case_distribution_of_property_family_records (case_distribution_of_property_family_records_id, caseid,
|
||||
case_distribution_of_property_id, name, age,
|
||||
customer_relationship, annual_income, create_time,
|
||||
user_id, is_answer)
|
||||
values (#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}, #{caseid,jdbcType=VARCHAR},
|
||||
#{caseDistributionOfPropertyId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER},
|
||||
#{customerRelationship,jdbcType=VARCHAR}, #{annualIncome,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP},
|
||||
#{userId,jdbcType=VARCHAR}, #{isAnswer,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
insert into case_distribution_of_property_family_records
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="caseDistributionOfPropertyFamilyRecordsId != null">
|
||||
case_distribution_of_property_family_records_id,
|
||||
</if>
|
||||
<if test="caseid != null">
|
||||
caseid,
|
||||
</if>
|
||||
<if test="caseDistributionOfPropertyId != null">
|
||||
case_distribution_of_property_id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="age != null">
|
||||
age,
|
||||
</if>
|
||||
<if test="customerRelationship != null">
|
||||
customer_relationship,
|
||||
</if>
|
||||
<if test="annualIncome != null">
|
||||
annual_income,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="isAnswer != null">
|
||||
is_answer,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="caseDistributionOfPropertyFamilyRecordsId != null">
|
||||
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="caseid != null">
|
||||
#{caseid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="caseDistributionOfPropertyId != null">
|
||||
#{caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="age != null">
|
||||
#{age,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="customerRelationship != null">
|
||||
#{customerRelationship,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="annualIncome != null">
|
||||
#{annualIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isAnswer != null">
|
||||
#{isAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample" resultType="java.lang.Long">
|
||||
select count(*) from case_distribution_of_property_family_records
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update case_distribution_of_property_family_records
|
||||
<set>
|
||||
<if test="record.caseDistributionOfPropertyFamilyRecordsId != null">
|
||||
case_distribution_of_property_family_records_id = #{record.caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.caseid != null">
|
||||
caseid = #{record.caseid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.caseDistributionOfPropertyId != null">
|
||||
case_distribution_of_property_id = #{record.caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.name != null">
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.age != null">
|
||||
age = #{record.age,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.customerRelationship != null">
|
||||
customer_relationship = #{record.customerRelationship,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.annualIncome != null">
|
||||
annual_income = #{record.annualIncome,jdbcType=DECIMAL},
|
||||
sort = #{record.sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
is_answer = #{record.isAnswer,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective"
|
||||
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
update case_distribution_of_property_family_records
|
||||
<set>
|
||||
<if test="caseid != null">
|
||||
caseid = #{caseid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="caseDistributionOfPropertyId != null">
|
||||
case_distribution_of_property_id = #{caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="age != null">
|
||||
age = #{age,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="customerRelationship != null">
|
||||
customer_relationship = #{customerRelationship,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="annualIncome != null">
|
||||
annual_income = #{annualIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="sort != null">
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isAnswer != null">
|
||||
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where case_distribution_of_property_family_records_id =
|
||||
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey"
|
||||
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
update case_distribution_of_property_family_records
|
||||
set caseid = #{caseid,jdbcType=VARCHAR},
|
||||
case_distribution_of_property_id = #{caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
age = #{age,jdbcType=INTEGER},
|
||||
customer_relationship = #{customerRelationship,jdbcType=VARCHAR},
|
||||
annual_income = #{annualIncome,jdbcType=DECIMAL},
|
||||
sort = #{sort,jdbcType=INTEGER},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
is_answer = #{isAnswer,jdbcType=VARCHAR}
|
||||
where case_distribution_of_property_family_records_id =
|
||||
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into case_distribution_of_property_family_records (case_distribution_of_property_family_records_id,
|
||||
caseid,
|
||||
case_distribution_of_property_id, name, age,
|
||||
customer_relationship, annual_income, sort,
|
||||
user_id, is_answer)
|
||||
values
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}, #{item.caseid,jdbcType=VARCHAR},
|
||||
#{item.caseDistributionOfPropertyId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.age,jdbcType=INTEGER},
|
||||
#{item.customerRelationship,jdbcType=VARCHAR}, #{item.annualIncome,jdbcType=DECIMAL}, #{item.sort,jdbcType=INTEGER},
|
||||
#{item.userId,jdbcType=VARCHAR}, #{item.isAnswer,jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
</if>
|
||||
<if test="record.isAnswer != null">
|
||||
is_answer = #{record.isAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update case_distribution_of_property_family_records
|
||||
set case_distribution_of_property_family_records_id = #{record.caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR},
|
||||
caseid = #{record.caseid,jdbcType=VARCHAR},
|
||||
case_distribution_of_property_id = #{record.caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
age = #{record.age,jdbcType=INTEGER},
|
||||
customer_relationship = #{record.customerRelationship,jdbcType=VARCHAR},
|
||||
annual_income = #{record.annualIncome,jdbcType=DECIMAL},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
is_answer = #{record.isAnswer,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
update case_distribution_of_property_family_records
|
||||
<set>
|
||||
<if test="caseid != null">
|
||||
caseid = #{caseid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="caseDistributionOfPropertyId != null">
|
||||
case_distribution_of_property_id = #{caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="age != null">
|
||||
age = #{age,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="customerRelationship != null">
|
||||
customer_relationship = #{customerRelationship,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="annualIncome != null">
|
||||
annual_income = #{annualIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isAnswer != null">
|
||||
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where case_distribution_of_property_family_records_id = #{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
||||
update case_distribution_of_property_family_records
|
||||
set caseid = #{caseid,jdbcType=VARCHAR},
|
||||
case_distribution_of_property_id = #{caseDistributionOfPropertyId,jdbcType=VARCHAR},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
age = #{age,jdbcType=INTEGER},
|
||||
customer_relationship = #{customerRelationship,jdbcType=VARCHAR},
|
||||
annual_income = #{annualIncome,jdbcType=DECIMAL},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
is_answer = #{isAnswer,jdbcType=VARCHAR}
|
||||
where case_distribution_of_property_family_records_id = #{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into case_distribution_of_property_family_records (case_distribution_of_property_family_records_id,
|
||||
caseid,
|
||||
case_distribution_of_property_id, name, age,
|
||||
customer_relationship, annual_income, sort,
|
||||
user_id, is_answer)
|
||||
values
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}, #{item.caseid,jdbcType=VARCHAR},
|
||||
#{item.caseDistributionOfPropertyId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.age,jdbcType=INTEGER},
|
||||
#{item.customerRelationship,jdbcType=VARCHAR}, #{item.annualIncome,jdbcType=DECIMAL}, #{item.sort,jdbcType=INTEGER},
|
||||
#{item.userId,jdbcType=VARCHAR}, #{item.isAnswer,jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
Loading…
Reference in New Issue