|
@@ -13,6 +13,7 @@
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="status" column="status_" />
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.picc.modules.business.entity.InsurancePolicyRecord">
|
|
|
<!--
|
|
@@ -22,7 +23,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into business_insurance_policy_record
|
|
|
- (id_,policy_id,opinion_,process_status,del_flag,create_by,create_time,update_by,update_time)
|
|
|
+ (id_,policy_id,opinion_,process_status,del_flag,create_by,create_time,update_by,update_time,status_)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -34,6 +35,7 @@
|
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
+,#{status,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -67,12 +69,15 @@
|
|
|
<if test="updateTime!=null">
|
|
|
update_time=#{updateTime,jdbcType= TIMESTAMP },
|
|
|
</if>
|
|
|
+ <if test="status!=null">
|
|
|
+ status_=#{status,jdbcType= VARCHAR },
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
|
<select id="get" parameterType="string" resultMap="InsurancePolicyRecordMap">
|
|
|
select
|
|
|
-id_,policy_id,opinion_,process_status,del_flag,create_by,create_time,update_by,update_time from business_insurance_policy_record where id_=#{0}
|
|
|
+id_,policy_id,opinion_,process_status,del_flag,create_by,create_time,update_by,update_time,status_ from business_insurance_policy_record where id_=#{0}
|
|
|
</select>
|
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
|
select count(*) from business_insurance_policy_record where id_=#{0}
|