|
@@ -21,11 +21,14 @@
|
|
|
<result column="customer_create_time" property="customerCreateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="customer_update_time" property="customerUpdateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="customer_desc" property="customerDesc" jdbcType="VARCHAR" />
|
|
|
+ <result column="customer_out_damaged" property="customerOutDamaged" jdbcType="INTEGER" />
|
|
|
+ <result column="customer_secondary_customer" property="customerSecondaryCustomer" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
customer_id, admin_id, question_id, 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, customer_create_time, customer_update_time
|
|
|
+ customer_in_TDS, customer_out_TDS, customer_area, customer_create_time, customer_update_time,customer_desc,
|
|
|
+ customer_out_damaged,customer_secondary_customer
|
|
|
</sql>
|
|
|
|
|
|
<!-- 根据id获取客诉信息 -->
|
|
@@ -51,7 +54,9 @@
|
|
|
t.customer_create_time,
|
|
|
t.customer_update_time,
|
|
|
t.customer_question_title,
|
|
|
- t.customer_desc
|
|
|
+ t.customer_desc,
|
|
|
+ t.customer_out_damaged,
|
|
|
+ t.customer_secondary_customer
|
|
|
from tb_rst_customer_info t
|
|
|
where t.customer_id = #{customerId,jdbcType=INTEGER}
|
|
|
</select>
|
|
@@ -85,6 +90,8 @@
|
|
|
c.customer_is_visit,
|
|
|
c.customer_create_time,
|
|
|
c.customer_desc,
|
|
|
+ c.customer_out_damaged,
|
|
|
+ c.customer_secondary_customer,
|
|
|
v.visit_status,
|
|
|
v.visit_complete_date,
|
|
|
v.visit_name,
|
|
@@ -240,6 +247,8 @@
|
|
|
<result column="customer_is_visit" property="customerIsVisit"/>
|
|
|
<result column="customer_create_time" property="customerCreateTime"/>
|
|
|
<result column="customer_desc" property="customerDesc"/>
|
|
|
+ <result column="customer_out_damaged" property="customerOutDamaged"/>
|
|
|
+ <result column="customer_secondary_customer" property="customerSecondaryCustomer"/>
|
|
|
<result column="visit_status" property="visitStatus"/>
|
|
|
<result column="visit_complete_date" property="visitCompleteDate"/>
|
|
|
<result column="visit_name" property="visitName"/>
|
|
@@ -268,13 +277,13 @@
|
|
|
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_in_TDS, customer_out_TDS, customer_area, type_id, customer_desc, customer_out_damaged, customer_secondary_customer
|
|
|
)
|
|
|
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}
|
|
|
+ #{customerInTDS,jdbcType=INTEGER}, #{customerOutTDS,jdbcType=INTEGER}, #{customerArea,jdbcType=VARCHAR},#{typeId},#{customerDesc},#{customerOutDamaged},#{customerSecondaryCustomer}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -337,7 +346,13 @@
|
|
|
type_id = #{typeId},
|
|
|
</if>
|
|
|
<if test="customerDesc != null" >
|
|
|
- customer_desc = #{customerDesc}
|
|
|
+ customer_desc = #{customerDesc},
|
|
|
+ </if>
|
|
|
+ <if test="customerOutDamaged != null" >
|
|
|
+ customer_out_damaged = #{customerOutDamaged},
|
|
|
+ </if>
|
|
|
+ <if test="customerSecondaryCustomer != null" >
|
|
|
+ customer_secondary_customer = #{customerSecondaryCustomer}
|
|
|
</if>
|
|
|
</set>
|
|
|
where customer_id = #{customerId}
|