Browse Source

客户档案跟进修改

yzc 2 years ago
parent
commit
dd8adc5b26

+ 3 - 0
hx-customer/src/main/java/com/fjhx/customer/mapper/customer/CustomerMapper.java

@@ -53,6 +53,9 @@ public interface CustomerMapper extends BaseMapper<Customer> {
      */
     void customerAllocation(CustomerDto dto);
 
+    /**
+     * 跟进记录获取
+     */
     List<CustomerFollowRecordsVo> getFollowUp(@Param("id") Long id, @Param("tenantId") String tenantId);
 
 }

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

@@ -77,7 +77,7 @@
                       create_time `date`,
                       NULL AS     contractCode,
                       10   AS     type,
-                      NULL AS     remark
+                      NULL AS     content
                FROM bytesailing_sale.sale_quotation sq
                WHERE sq.buy_corporation_id = #{id}
                  and sq.tenant_id = #{tenantId}
@@ -88,18 +88,18 @@
                       create_time `date`,
                       CODE AS     contractCode,
                       20   AS     type,
-                      NULL AS     remark
+                      NULL AS     content
                FROM bytesailing_sale.contract c
                WHERE c.buy_corporation_id = #{id}
                  and c.tenant_id = #{tenantId}
                  and c.del_flag = 0)
               UNION
               (SELECT id,
-                      NULL    AS amount,
+                      NULL AS amount,
                       `date`,
-                      NULL    AS contractCode,
-                      30      AS type,
-                      content AS remark
+                      NULL AS contractCode,
+                      30   AS type,
+                      content
                FROM customer_follow_records cfr
                WHERE cfr.customer_id = #{id})) t1
         ORDER BY t1.date DESC LIMIT 3