|
@@ -7,6 +7,7 @@
|
|
<id property="id" column="id_" />
|
|
<id property="id" column="id_" />
|
|
<result property="name" column="name_" />
|
|
<result property="name" column="name_" />
|
|
<result property="status" column="status_" />
|
|
<result property="status" column="status_" />
|
|
|
|
+ <result property="type" column="type_" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
@@ -21,12 +22,13 @@
|
|
-->
|
|
-->
|
|
<![CDATA[
|
|
<![CDATA[
|
|
insert into base_insurance_agent
|
|
insert into base_insurance_agent
|
|
- (id_,name_,status_,del_flag,create_by,create_time,update_by,update_time)
|
|
|
|
|
|
+ (id_,name_,status_,type_,del_flag,create_by,create_time,update_by,update_time)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
#{id,jdbcType=VARCHAR}
|
|
#{id,jdbcType=VARCHAR}
|
|
,#{name,jdbcType=VARCHAR}
|
|
,#{name,jdbcType=VARCHAR}
|
|
,#{status,jdbcType=VARCHAR}
|
|
,#{status,jdbcType=VARCHAR}
|
|
|
|
+,#{type,jdbcType=VARCHAR}
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
@@ -45,8 +47,11 @@
|
|
name_=#{name,jdbcType=VARCHAR},
|
|
name_=#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="status!=null">
|
|
<if test="status!=null">
|
|
- status_=#{status,jdbcType=VARCHAR},
|
|
|
|
|
|
+ status_=#{status,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="type!=null">
|
|
|
|
+ type_=#{type,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="delFlag!=null">
|
|
<if test="delFlag!=null">
|
|
del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
</if>
|
|
</if>
|
|
@@ -67,7 +72,7 @@
|
|
</update>
|
|
</update>
|
|
<select id="get" parameterType="string" resultMap="InsuranceAgentMap">
|
|
<select id="get" parameterType="string" resultMap="InsuranceAgentMap">
|
|
select
|
|
select
|
|
-id_,name_,status_,del_flag,create_by,create_time,update_by,update_time from base_insurance_agent where id_=#{0}
|
|
|
|
|
|
+id_,name_,status_,type_,del_flag,create_by,create_time,update_by,update_time from base_insurance_agent where id_=#{0}
|
|
</select>
|
|
</select>
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
select count(*) from base_insurance_agent where id_=#{0} and del_flag = false
|
|
select count(*) from base_insurance_agent where id_=#{0} and del_flag = false
|