|
|
|
@ -2,17 +2,16 @@
|
|
|
|
|
<!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"/>
|
|
|
|
|
<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>
|
|
|
|
@ -32,8 +31,7 @@
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
separator=",">
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
@ -62,8 +60,7 @@
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
separator=",">
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
@ -75,21 +72,18 @@
|
|
|
|
|
</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
|
|
|
|
|
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 id="selectByExample" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from case_distribution_of_property_family_records
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
@ -97,37 +91,31 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from case_distribution_of_property_family_records
|
|
|
|
|
where case_distribution_of_property_family_records_id =
|
|
|
|
|
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
|
|
|
|
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 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 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"/>
|
|
|
|
|
<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,
|
|
|
|
|
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,
|
|
|
|
|
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}, #{sort,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 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">
|
|
|
|
@ -151,8 +139,8 @@
|
|
|
|
|
<if test="annualIncome != null">
|
|
|
|
|
annual_income,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sort != null">
|
|
|
|
|
sort,
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id,
|
|
|
|
@ -183,8 +171,8 @@
|
|
|
|
|
<if test="annualIncome != null">
|
|
|
|
|
#{annualIncome,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sort != null">
|
|
|
|
|
#{sort,jdbcType=INTEGER},
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
#{userId,jdbcType=VARCHAR},
|
|
|
|
@ -194,20 +182,17 @@
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample"
|
|
|
|
|
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecordsExample"
|
|
|
|
|
resultType="java.lang.Long">
|
|
|
|
|
<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"/>
|
|
|
|
|
<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},
|
|
|
|
|
case_distribution_of_property_family_records_id = #{record.caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.caseid != null">
|
|
|
|
|
caseid = #{record.caseid,jdbcType=VARCHAR},
|
|
|
|
@ -227,8 +212,8 @@
|
|
|
|
|
<if test="record.annualIncome != null">
|
|
|
|
|
annual_income = #{record.annualIncome,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.sort != null">
|
|
|
|
|
sort = #{record.sort,jdbcType=INTEGER},
|
|
|
|
|
<if test="record.createTime != null">
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userId != null">
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
@ -238,28 +223,26 @@
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
|
<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},
|
|
|
|
|
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},
|
|
|
|
|
sort = #{record.sort,jdbcType=INTEGER},
|
|
|
|
|
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"/>
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective"
|
|
|
|
|
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
|
|
|
|
update case_distribution_of_property_family_records
|
|
|
|
|
<set>
|
|
|
|
|
<if test="caseid != null">
|
|
|
|
@ -280,8 +263,8 @@
|
|
|
|
|
<if test="annualIncome != null">
|
|
|
|
|
annual_income = #{annualIncome,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sort != null">
|
|
|
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
@ -290,11 +273,9 @@
|
|
|
|
|
is_answer = #{isAnswer,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where case_distribution_of_property_family_records_id =
|
|
|
|
|
#{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
|
|
|
|
where case_distribution_of_property_family_records_id = #{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey"
|
|
|
|
|
parameterType="com.sztzjy.money_management.entity.CaseDistributionOfPropertyFamilyRecords">
|
|
|
|
|
<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},
|
|
|
|
@ -302,11 +283,10 @@
|
|
|
|
|
age = #{age,jdbcType=INTEGER},
|
|
|
|
|
customer_relationship = #{customerRelationship,jdbcType=VARCHAR},
|
|
|
|
|
annual_income = #{annualIncome,jdbcType=DECIMAL},
|
|
|
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
|
|
|
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}
|
|
|
|
|
where case_distribution_of_property_family_records_id = #{caseDistributionOfPropertyFamilyRecordsId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<insert id="batchInsert">
|
|
|
|
@ -323,5 +303,4 @@
|
|
|
|
|
#{item.userId,jdbcType=VARCHAR}, #{item.isAnswer,jdbcType=VARCHAR})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
</mapper>
|