select id, customer_code, customer_name, customer_name_en, simple_name, contact, phone, mobile, customer_type, settled_type, user_type, company, lic_no, dept_id, avatar, sex, invitation_info, login_ip, login_date, nick_name, union_id, openid, monthly_pay_code, user_name, password, owner_site, biz_site, biz_site_name, country, province, city, county, town, address, email, post_code, real_name, id_no, payee, salesmen, data_from, bl_open_oms, bl_sms, op_emp_code, first_signing_day, status, 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
id,
customer_code,
customer_name,
customer_name_en,
simple_name,
contact,
phone,
mobile,
customer_type,
settled_type,
user_type,
company,
lic_no,
dept_id,
avatar,
sex,
invitation_info,
login_ip,
login_date,
nick_name,
union_id,
openid,
monthly_pay_code,
user_name,
password,
owner_site,
biz_site,
biz_site_name,
country,
province,
city,
county,
town,
address,
email,
post_code,
real_name,
id_no,
payee,
salesmen,
data_from,
bl_open_oms,
bl_sms,
op_emp_code,
first_signing_day,
status,
order_num,
remark,
del_flag,
create_by,
create_time,
update_by,
update_time,
create_site,
update_site,
#{id},
#{customerCode},
#{customerName},
#{customerNameEn},
#{simpleName},
#{contact},
#{phone},
#{mobile},
#{customerType},
#{settledType},
#{userType},
#{company},
#{licNo},
#{deptId},
#{avatar},
#{sex},
#{invitationInfo},
#{loginIp},
#{loginDate},
#{nickName},
#{unionId},
#{openid},
#{monthlyPayCode},
#{userName},
#{password},
#{ownerSite},
#{bizSite},
#{bizSiteName},
#{country},
#{province},
#{city},
#{county},
#{town},
#{address},
#{email},
#{postCode},
#{realName},
#{idNo},
#{payee},
#{salesmen},
#{dataFrom},
#{blOpenOms},
#{blSms},
#{opEmpCode},
#{firstSigningDay},
#{status},
#{orderNum},
#{remark},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{createSite},
#{updateSite},
update emis_customer_user
customer_code = #{customerCode},
customer_name = #{customerName},
customer_name_en = #{customerNameEn},
simple_name = #{simpleName},
contact = #{contact},
phone = #{phone},
mobile = #{mobile},
customer_type = #{customerType},
settled_type = #{settledType},
user_type = #{userType},
company = #{company},
lic_no = #{licNo},
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},
biz_site = #{bizSite},
biz_site_name = #{bizSiteName},
country = #{country},
province = #{province},
city = #{city},
county = #{county},
town = #{town},
address = #{address},
email = #{email},
post_code = #{postCode},
real_name = #{realName},
id_no = #{idNo},
payee = #{payee},
salesmen = #{salesmen},
data_from = #{dataFrom},
bl_open_oms = #{blOpenOms},
bl_sms = #{blSms},
op_emp_code = #{opEmpCode},
first_signing_day = #{firstSigningDay},
status = #{status},
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}