Browse Source

Merge branch 'dev' of ssh://10.10.100.21/source/saas-platform into dev

zhuth 7 years ago
parent
commit
e40109ebff

+ 2 - 0
applications/document/document-dto/src/main/java/com.usoftchina.saas.document.dto/CustomerDTO.java

@@ -14,6 +14,8 @@ import java.util.Date;
 public class CustomerDTO extends CommonBaseDTO implements Serializable {
 public class CustomerDTO extends CommonBaseDTO implements Serializable {
     private String cu_code;
     private String cu_code;
 
 
+    private String cu_shortname;
+
     private String cu_name;
     private String cu_name;
 
 
     private String cu_uu;
     private String cu_uu;

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

@@ -10,6 +10,8 @@ public class Customer extends CommonBaseEntity implements Serializable {
 
 
     private String cu_code;
     private String cu_code;
 
 
+    private String cu_shortname;
+
     private String cu_name;
     private String cu_name;
 
 
     private String cu_uu;
     private String cu_uu;

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

@@ -15,6 +15,8 @@ public class CustomerList extends CommonBaseEntity{
 //customer
 //customer
     private String cu_code;
     private String cu_code;
 
 
+    private String cu_shortname;
+
     private String cu_name;
     private String cu_name;
 
 
     private String cu_uu;
     private String cu_uu;

+ 0 - 2
applications/document/document-server/src/main/java/com/usoftchina/saas/document/mapper/CustomerMapper.java

@@ -17,8 +17,6 @@ public interface CustomerMapper extends CommonBaseMapper<Customer> {
 
 
     int updateByPrimaryKeySelective(Customer record);
     int updateByPrimaryKeySelective(Customer record);
 
 
-    int updateByPrimaryKey(Customer record);
-
     String selectCodeById(Long id);
     String selectCodeById(Long id);
 
 
     Integer validateCodeWhenInsert(@Param("code") String code, @Param("companyId") Long companyId);
     Integer validateCodeWhenInsert(@Param("code") String code, @Param("companyId") Long companyId);

+ 1 - 0
applications/document/document-server/src/main/resources/mapper/CustomerListMapper.xml

@@ -4,6 +4,7 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.CustomerList">
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.CustomerList">
     <id column="cu_id" jdbcType="INTEGER" property="id" />
     <id column="cu_id" jdbcType="INTEGER" property="id" />
     <result column="cu_code" jdbcType="VARCHAR" property="cu_code" />
     <result column="cu_code" jdbcType="VARCHAR" property="cu_code" />
+    <result column="cu_shortname" jdbcType="VARCHAR" property="cu_shortname"/>
     <result column="cu_name" jdbcType="VARCHAR" property="cu_name" />
     <result column="cu_name" jdbcType="VARCHAR" property="cu_name" />
     <result column="cu_uu" jdbcType="VARCHAR" property="cu_uu" />
     <result column="cu_uu" jdbcType="VARCHAR" property="cu_uu" />
     <result column="cu_type" jdbcType="VARCHAR" property="cu_type" />
     <result column="cu_type" jdbcType="VARCHAR" property="cu_type" />

+ 11 - 32
applications/document/document-server/src/main/resources/mapper/CustomerMapper.xml

@@ -4,6 +4,7 @@
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Customer">
   <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Customer">
     <id column="cu_id" jdbcType="INTEGER" property="id" />
     <id column="cu_id" jdbcType="INTEGER" property="id" />
     <result column="cu_code" jdbcType="VARCHAR" property="cu_code" />
     <result column="cu_code" jdbcType="VARCHAR" property="cu_code" />
+    <result column="cu_shortname" jdbcType="VARCHAR" property="cu_shortname" />
     <result column="cu_name" jdbcType="VARCHAR" property="cu_name" />
     <result column="cu_name" jdbcType="VARCHAR" property="cu_name" />
     <result column="cu_uu" jdbcType="VARCHAR" property="cu_uu" />
     <result column="cu_uu" jdbcType="VARCHAR" property="cu_uu" />
     <result column="cu_type" jdbcType="VARCHAR" property="cu_type" />
     <result column="cu_type" jdbcType="VARCHAR" property="cu_type" />
@@ -32,7 +33,7 @@
     <result column="cu_remark" jdbcType="VARCHAR" property="cu_remark" />
     <result column="cu_remark" jdbcType="VARCHAR" property="cu_remark" />
   </resultMap>
   </resultMap>
   <sql id="Base_Column_List">
   <sql id="Base_Column_List">
-    cu_id, cu_code, cu_name, cu_uu, cu_type, cu_begindate, cu_beginaramount, cu_beginprerecamount, 
+    cu_id, cu_code,cu_shortname, cu_name, cu_uu, cu_type, cu_begindate, cu_beginaramount, cu_beginprerecamount,
     cu_promisedays, cu_taxrate, cu_sellerid, cu_sellercode, cu_sellername, cu_credit, 
     cu_promisedays, cu_taxrate, cu_sellerid, cu_sellercode, cu_sellername, cu_credit, 
     cu_status, cu_statuscode, companyid,
     cu_status, cu_statuscode, companyid,
     updaterid, updatetime, cu_text1, cu_text2, cu_text3, cu_text4, cu_text5, cu_leftamount, 
     updaterid, updatetime, cu_text1, cu_text2, cu_text3, cu_text4, cu_text5, cu_leftamount, 
@@ -58,6 +59,9 @@
       <if test="cu_code != null">
       <if test="cu_code != null">
         cu_code,
         cu_code,
       </if>
       </if>
+      <if test="cu_shortname != null">
+        cu_shortname,
+      </if>
       <if test="cu_name != null">
       <if test="cu_name != null">
         cu_name,
         cu_name,
       </if>
       </if>
@@ -151,6 +155,9 @@
       <if test="cu_code != null">
       <if test="cu_code != null">
         #{cu_code,jdbcType=VARCHAR},
         #{cu_code,jdbcType=VARCHAR},
       </if>
       </if>
+      <if test="cu_shortname !=null">
+        #{cu_shortname,jdbcType=VARCHAR}
+      </if>
       <if test="cu_name != null">
       <if test="cu_name != null">
         #{cu_name,jdbcType=VARCHAR},
         #{cu_name,jdbcType=VARCHAR},
       </if>
       </if>
@@ -246,6 +253,9 @@
       <if test="cu_code != null">
       <if test="cu_code != null">
         cu_code = #{cu_code,jdbcType=VARCHAR},
         cu_code = #{cu_code,jdbcType=VARCHAR},
       </if>
       </if>
+      <if test="cu_shortname !=null">
+        cu_shortname = #{cu_shortname,jdbcType=VARCHAR},
+      </if>
       <if test="cu_name != null">
       <if test="cu_name != null">
         cu_name = #{cu_name,jdbcType=VARCHAR},
         cu_name = #{cu_name,jdbcType=VARCHAR},
       </if>
       </if>
@@ -327,37 +337,6 @@
     </set>
     </set>
     where cu_id = #{id,jdbcType=INTEGER}
     where cu_id = #{id,jdbcType=INTEGER}
   </update>
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Customer">
-    update customer
-    set cu_code = #{cu_code,jdbcType=VARCHAR},
-      cu_name = #{cu_name,jdbcType=VARCHAR},
-      cu_uu = #{cu_uu,jdbcType=VARCHAR},
-      cu_type = #{cu_type,jdbcType=VARCHAR},
-      cu_begindate = #{cu_begindate,jdbcType=TIMESTAMP},
-      cu_beginaramount = #{cu_beginaramount,jdbcType=DOUBLE},
-      cu_beginprerecamount = #{cu_beginprerecamount,jdbcType=DOUBLE},
-      cu_promisedays = #{cu_promisedays,jdbcType=DOUBLE},
-      cu_taxrate = #{cu_taxrate,jdbcType=DOUBLE},
-      cu_sellerid = #{cu_sellerid,jdbcType=INTEGER},
-      cu_sellercode = #{cu_sellercode,jdbcType=VARCHAR},
-      cu_sellername = #{cu_sellername,jdbcType=VARCHAR},
-      cu_credit = #{cu_credit,jdbcType=DOUBLE},
-      cu_status = #{cu_status,jdbcType=VARCHAR},
-      cu_statuscode = #{cu_statuscode,jdbcType=VARCHAR},
-      companyid = #{companyid,jdbcType=INTEGER},
-      updaterid = #{updaterid,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=TIMESTAMP},
-      cu_text1 = #{cu_text1,jdbcType=VARCHAR},
-      cu_text2 = #{cu_text2,jdbcType=VARCHAR},
-      cu_text3 = #{cu_text3,jdbcType=VARCHAR},
-      cu_text4 = #{cu_text4,jdbcType=VARCHAR},
-      cu_text5 = #{cu_text5,jdbcType=VARCHAR},
-      cu_leftamount = #{cu_leftamount,jdbcType=DOUBLE},
-      cu_recamount = #{cu_recamount,jdbcType=DOUBLE},
-      cu_preamount = #{cu_preamount,jdbcType=DOUBLE},
-      cu_remark = #{cu_remark,jdbcType=VARCHAR}
-    where cu_id = #{id,jdbcType=INTEGER}
-  </update>
 
 
   <select id="validateCodeWhenInsert" resultType="int">
   <select id="validateCodeWhenInsert" resultType="int">
     select count(1) from customer where cu_code = #{code} and companyId =#{companyId}
     select count(1) from customer where cu_code = #{code} and companyId =#{companyId}

+ 4 - 0
frontend/saas-web/app/view/document/customer/BasePanel.js

@@ -81,6 +81,10 @@ Ext.define('saas.view.document.customer.BasePanel', {
             text : "客户编号", 
             text : "客户编号", 
             width : 150.0, 
             width : 150.0, 
             dataIndex : "cu_code"
             dataIndex : "cu_code"
+        },{
+            text : "客户简称", 
+            width : 150.0, 
+            dataIndex : "cu_shortname"
         }, 
         }, 
         {
         {
             text : "客户名称", 
             text : "客户名称", 

+ 7 - 1
frontend/saas-web/app/view/document/customer/FormPanel.js

@@ -34,12 +34,18 @@ Ext.define('saas.view.document.customer.FormPanel', {
         fieldLabel: '客户编号',
         fieldLabel: '客户编号',
         allowBlank: false,
         allowBlank: false,
         columnWidth: 0.25
         columnWidth: 0.25
+    },{
+        xtype: 'textfield',
+        name: 'cu_shortname',
+        fieldLabel: '客户简称',
+        allowBlank: true,
+        columnWidth: 0.25
     },{
     },{
         xtype: 'textfield',
         xtype: 'textfield',
         name: 'cu_name',
         name: 'cu_name',
         fieldLabel: '客户名称',
         fieldLabel: '客户名称',
         allowBlank: false,
         allowBlank: false,
-        columnWidth: 0.5
+        columnWidth: 0.25
     },{
     },{
         editable:false,
         editable:false,
         xtype : "remotecombo", 
         xtype : "remotecombo",