select id, customer_code, customer_name, customer_name_en, phone, mobile, customer_type, settled_type, user_type, company, dept_id, avatar, sex, invitation_info, login_ip, login_date, nick_name, union_id, openid, monthly_pay_code, user_name, password, owner_site, country, province, city, county, town, address, email, send_country, send_province, send_city, send_county, send_town, post_code, status, real_name, id_no, payee, salesmen, bl_open_oms, bl_sms, op_emp_code, order_num, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_customer_user
insert into emis_customer_user
customer_code,
customer_name,
customer_name_en,
phone,
mobile,
customer_type,
settled_type,
user_type,
company,
dept_id,
avatar,
sex,
invitation_info,
login_ip,
login_date,
nick_name,
union_id,
openid,
monthly_pay_code,
user_name,
password,
owner_site,
country,
province,
city,
county,
town,
address,
email,
send_country,
send_province,
send_city,
send_county,
send_town,
post_code,
status,
real_name,
id_no,
payee,
salesmen,
bl_open_oms,
bl_sms,
op_emp_code,
order_num,
remark,
del_flag,
create_by,
create_time,
update_by,
update_time,
create_site,
update_site,
#{customerCode},
#{customerName},
#{customerNameEn},
#{phone},
#{mobile},
#{customerType},
#{settledType},
#{userType},
#{company},
#{deptId},
#{avatar},
#{sex},
#{invitationInfo},
#{loginIp},
#{loginDate},
#{nickName},
#{unionId},
#{openid},
#{monthlyPayCode},
#{userName},
#{password},
#{ownerSite},
#{country},
#{province},
#{city},
#{county},
#{town},
#{address},
#{email},
#{sendCountry},
#{sendProvince},
#{sendCity},
#{sendCounty},
#{sendTown},
#{postCode},
#{status},
#{realName},
#{idNo},
#{payee},
#{salesmen},
#{blOpenOms},
#{blSms},
#{opEmpCode},
#{orderNum},
#{remark},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{createSite},
#{updateSite},
update emis_customer_user
customer_code = #{customerCode},
customer_name = #{customerName},
customer_name_en = #{customerNameEn},
phone = #{phone},
mobile = #{mobile},
customer_type = #{customerType},
settled_type = #{settledType},
user_type = #{userType},
company = #{company},
dept_id = #{deptId},
avatar = #{avatar},
sex = #{sex},
invitation_info = #{invitationInfo},
login_ip = #{loginIp},
login_date = #{loginDate},
nick_name = #{nickName},
union_id = #{unionId},
openid = #{openid},
monthly_pay_code = #{monthlyPayCode},
user_name = #{userName},
password = #{password},
owner_site = #{ownerSite},
country = #{country},
province = #{province},
city = #{city},
county = #{county},
town = #{town},
address = #{address},
email = #{email},
send_country = #{sendCountry},
send_province = #{sendProvince},
send_city = #{sendCity},
send_county = #{sendCounty},
send_town = #{sendTown},
post_code = #{postCode},
status = #{status},
real_name = #{realName},
id_no = #{idNo},
payee = #{payee},
salesmen = #{salesmen},
bl_open_oms = #{blOpenOms},
bl_sms = #{blSms},
op_emp_code = #{opEmpCode},
order_num = #{orderNum},
remark = #{remark},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
create_site = #{createSite},
update_site = #{updateSite},
where id = #{id}
update emis_customer_user set del_flag='1' where id = #{id}
update emis_customer_user set del_flag='1' where id in
#{id}