瀏覽代碼

客户跟进添加报价单code

yzc 1 年之前
父節點
當前提交
51e3fec59a

+ 5 - 0
hx-customer/src/main/java/com/fjhx/customer/entity/customer/vo/CustomerFollowRecordsVo.java

@@ -44,4 +44,9 @@ public class CustomerFollowRecordsVo extends CustomerFollowRecords {
      * 跟进人名称
      */
     private String followUpUserName;
+
+    /**
+     * 报价单code
+     */
+    private String code;
 }

+ 3 - 0
hx-customer/src/main/resources/mapper/customer/CustomerFollowRecordsMapper.xml

@@ -7,6 +7,7 @@
                       amount,
                       create_time `date`,
                       NULL AS     contractCode,
+                      code,
                       10   AS     type,
                       NULL AS     content,
                       create_user
@@ -19,6 +20,7 @@
                       amount,
                       create_time `date`,
                       CODE AS     contractCode,
+                      null as     code,
                       20   AS     type,
                       NULL AS     content,
                       create_user
@@ -31,6 +33,7 @@
                       NULL AS amount,
                       `date`,
                       NULL AS contractCode,
+                      null as code,
                       30   AS type,
                       content,
                       create_user

+ 3 - 0
hx-customer/src/main/resources/mapper/customer/CustomerMapper.xml

@@ -76,6 +76,7 @@
                       amount,
                       create_time `date`,
                       NULL AS     contractCode,
+                      code,
                       10   AS     type,
                       NULL AS     content,
                       create_user
@@ -88,6 +89,7 @@
                       amount,
                       create_time `date`,
                       CODE AS     contractCode,
+                      null as     code,
                       20   AS     type,
                       NULL AS     content,
                       create_user
@@ -101,6 +103,7 @@
                       NULL AS amount,
                       `date`,
                       NULL AS contractCode,
+                      null as code,
                       30   AS type,
                       content,
                       create_user

+ 3 - 1
hx-sale/src/main/resources/mapper/sale/SaleQuotationMapper.xml

@@ -64,6 +64,7 @@
                       amount,
                       create_time,
                       NULL AS contractCode,
+                      code,
                       10   as type,
                       NULL AS remark
                FROM sale_quotation sq
@@ -73,6 +74,7 @@
                       amount,
                       create_time,
                       code as contractCode,
+                      null as code,
                       20   as type,
                       NULL AS remark
                FROM contract c
@@ -80,7 +82,7 @@
                  and c.buy_corporation_id = #{id})
               UNION
               (SELECT id,
-                      NULL AS amount, date AS create_time, NULL AS contractCode, 30 AS type, content AS remark
+                      NULL AS amount, date AS create_time, NULL AS contractCode, null as code, 30 AS type, content AS remark
                FROM
                    bytesailing_customer.customer_follow_records cfr
                where cfr.customer_id = #{id}