|
|
|
@ -5,10 +5,9 @@
|
|
|
|
|
<id column="insurance_pro_id" jdbcType="VARCHAR" property="insuranceProId" />
|
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
|
<result column="insurance_company" jdbcType="VARCHAR" property="insuranceCompany" />
|
|
|
|
|
<result column="insurance_limit" jdbcType="DECIMAL" property="insuranceLimit" />
|
|
|
|
|
<result column="insurance_limit" jdbcType="VARCHAR" property="insuranceLimit" />
|
|
|
|
|
<result column="detail_condition_name" jdbcType="VARCHAR" property="detailConditionName" />
|
|
|
|
|
<result column="kind" jdbcType="VARCHAR" property="kind" />
|
|
|
|
|
<result column="detail_condition_content" jdbcType="VARCHAR" property="detailConditionContent" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.money_management.entity.InsuranceProWithBLOBs">
|
|
|
|
|
<result column="features" jdbcType="LONGVARCHAR" property="features" />
|
|
|
|
@ -17,6 +16,7 @@
|
|
|
|
|
<result column="insurance_application" jdbcType="LONGVARCHAR" property="insuranceApplication" />
|
|
|
|
|
<result column="paraphrase" jdbcType="LONGVARCHAR" property="paraphrase" />
|
|
|
|
|
<result column="typical_case" jdbcType="LONGVARCHAR" property="typicalCase" />
|
|
|
|
|
<result column="detail_condition_content" jdbcType="LONGVARCHAR" property="detailConditionContent" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -78,10 +78,10 @@
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
insurance_pro_id, name, insurance_company, insurance_limit, detail_condition_name,
|
|
|
|
|
kind, detail_condition_content
|
|
|
|
|
kind
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
features, details, attention, insurance_application, paraphrase, typical_case
|
|
|
|
|
features, details, attention, insurance_application, paraphrase, typical_case, detail_condition_content
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.money_management.entity.InsuranceProExample" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
@ -134,14 +134,16 @@
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.money_management.entity.InsuranceProWithBLOBs">
|
|
|
|
|
insert into insurance_pro (insurance_pro_id, name, insurance_company,
|
|
|
|
|
insurance_limit, detail_condition_name, kind,
|
|
|
|
|
detail_condition_content, features, details,
|
|
|
|
|
attention, insurance_application,
|
|
|
|
|
paraphrase, typical_case)
|
|
|
|
|
features, details, attention,
|
|
|
|
|
insurance_application, paraphrase,
|
|
|
|
|
typical_case, detail_condition_content
|
|
|
|
|
)
|
|
|
|
|
values (#{insuranceProId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
#{insuranceLimit,jdbcType=DECIMAL}, #{detailConditionName,jdbcType=VARCHAR}, #{kind,jdbcType=VARCHAR},
|
|
|
|
|
#{detailConditionContent,jdbcType=VARCHAR}, #{features,jdbcType=LONGVARCHAR}, #{details,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{attention,jdbcType=LONGVARCHAR}, #{insuranceApplication,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{paraphrase,jdbcType=LONGVARCHAR}, #{typicalCase,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{insuranceLimit,jdbcType=VARCHAR}, #{detailConditionName,jdbcType=VARCHAR}, #{kind,jdbcType=VARCHAR},
|
|
|
|
|
#{features,jdbcType=LONGVARCHAR}, #{details,jdbcType=LONGVARCHAR}, #{attention,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{insuranceApplication,jdbcType=LONGVARCHAR}, #{paraphrase,jdbcType=LONGVARCHAR},
|
|
|
|
|
#{typicalCase,jdbcType=LONGVARCHAR}, #{detailConditionContent,jdbcType=LONGVARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.InsuranceProWithBLOBs">
|
|
|
|
|
insert into insurance_pro
|
|
|
|
@ -164,9 +166,6 @@
|
|
|
|
|
<if test="kind != null">
|
|
|
|
|
kind,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionContent != null">
|
|
|
|
|
detail_condition_content,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="features != null">
|
|
|
|
|
features,
|
|
|
|
|
</if>
|
|
|
|
@ -185,6 +184,9 @@
|
|
|
|
|
<if test="typicalCase != null">
|
|
|
|
|
typical_case,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionContent != null">
|
|
|
|
|
detail_condition_content,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="insuranceProId != null">
|
|
|
|
@ -197,7 +199,7 @@
|
|
|
|
|
#{insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="insuranceLimit != null">
|
|
|
|
|
#{insuranceLimit,jdbcType=DECIMAL},
|
|
|
|
|
#{insuranceLimit,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionName != null">
|
|
|
|
|
#{detailConditionName,jdbcType=VARCHAR},
|
|
|
|
@ -205,9 +207,6 @@
|
|
|
|
|
<if test="kind != null">
|
|
|
|
|
#{kind,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionContent != null">
|
|
|
|
|
#{detailConditionContent,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="features != null">
|
|
|
|
|
#{features,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -226,6 +225,9 @@
|
|
|
|
|
<if test="typicalCase != null">
|
|
|
|
|
#{typicalCase,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionContent != null">
|
|
|
|
|
#{detailConditionContent,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.money_management.entity.InsuranceProExample" resultType="java.lang.Long">
|
|
|
|
@ -247,7 +249,7 @@
|
|
|
|
|
insurance_company = #{record.insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.insuranceLimit != null">
|
|
|
|
|
insurance_limit = #{record.insuranceLimit,jdbcType=DECIMAL},
|
|
|
|
|
insurance_limit = #{record.insuranceLimit,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.detailConditionName != null">
|
|
|
|
|
detail_condition_name = #{record.detailConditionName,jdbcType=VARCHAR},
|
|
|
|
@ -255,9 +257,6 @@
|
|
|
|
|
<if test="record.kind != null">
|
|
|
|
|
kind = #{record.kind,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.detailConditionContent != null">
|
|
|
|
|
detail_condition_content = #{record.detailConditionContent,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.features != null">
|
|
|
|
|
features = #{record.features,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -276,6 +275,9 @@
|
|
|
|
|
<if test="record.typicalCase != null">
|
|
|
|
|
typical_case = #{record.typicalCase,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.detailConditionContent != null">
|
|
|
|
|
detail_condition_content = #{record.detailConditionContent,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -286,16 +288,16 @@
|
|
|
|
|
set insurance_pro_id = #{record.insuranceProId,jdbcType=VARCHAR},
|
|
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
|
insurance_company = #{record.insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
insurance_limit = #{record.insuranceLimit,jdbcType=DECIMAL},
|
|
|
|
|
insurance_limit = #{record.insuranceLimit,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_name = #{record.detailConditionName,jdbcType=VARCHAR},
|
|
|
|
|
kind = #{record.kind,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_content = #{record.detailConditionContent,jdbcType=VARCHAR},
|
|
|
|
|
features = #{record.features,jdbcType=LONGVARCHAR},
|
|
|
|
|
details = #{record.details,jdbcType=LONGVARCHAR},
|
|
|
|
|
attention = #{record.attention,jdbcType=LONGVARCHAR},
|
|
|
|
|
insurance_application = #{record.insuranceApplication,jdbcType=LONGVARCHAR},
|
|
|
|
|
paraphrase = #{record.paraphrase,jdbcType=LONGVARCHAR},
|
|
|
|
|
typical_case = #{record.typicalCase,jdbcType=LONGVARCHAR}
|
|
|
|
|
typical_case = #{record.typicalCase,jdbcType=LONGVARCHAR},
|
|
|
|
|
detail_condition_content = #{record.detailConditionContent,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -305,10 +307,9 @@
|
|
|
|
|
set insurance_pro_id = #{record.insuranceProId,jdbcType=VARCHAR},
|
|
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
|
insurance_company = #{record.insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
insurance_limit = #{record.insuranceLimit,jdbcType=DECIMAL},
|
|
|
|
|
insurance_limit = #{record.insuranceLimit,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_name = #{record.detailConditionName,jdbcType=VARCHAR},
|
|
|
|
|
kind = #{record.kind,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_content = #{record.detailConditionContent,jdbcType=VARCHAR}
|
|
|
|
|
kind = #{record.kind,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -323,7 +324,7 @@
|
|
|
|
|
insurance_company = #{insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="insuranceLimit != null">
|
|
|
|
|
insurance_limit = #{insuranceLimit,jdbcType=DECIMAL},
|
|
|
|
|
insurance_limit = #{insuranceLimit,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionName != null">
|
|
|
|
|
detail_condition_name = #{detailConditionName,jdbcType=VARCHAR},
|
|
|
|
@ -331,9 +332,6 @@
|
|
|
|
|
<if test="kind != null">
|
|
|
|
|
kind = #{kind,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionContent != null">
|
|
|
|
|
detail_condition_content = #{detailConditionContent,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="features != null">
|
|
|
|
|
features = #{features,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -352,6 +350,9 @@
|
|
|
|
|
<if test="typicalCase != null">
|
|
|
|
|
typical_case = #{typicalCase,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailConditionContent != null">
|
|
|
|
|
detail_condition_content = #{detailConditionContent,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where insurance_pro_id = #{insuranceProId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
@ -359,26 +360,26 @@
|
|
|
|
|
update insurance_pro
|
|
|
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
|
|
|
insurance_company = #{insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
insurance_limit = #{insuranceLimit,jdbcType=DECIMAL},
|
|
|
|
|
insurance_limit = #{insuranceLimit,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_name = #{detailConditionName,jdbcType=VARCHAR},
|
|
|
|
|
kind = #{kind,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_content = #{detailConditionContent,jdbcType=VARCHAR},
|
|
|
|
|
features = #{features,jdbcType=LONGVARCHAR},
|
|
|
|
|
details = #{details,jdbcType=LONGVARCHAR},
|
|
|
|
|
attention = #{attention,jdbcType=LONGVARCHAR},
|
|
|
|
|
insurance_application = #{insuranceApplication,jdbcType=LONGVARCHAR},
|
|
|
|
|
paraphrase = #{paraphrase,jdbcType=LONGVARCHAR},
|
|
|
|
|
typical_case = #{typicalCase,jdbcType=LONGVARCHAR}
|
|
|
|
|
typical_case = #{typicalCase,jdbcType=LONGVARCHAR},
|
|
|
|
|
detail_condition_content = #{detailConditionContent,jdbcType=LONGVARCHAR}
|
|
|
|
|
where insurance_pro_id = #{insuranceProId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.InsurancePro">
|
|
|
|
|
update insurance_pro
|
|
|
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
|
|
|
insurance_company = #{insuranceCompany,jdbcType=VARCHAR},
|
|
|
|
|
insurance_limit = #{insuranceLimit,jdbcType=DECIMAL},
|
|
|
|
|
insurance_limit = #{insuranceLimit,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_name = #{detailConditionName,jdbcType=VARCHAR},
|
|
|
|
|
kind = #{kind,jdbcType=VARCHAR},
|
|
|
|
|
detail_condition_content = #{detailConditionContent,jdbcType=VARCHAR}
|
|
|
|
|
kind = #{kind,jdbcType=VARCHAR}
|
|
|
|
|
where insurance_pro_id = #{insuranceProId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|