|
@@ -56,7 +56,9 @@
|
|
|
t.customer_question_title,
|
|
|
t.customer_desc,
|
|
|
t.customer_out_damaged,
|
|
|
- t.customer_secondary_customer
|
|
|
+ t.customer_secondary_customer,
|
|
|
+ t.customer_last_id,
|
|
|
+ t.customer_initial_id
|
|
|
from tb_rst_customer_info t
|
|
|
where t.customer_id = #{customerId,jdbcType=INTEGER}
|
|
|
</select>
|
|
@@ -92,6 +94,8 @@
|
|
|
c.customer_desc,
|
|
|
c.customer_out_damaged,
|
|
|
c.customer_secondary_customer,
|
|
|
+ c.customer_last_id,
|
|
|
+ c.customer_initial_id,
|
|
|
v.visit_status,
|
|
|
v.visit_complete_date,
|
|
|
v.visit_name,
|
|
@@ -255,6 +259,8 @@
|
|
|
<result column="customer_desc" property="customerDesc"/>
|
|
|
<result column="customer_out_damaged" property="customerOutDamaged"/>
|
|
|
<result column="customer_secondary_customer" property="customerSecondaryCustomer"/>
|
|
|
+ <result column="customer_last_id" property="customerLastId"/>
|
|
|
+ <result column="customer_initial_id " property="customerInitialId"/>
|
|
|
<result column="visit_status" property="visitStatus"/>
|
|
|
<result column="visit_complete_date" property="visitCompleteDate"/>
|
|
|
<result column="visit_name" property="visitName"/>
|
|
@@ -283,13 +289,14 @@
|
|
|
company_id, store_id, customer_source_type,
|
|
|
customer_source, customer_counsel_type, customer_name,
|
|
|
customer_tel,customer_wechat_name, customer_is_solve, customer_is_visit,
|
|
|
- customer_in_TDS, customer_out_TDS, customer_area, type_id, customer_desc, customer_out_damaged, customer_secondary_customer
|
|
|
+ customer_in_TDS, customer_out_TDS, customer_area, type_id, customer_desc, customer_out_damaged, customer_secondary_customer, customer_last_id, customer_initial_id
|
|
|
)
|
|
|
values (#{customerId,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{questionId,jdbcType=INTEGER},
|
|
|
#{companyId,jdbcType=INTEGER}, #{storeId,jdbcType=INTEGER}, #{customerSourceType,jdbcType=TINYINT},
|
|
|
#{customerSource,jdbcType=VARCHAR}, #{customerCounselType,jdbcType=BIT}, #{customerName,jdbcType=VARCHAR},
|
|
|
#{customerTel,jdbcType=VARCHAR},#{customerWechatName,jdbcType=VARCHAR}, #{customerIsSolve,jdbcType=TINYINT}, #{customerIsVisit,jdbcType=VARCHAR},
|
|
|
#{customerInTDS,jdbcType=INTEGER}, #{customerOutTDS,jdbcType=INTEGER}, #{customerArea,jdbcType=VARCHAR},#{typeId},#{customerDesc},#{customerOutDamaged},#{customerSecondaryCustomer}
|
|
|
+ ,#{customerLastId},#{customerInitialId}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -358,7 +365,13 @@
|
|
|
customer_out_damaged = #{customerOutDamaged},
|
|
|
</if>
|
|
|
<if test="customerSecondaryCustomer != null" >
|
|
|
- customer_secondary_customer = #{customerSecondaryCustomer}
|
|
|
+ customer_secondary_customer = #{customerSecondaryCustomer},
|
|
|
+ </if>
|
|
|
+ <if test="customerLastId != null" >
|
|
|
+ customer_last_id = #{customerLastId},
|
|
|
+ </if>
|
|
|
+ <if test="customerInitialId != null" >
|
|
|
+ customer_initial_id = #{customerInitialId}
|
|
|
</if>
|
|
|
</set>
|
|
|
where customer_id = #{customerId}
|
|
@@ -418,6 +431,8 @@
|
|
|
c.customer_desc,
|
|
|
c.customer_out_damaged,
|
|
|
c.customer_secondary_customer,
|
|
|
+ c.customer_last_id,
|
|
|
+ c.customer_initial_id,
|
|
|
v.visit_status,
|
|
|
v.visit_complete_date,
|
|
|
v.visit_name,
|