Browse Source

修改客户资料模块

zhoudw 7 years ago
parent
commit
7559865025

+ 1 - 1
applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/CustomeraddressDTO.java

@@ -14,7 +14,7 @@ public class CustomeraddressDTO extends CommonBaseDTO implements Serializable {
 
 
     private String ca_person;
     private String ca_person;
 
 
-    private Integer ca_phone;
+    private String ca_phone;
 
 
     private Integer ca_default;
     private Integer ca_default;
 
 

+ 1 - 1
applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/CustomercontactDTO.java

@@ -14,7 +14,7 @@ public class CustomercontactDTO extends CommonBaseDTO implements Serializable {
 
 
     private String cc_name;
     private String cc_name;
 
 
-    private Integer cc_tel;
+    private String cc_tel;
 
 
     private String cc_qq;
     private String cc_qq;
 
 

+ 2 - 2
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/CustomerList.java

@@ -70,7 +70,7 @@ public class CustomerList extends CommonBaseEntity{
 
 
     private String ca_person;
     private String ca_person;
 
 
-    private Integer ca_phone;
+    private String ca_phone;
 
 
     private Integer ca_default;
     private Integer ca_default;
 
 
@@ -93,7 +93,7 @@ public class CustomerList extends CommonBaseEntity{
 
 
     private String cc_name;
     private String cc_name;
 
 
-    private Integer cc_tel;
+    private String cc_tel;
 
 
     private String cc_qq;
     private String cc_qq;
 
 

+ 1 - 1
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Customeraddress.java

@@ -13,7 +13,7 @@ public class Customeraddress extends CommonBaseEntity implements Serializable {
 
 
     private String ca_person;
     private String ca_person;
 
 
-    private Integer ca_phone;
+    private String ca_phone;
 
 
     private Integer ca_default;
     private Integer ca_default;
 
 

+ 1 - 1
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Customercontact.java

@@ -13,7 +13,7 @@ public class Customercontact extends CommonBaseEntity implements Serializable {
 
 
     private String cc_name;
     private String cc_name;
 
 
-    private Integer cc_tel;
+    private String cc_tel;
 
 
     private String cc_qq;
     private String cc_qq;
 
 

+ 2 - 13
applications/document/document-server/src/main/resources/mapper/CustomerListMapper.xml

@@ -26,23 +26,12 @@
     <result column="ca_cuid" jdbcType="INTEGER" property="ca_cuid" />
     <result column="ca_cuid" jdbcType="INTEGER" property="ca_cuid" />
     <result column="ca_detno" jdbcType="INTEGER" property="ca_detno" />
     <result column="ca_detno" jdbcType="INTEGER" property="ca_detno" />
     <result column="ca_person" jdbcType="VARCHAR" property="ca_person" />
     <result column="ca_person" jdbcType="VARCHAR" property="ca_person" />
-    <result column="ca_phone" jdbcType="INTEGER" property="ca_phone" />
+    <result column="ca_phone" jdbcType="VARCHAR" property="ca_phone" />
     <result column="ca_default" jdbcType="INTEGER" property="ca_default" />
     <result column="ca_default" jdbcType="INTEGER" property="ca_default" />
     <result column="cc_cuid" jdbcType="INTEGER" property="cc_cuid" />
     <result column="cc_cuid" jdbcType="INTEGER" property="cc_cuid" />
     <result column="cc_detno" jdbcType="INTEGER" property="cc_detno" />
     <result column="cc_detno" jdbcType="INTEGER" property="cc_detno" />
     <result column="cc_name" jdbcType="VARCHAR" property="cc_name" />
     <result column="cc_name" jdbcType="VARCHAR" property="cc_name" />
-    <result column="cc_tel" jdbcType="INTEGER" property="cc_tel" />
-    <result column="cc_qq" jdbcType="VARCHAR" property="cc_qq" />
-    <result column="cc_email" jdbcType="VARCHAR" property="cc_email" />
-    <result column="ca_cuid" jdbcType="INTEGER" property="ca_cuid" />
-    <result column="ca_detno" jdbcType="INTEGER" property="ca_detno" />
-    <result column="ca_person" jdbcType="VARCHAR" property="ca_person" />
-    <result column="ca_phone" jdbcType="INTEGER" property="ca_phone" />
-    <result column="ca_default" jdbcType="INTEGER" property="ca_default" />
-    <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_qq" jdbcType="VARCHAR" property="cc_qq" />
     <result column="cc_email" jdbcType="VARCHAR" property="cc_email" />
     <result column="cc_email" jdbcType="VARCHAR" property="cc_email" />
     <result column="cc_default" jdbcType="INTEGER" property="cc_default" />
     <result column="cc_default" jdbcType="INTEGER" property="cc_default" />

+ 6 - 6
applications/document/document-server/src/main/resources/mapper/CustomeraddressMapper.xml

@@ -6,7 +6,7 @@
     <result column="ca_cuid" jdbcType="INTEGER" property="ca_cuid" />
     <result column="ca_cuid" jdbcType="INTEGER" property="ca_cuid" />
     <result column="ca_detno" jdbcType="INTEGER" property="ca_detno" />
     <result column="ca_detno" jdbcType="INTEGER" property="ca_detno" />
     <result column="ca_person" jdbcType="VARCHAR" property="ca_person" />
     <result column="ca_person" jdbcType="VARCHAR" property="ca_person" />
-    <result column="ca_phone" jdbcType="INTEGER" property="ca_phone" />
+    <result column="ca_phone" jdbcType="VARCHAR" property="ca_phone" />
     <result column="ca_default" jdbcType="INTEGER" property="ca_default" />
     <result column="ca_default" jdbcType="INTEGER" property="ca_default" />
     <result column="companyid" jdbcType="INTEGER" property="companyId" />
     <result column="companyid" jdbcType="INTEGER" property="companyId" />
     <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
     <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
@@ -99,7 +99,7 @@
         #{ca_person,jdbcType=VARCHAR},
         #{ca_person,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="ca_phone != null">
       <if test="ca_phone != null">
-        #{ca_phone,jdbcType=INTEGER},
+        #{ca_phone,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="ca_default != null">
       <if test="ca_default != null">
         #{ca_default,jdbcType=INTEGER},
         #{ca_default,jdbcType=INTEGER},
@@ -146,7 +146,7 @@
         ca_person = #{ca_person,jdbcType=VARCHAR},
         ca_person = #{ca_person,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="ca_phone != null">
       <if test="ca_phone != null">
-        ca_phone = #{ca_phone,jdbcType=INTEGER},
+        ca_phone = #{ca_phone,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="ca_default != null">
       <if test="ca_default != null">
         ca_default = #{ca_default,jdbcType=INTEGER},
         ca_default = #{ca_default,jdbcType=INTEGER},
@@ -186,7 +186,7 @@
     set ca_cuid = #{ca_cuid,jdbcType=INTEGER},
     set ca_cuid = #{ca_cuid,jdbcType=INTEGER},
       ca_detno = #{ca_detno,jdbcType=INTEGER},
       ca_detno = #{ca_detno,jdbcType=INTEGER},
       ca_person = #{ca_person,jdbcType=VARCHAR},
       ca_person = #{ca_person,jdbcType=VARCHAR},
-      ca_phone = #{ca_phone,jdbcType=INTEGER},
+      ca_phone = #{ca_phone,jdbcType=VARCHAR},
       ca_default = #{ca_default,jdbcType=INTEGER},
       ca_default = #{ca_default,jdbcType=INTEGER},
       companyid = #{companyId,jdbcType=INTEGER},
       companyid = #{companyId,jdbcType=INTEGER},
       updaterid = #{updaterId,jdbcType=INTEGER},
       updaterid = #{updaterId,jdbcType=INTEGER},
@@ -222,7 +222,7 @@
       #{item.ca_detno,jdbcType=INTEGER},
       #{item.ca_detno,jdbcType=INTEGER},
       #{item.ca_person,jdbcType=VARCHAR},
       #{item.ca_person,jdbcType=VARCHAR},
       #{item.ca_address,jdbcType=LONGVARCHAR},
       #{item.ca_address,jdbcType=LONGVARCHAR},
-      #{item.ca_phone,jdbcType=INTEGER},
+      #{item.ca_phone,jdbcType=VARCHAR},
       #{item.ca_default,jdbcType=INTEGER},
       #{item.ca_default,jdbcType=INTEGER},
       #{item.companyId,jdbcType=INTEGER},
       #{item.companyId,jdbcType=INTEGER},
       #{item.updaterId,jdbcType=INTEGER},
       #{item.updaterId,jdbcType=INTEGER},
@@ -247,7 +247,7 @@
           ca_person = #{item.ca_person,jdbcType=VARCHAR},
           ca_person = #{item.ca_person,jdbcType=VARCHAR},
         </if>
         </if>
         <if test="item.ca_phone != null">
         <if test="item.ca_phone != null">
-          ca_phone = #{item.ca_phone,jdbcType=INTEGER},
+          ca_phone = #{item.ca_phone,jdbcType=VARCHAR},
         </if>
         </if>
         <if test="item.ca_default != null">
         <if test="item.ca_default != null">
           ca_default = #{item.ca_default,jdbcType=INTEGER},
           ca_default = #{item.ca_default,jdbcType=INTEGER},

+ 108 - 5
applications/document/document-server/src/main/resources/mapper/CustomercontactMapper.xml

@@ -6,7 +6,7 @@
     <result column="cc_cuid" jdbcType="INTEGER" property="cc_cuid" />
     <result column="cc_cuid" jdbcType="INTEGER" property="cc_cuid" />
     <result column="cc_detno" jdbcType="INTEGER" property="cc_detno" />
     <result column="cc_detno" jdbcType="INTEGER" property="cc_detno" />
     <result column="cc_name" jdbcType="VARCHAR" property="cc_name" />
     <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_qq" jdbcType="VARCHAR" property="cc_qq" />
     <result column="cc_email" jdbcType="VARCHAR" property="cc_email" />
     <result column="cc_email" jdbcType="VARCHAR" property="cc_email" />
     <result column="companyid" jdbcType="INTEGER" property="companyId" />
     <result column="companyid" jdbcType="INTEGER" property="companyId" />
@@ -98,7 +98,7 @@
         #{cc_name,jdbcType=VARCHAR},
         #{cc_name,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="cc_tel != null">
       <if test="cc_tel != null">
-        #{cc_tel,jdbcType=INTEGER},
+        #{cc_tel,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="cc_qq != null">
       <if test="cc_qq != null">
         #{cc_qq,jdbcType=VARCHAR},
         #{cc_qq,jdbcType=VARCHAR},
@@ -150,7 +150,7 @@
         cc_name = #{cc_name,jdbcType=VARCHAR},
         cc_name = #{cc_name,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="cc_tel != null">
       <if test="cc_tel != null">
-        cc_tel = #{cc_tel,jdbcType=INTEGER},
+        cc_tel = #{cc_tel,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="cc_qq != null">
       <if test="cc_qq != null">
         cc_qq = #{cc_qq,jdbcType=VARCHAR},
         cc_qq = #{cc_qq,jdbcType=VARCHAR},
@@ -208,7 +208,7 @@
           #{item.cc_cuid,jdbcType=INTEGER},
           #{item.cc_cuid,jdbcType=INTEGER},
           #{item.cc_detno,jdbcType=INTEGER},
           #{item.cc_detno,jdbcType=INTEGER},
           #{item.cc_name,jdbcType=VARCHAR},
           #{item.cc_name,jdbcType=VARCHAR},
-          #{item.cc_tel,jdbcType=INTEGER},
+          #{item.cc_tel,jdbcType=VARCHAR},
           #{item.cc_qq,jdbcType=VARCHAR},
           #{item.cc_qq,jdbcType=VARCHAR},
           #{item.cc_email,jdbcType=VARCHAR},
           #{item.cc_email,jdbcType=VARCHAR},
           #{item.companyId,jdbcType=INTEGER},
           #{item.companyId,jdbcType=INTEGER},
@@ -224,6 +224,109 @@
     </foreach>
     </foreach>
   </insert>
   </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" >
   <update id="batchUpdate" parameterType="com.usoftchina.saas.document.entities.Customercontact" >
     <foreach collection="list" item="item" index="index" open="" close="" separator=";">
     <foreach collection="list" item="item" index="index" open="" close="" separator=";">
@@ -239,7 +342,7 @@
           cc_name = #{item.cc_name,jdbcType=VARCHAR},
           cc_name = #{item.cc_name,jdbcType=VARCHAR},
         </if>
         </if>
         <if test="item.cc_tel != null">
         <if test="item.cc_tel != null">
-          cc_tel = #{item.cc_tel,jdbcType=INTEGER},
+          cc_tel = #{item.cc_tel,jdbcType=VARCHAR},
         </if>
         </if>
         <if test="item.cc_qq != null">
         <if test="item.cc_qq != null">
           cc_qq = #{item.cc_qq,jdbcType=VARCHAR},
           cc_qq = #{item.cc_qq,jdbcType=VARCHAR},