select * from ylrz_his_scrm.crm_customer
insert into crm_customer
customer_code,
customer_name,
mobile,
sex,
weixin,
remark,
user_id,
create_user_id,
receive_user_id,
customer_user_id,
address,
city_ids,
location,
detail_address,
lng,
lat,
create_time,
update_time,
status,
is_receive,
dept_id,
is_del,
customer_type,
receive_time,
pool_time,
company_id,
is_line,
source,
tags,
ext_json,
visit_status,
register_date,
register_link_url,
register_desc,
register_submit_time,
is_pool,
register_type,
pay_money,
buy_count,
source_code,
push_time,
push_code,
visit_time,
traffic_source,
import_type,
third_account,
clue_id,
qw_name,
platform_name,
goods_name,
goods_specification,
shop_name,
trace_id,
intention,
#{customerCode},
#{customerName},
#{mobile},
#{sex},
#{weixin},
#{remark},
#{userId},
#{createUserId},
#{receiveUserId},
#{customerUserId},
#{address},
#{cityIds},
#{location},
#{detailAddress},
#{lng},
#{lat},
#{createTime},
#{updateTime},
#{status},
#{isReceive},
#{deptId},
#{isDel},
#{customerType},
#{receiveTime},
#{poolTime},
#{companyId},
#{isLine},
#{source},
#{tags},
#{extJson},
#{visitStatus},
#{registerDate},
#{registerLinkUrl},
#{registerDesc},
#{registerSubmitTime},
#{isPool},
#{registerType},
#{payMoney},
#{buyCount},
#{sourceCode},
#{pushTime},
#{pushCode},
#{visitTime},
#{trafficSource},
#{importType},
#{thirdAccount},
#{clueId},
#{qwName},
#{platformName},
#{goodsName},
#{goodsSpecification},
#{shopName},
#{traceId},
#{intention},
INSERT INTO crm_customer_info
customer_id,
name,
sex,
age,
address,
habits,
illness_time,
body,
study,
course_status,
course,
family,
family_disease,
disease,
is_line,
talk,
user_type,
is_self,
intensify,
is_cold,
cold_body,
sweat,
other,
toilet,
eat,
menses,
medicine,
constitution,
recommend_medicine,
consult_product,
is_buy,
buy_product,
create_time,
update_time,
reply_time,
product_talk,
disease_talk,
channel_type,
#{customerId},
#{name},
#{sex},
#{age},
#{address},
#{habits},
#{illnessTime},
#{body},
#{study},
#{courseStatus},
#{course},
#{family},
#{familyDisease},
#{disease},
#{isLine},
#{talk},
#{userType},
#{isSelf},
#{intensify},
#{isCold},
#{coldBody},
#{sweat},
#{other},
#{toilet},
#{eat},
#{menses},
#{medicine},
#{constitution},
#{recommendMedicine},
#{consultProduct},
#{isBuy},
#{buyProduct},
#{createTime},
#{updateTime},
#{replyTime},
#{productTalk},
#{diseaseTalk},
#{channelType},
update crm_customer
customer_code = #{customerCode},
customer_name = #{customerName},
mobile = #{mobile},
sex = #{sex},
weixin = #{weixin},
remark = #{remark},
user_id = #{userId},
create_user_id = #{createUserId},
receive_user_id = #{receiveUserId},
customer_user_id = #{customerUserId},
address = #{address},
city_ids = #{cityIds},
location = #{location},
detail_address = #{detailAddress},
lng = #{lng},
lat = #{lat},
create_time = #{createTime},
update_time = #{updateTime},
status = #{status},
is_receive = #{isReceive},
dept_id = #{deptId},
is_del = #{isDel},
customer_type = #{customerType},
receive_time = #{receiveTime},
pool_time = #{poolTime},
company_id = #{companyId},
is_line = #{isLine},
source = #{source},
tags = #{tags},
ext_json = #{extJson},
visit_status = #{visitStatus},
register_date = #{registerDate},
register_link_url = #{registerLinkUrl},
register_desc = #{registerDesc},
register_submit_time = #{registerSubmitTime},
is_pool = #{isPool},
register_type = #{registerType},
pay_money = #{payMoney},
buy_count = #{buyCount},
source_code = #{sourceCode},
push_time = #{pushTime},
push_code = #{pushCode},
visit_time = #{visitTime},
traffic_source = #{trafficSource},
import_type = #{importType},
third_account = #{thirdAccount},
clue_id = #{clueId},
qw_name = #{qwName},
platform_name = #{platformName},
goods_name = #{goodsName},
goods_specification = #{goodsSpecification},
shop_name = #{shopName},
where customer_id = #{customerId}
update crm_customer_info
ai_chat_record = #{aiChatRecord},
where customer_id = #{customerId}
delete from crm_customer where customer_id = #{customerId}
delete from crm_customer where customer_id in
#{customerId}