|
|
@@ -6,7 +6,7 @@
|
|
|
<result column="cc_cuid" jdbcType="INTEGER" property="cc_cuid" />
|
|
|
<result column="cc_detno" jdbcType="INTEGER" property="cc_detno" />
|
|
|
<result column="cc_name" jdbcType="VARCHAR" property="cc_name" />
|
|
|
- <result column="cc_tel" jdbcType="INTEGER" property="cc_tel" />
|
|
|
+ <result column="cc_tel" jdbcType="VARCHAR" property="cc_tel" />
|
|
|
<result column="cc_qq" jdbcType="VARCHAR" property="cc_qq" />
|
|
|
<result column="cc_email" jdbcType="VARCHAR" property="cc_email" />
|
|
|
<result column="companyid" jdbcType="INTEGER" property="companyId" />
|
|
|
@@ -98,7 +98,7 @@
|
|
|
#{cc_name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cc_tel != null">
|
|
|
- #{cc_tel},
|
|
|
+ #{cc_tel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cc_qq != null">
|
|
|
#{cc_qq,jdbcType=VARCHAR},
|
|
|
@@ -150,7 +150,7 @@
|
|
|
cc_name = #{cc_name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cc_tel != null">
|
|
|
- cc_tel = #{cc_tel},
|
|
|
+ cc_tel = #{cc_tel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cc_qq != null">
|
|
|
cc_qq = #{cc_qq,jdbcType=VARCHAR},
|
|
|
@@ -208,7 +208,7 @@
|
|
|
#{item.cc_cuid,jdbcType=INTEGER},
|
|
|
#{item.cc_detno,jdbcType=INTEGER},
|
|
|
#{item.cc_name,jdbcType=VARCHAR},
|
|
|
- #{item.cc_tel},
|
|
|
+ #{item.cc_tel,jdbcType=VARCHAR},
|
|
|
#{item.cc_qq,jdbcType=VARCHAR},
|
|
|
#{item.cc_email,jdbcType=VARCHAR},
|
|
|
#{item.companyId,jdbcType=INTEGER},
|
|
|
@@ -224,6 +224,109 @@
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
+ <insert id="batchInsert1" parameterType="java.util.List" >
|
|
|
+ <foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
+ insert into customercontact
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+
|
|
|
+ <if test="item.cc_cuid != null">
|
|
|
+ cc_cuid,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_detno != null">
|
|
|
+ cc_detno,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_name != null">
|
|
|
+ cc_name,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_tel != null">
|
|
|
+ cc_tel,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_qq != null">
|
|
|
+ cc_qq,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_email != null">
|
|
|
+ cc_email,
|
|
|
+ </if>
|
|
|
+ <if test="item.companyId != null">
|
|
|
+ companyid,
|
|
|
+ </if>
|
|
|
+ <if test="item.updaterId != null">
|
|
|
+ updaterid,
|
|
|
+ </if>
|
|
|
+ <if test="item.updateTime != null">
|
|
|
+ updatetime,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text1 != null">
|
|
|
+ cc_text1,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text2 != null">
|
|
|
+ cc_text2,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text3 != null">
|
|
|
+ cc_text3,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text4 != null">
|
|
|
+ cc_text4,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text5 != null">
|
|
|
+ cc_text5,
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_default != null">
|
|
|
+ cc_default,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+
|
|
|
+ <if test="item.cc_cuid != null">
|
|
|
+ #{item.cc_cuid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_detno != null">
|
|
|
+ #{item.cc_detno,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_name != null">
|
|
|
+ #{item.cc_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_tel != null">
|
|
|
+ #{item.cc_tel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_qq != null">
|
|
|
+ #{item.cc_qq,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_email != null">
|
|
|
+ #{item.cc_email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.companyId != null">
|
|
|
+ #{item.companyId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="item.updaterId != null">
|
|
|
+ #{item.updaterId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="item.updateTime != null">
|
|
|
+ #{item.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text1 != null">
|
|
|
+ #{item.cc_text1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text2 != null">
|
|
|
+ #{item.cc_text2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text3 != null">
|
|
|
+ #{item.cc_text3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text4 != null">
|
|
|
+ #{item.cc_text4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.cc_text5 != null">
|
|
|
+ #{item.cc_text5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="item.c_default != null">
|
|
|
+ #{item.cc_default,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<update id="batchUpdate" parameterType="com.usoftchina.saas.document.entities.Customercontact" >
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
@@ -239,7 +342,7 @@
|
|
|
cc_name = #{item.cc_name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="item.cc_tel != null">
|
|
|
- cc_tel = #{item.cc_tel},
|
|
|
+ cc_tel = #{item.cc_tel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="item.cc_qq != null">
|
|
|
cc_qq = #{item.cc_qq,jdbcType=VARCHAR},
|