|
@@ -17,6 +17,12 @@
|
|
<result property="cutOffTime" column="cut_off_time"/>
|
|
<result property="cutOffTime" column="cut_off_time"/>
|
|
<result property="advanceSubmitDays" column="advance_submit_days"/>
|
|
<result property="advanceSubmitDays" column="advance_submit_days"/>
|
|
<result property="notice" column="notice_"/>
|
|
<result property="notice" column="notice_"/>
|
|
|
|
+ <result property="letter" column="letter_ "/>
|
|
|
|
+ <result property="specialStatement" column="special_statement "/>
|
|
|
|
+ <result property="exemptionInstructions" column="exemption_instructions "/>
|
|
|
|
+ <result property="responsibility" column="responsibility_ "/>
|
|
|
|
+ <result property="responsibilityAttach" column="responsibility_attach "/>
|
|
|
|
+ <result property="haveAttach" column="have_attach "/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<insert id="insert" parameterType="com.jpsoft.picc.modules.base.entity.InsuranceDefinition">
|
|
<insert id="insert" parameterType="com.jpsoft.picc.modules.base.entity.InsuranceDefinition">
|
|
<!--
|
|
<!--
|
|
@@ -27,7 +33,9 @@
|
|
<![CDATA[
|
|
<![CDATA[
|
|
insert into base_insurance_definition
|
|
insert into base_insurance_definition
|
|
(id_,name_,insurance_description,clause_,status_,del_flag,create_by,create_time,
|
|
(id_,name_,insurance_description,clause_,status_,del_flag,create_by,create_time,
|
|
- update_by,update_time,cut_off_time,notice_,advance_submit_days)
|
|
|
|
|
|
+ update_by,update_time,cut_off_time,notice_,advance_submit_days,
|
|
|
|
+ letter_ ,special_statement ,exemption_instructions ,responsibility_ ,responsibility_attach ,have_attach
|
|
|
|
+ )
|
|
values
|
|
values
|
|
(
|
|
(
|
|
#{id,jdbcType=VARCHAR}
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -43,6 +51,12 @@
|
|
,#{cutOffTime,jdbcType= VARCHAR }
|
|
,#{cutOffTime,jdbcType= VARCHAR }
|
|
,#{notice,jdbcType= VARCHAR }
|
|
,#{notice,jdbcType= VARCHAR }
|
|
,#{advanceSubmitDays, jdbcType=NUMERIC}
|
|
,#{advanceSubmitDays, jdbcType=NUMERIC}
|
|
|
|
+ ,#{letter,jdbcType= VARCHAR }
|
|
|
|
+ ,#{specialStatement,jdbcType= VARCHAR }
|
|
|
|
+ ,#{exemptionInstructions,jdbcType= VARCHAR }
|
|
|
|
+ ,#{responsibility,jdbcType= VARCHAR }
|
|
|
|
+ ,#{responsibilityAttach,jdbcType= VARCHAR }
|
|
|
|
+ ,#{haveAttach,jdbcType= NUMERIC }
|
|
)
|
|
)
|
|
]]>
|
|
]]>
|
|
</insert>
|
|
</insert>
|
|
@@ -88,14 +102,29 @@
|
|
<if test="advanceSubmitDays!=null">
|
|
<if test="advanceSubmitDays!=null">
|
|
advance_submit_days=#{advanceSubmitDays,jdbcType= NUMERIC },
|
|
advance_submit_days=#{advanceSubmitDays,jdbcType= NUMERIC },
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="letter!=null">
|
|
|
|
+ letter_ =#{letter,jdbcType= VARCHAR },
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialStatement!=null">
|
|
|
|
+ special_statement =#{specialStatement,jdbcType= VARCHAR },
|
|
|
|
+ </if>
|
|
|
|
+ <if test="exemptionInstructions!=null">
|
|
|
|
+ exemption_instructions =#{exemptionInstructions,jdbcType= VARCHAR },
|
|
|
|
+ </if>
|
|
|
|
+ <if test="responsibility!=null">
|
|
|
|
+ responsibility_ =#{responsibility,jdbcType= VARCHAR },
|
|
|
|
+ </if>
|
|
|
|
+ <if test="responsibilityAttach!=null">
|
|
|
|
+ responsibility_attach =#{responsibilityAttach,jdbcType= VARCHAR },
|
|
|
|
+ </if>
|
|
|
|
+ <if test="haveAttach!=null">
|
|
|
|
+ have_attach =#{haveAttach,jdbcType= NUMERIC },
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id_=#{id}
|
|
where id_=#{id}
|
|
</update>
|
|
</update>
|
|
<select id="get" parameterType="string" resultMap="InsuranceDefinitionMap">
|
|
<select id="get" parameterType="string" resultMap="InsuranceDefinitionMap">
|
|
- select
|
|
|
|
- id_,name_,insurance_description,clause_,status_,del_flag,create_by,create_time,
|
|
|
|
- update_by,update_time,cut_off_time,notice_,advance_submit_days
|
|
|
|
- from base_insurance_definition where id_=#{0}
|
|
|
|
|
|
+ select * from base_insurance_definition where id_=#{0}
|
|
</select>
|
|
</select>
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
select count(*) from base_insurance_definition where id_=#{0}
|
|
select count(*) from base_insurance_definition where id_=#{0}
|