| 
															
																@@ -20,6 +20,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="customer_area" property="customerArea" jdbcType="VARCHAR" /> 
															 | 
															
															 | 
															
																     <result column="customer_area" property="customerArea" jdbcType="VARCHAR" /> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="customer_create_time" property="customerCreateTime" jdbcType="TIMESTAMP" /> 
															 | 
															
															 | 
															
																     <result column="customer_create_time" property="customerCreateTime" jdbcType="TIMESTAMP" /> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="customer_update_time" property="customerUpdateTime" jdbcType="TIMESTAMP" /> 
															 | 
															
															 | 
															
																     <result column="customer_update_time" property="customerUpdateTime" jdbcType="TIMESTAMP" /> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+    <result column="customer_desc" property="customerDesc" jdbcType="VARCHAR" /> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   </resultMap> 
															 | 
															
															 | 
															
																   </resultMap> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   <sql id="Base_Column_List" > 
															 | 
															
															 | 
															
																   <sql id="Base_Column_List" > 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     customer_id, admin_id, question_id, company_id, store_id, customer_source_type, customer_source,  
															 | 
															
															 | 
															
																     customer_id, admin_id, question_id, company_id, store_id, customer_source_type, customer_source,  
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -49,7 +50,8 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       t.customer_area, 
															 | 
															
															 | 
															
																       t.customer_area, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       t.customer_create_time, 
															 | 
															
															 | 
															
																       t.customer_create_time, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       t.customer_update_time, 
															 | 
															
															 | 
															
																       t.customer_update_time, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-      t.customer_question_title 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+      t.customer_question_title, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+      t.customer_desc 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     from tb_rst_customer_info t 
															 | 
															
															 | 
															
																     from tb_rst_customer_info t 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     where t.customer_id = #{customerId,jdbcType=INTEGER} 
															 | 
															
															 | 
															
																     where t.customer_id = #{customerId,jdbcType=INTEGER} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   </select> 
															 | 
															
															 | 
															
																   </select> 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -82,6 +84,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       c.customer_is_solve, 
															 | 
															
															 | 
															
																       c.customer_is_solve, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       c.customer_is_visit, 
															 | 
															
															 | 
															
																       c.customer_is_visit, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       c.customer_create_time, 
															 | 
															
															 | 
															
																       c.customer_create_time, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+      c.customer_desc, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       v.visit_status, 
															 | 
															
															 | 
															
																       v.visit_status, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       v.visit_complete_date, 
															 | 
															
															 | 
															
																       v.visit_complete_date, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       v.visit_name, 
															 | 
															
															 | 
															
																       v.visit_name, 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -234,6 +237,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="customer_is_solve" property="customerIsSolve"/> 
															 | 
															
															 | 
															
																     <result column="customer_is_solve" property="customerIsSolve"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="customer_is_visit" property="customerIsVisit"/> 
															 | 
															
															 | 
															
																     <result column="customer_is_visit" property="customerIsVisit"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="customer_create_time" property="customerCreateTime"/> 
															 | 
															
															 | 
															
																     <result column="customer_create_time" property="customerCreateTime"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+    <result column="customer_desc" property="customerDesc"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="visit_status" property="visitStatus"/> 
															 | 
															
															 | 
															
																     <result column="visit_status" property="visitStatus"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="visit_complete_date" property="visitCompleteDate"/> 
															 | 
															
															 | 
															
																     <result column="visit_complete_date" property="visitCompleteDate"/> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <result column="visit_name" property="visitName"/> 
															 | 
															
															 | 
															
																     <result column="visit_name" property="visitName"/> 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -262,13 +266,13 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       company_id, store_id, customer_source_type,  
															 | 
															
															 | 
															
																       company_id, store_id, customer_source_type,  
															 | 
														
													
												
													
														
															| 
															 | 
															
																       customer_source, customer_counsel_type, customer_name,  
															 | 
															
															 | 
															
																       customer_source, customer_counsel_type, customer_name,  
															 | 
														
													
												
													
														
															| 
															 | 
															
																       customer_tel,customer_wechat_name, customer_is_solve, customer_is_visit, 
															 | 
															
															 | 
															
																       customer_tel,customer_wechat_name, customer_is_solve, customer_is_visit, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-      customer_in_TDS, customer_out_TDS, customer_area, type_id 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+      customer_in_TDS, customer_out_TDS, customer_area, type_id, customer_desc 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       ) 
															 | 
															
															 | 
															
																       ) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     values (#{customerId,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{questionId,jdbcType=INTEGER},  
															 | 
															
															 | 
															
																     values (#{customerId,jdbcType=INTEGER}, #{adminId,jdbcType=INTEGER}, #{questionId,jdbcType=INTEGER},  
															 | 
														
													
												
													
														
															| 
															 | 
															
																       #{companyId,jdbcType=INTEGER}, #{storeId,jdbcType=INTEGER}, #{customerSourceType,jdbcType=TINYINT},  
															 | 
															
															 | 
															
																       #{companyId,jdbcType=INTEGER}, #{storeId,jdbcType=INTEGER}, #{customerSourceType,jdbcType=TINYINT},  
															 | 
														
													
												
													
														
															| 
															 | 
															
																       #{customerSource,jdbcType=VARCHAR}, #{customerCounselType,jdbcType=BIT}, #{customerName,jdbcType=VARCHAR},  
															 | 
															
															 | 
															
																       #{customerSource,jdbcType=VARCHAR}, #{customerCounselType,jdbcType=BIT}, #{customerName,jdbcType=VARCHAR},  
															 | 
														
													
												
													
														
															| 
															 | 
															
																       #{customerTel,jdbcType=VARCHAR},#{customerWechatName,jdbcType=VARCHAR}, #{customerIsSolve,jdbcType=TINYINT}, #{customerIsVisit,jdbcType=VARCHAR}, 
															 | 
															
															 | 
															
																       #{customerTel,jdbcType=VARCHAR},#{customerWechatName,jdbcType=VARCHAR}, #{customerIsSolve,jdbcType=TINYINT}, #{customerIsVisit,jdbcType=VARCHAR}, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-      #{customerInTDS,jdbcType=INTEGER}, #{customerOutTDS,jdbcType=INTEGER}, #{customerArea,jdbcType=VARCHAR},#{typeId} 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+      #{customerInTDS,jdbcType=INTEGER}, #{customerOutTDS,jdbcType=INTEGER}, #{customerArea,jdbcType=VARCHAR},#{typeId},#{customerDesc} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       ) 
															 | 
															
															 | 
															
																       ) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   </insert> 
															 | 
															
															 | 
															
																   </insert> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -330,6 +334,9 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       <if test="typeId != null" > 
															 | 
															
															 | 
															
																       <if test="typeId != null" > 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         type_id = #{typeId} 
															 | 
															
															 | 
															
																         type_id = #{typeId} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																       </if> 
															 | 
															
															 | 
															
																       </if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+      <if test="customerDesc != null" > 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        customer_desc = #{customerDesc} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+      </if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     </set> 
															 | 
															
															 | 
															
																     </set> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     where customer_id = #{customerId} 
															 | 
															
															 | 
															
																     where customer_id = #{customerId} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																   </update> 
															 | 
															
															 | 
															
																   </update> 
															 |