diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerUser.java b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerUser.java index 78faeb148..aa03d04e6 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerUser.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisCustomerUser.java @@ -41,6 +41,8 @@ public class EmisCustomerUser extends BaseEntity private String customerName; /* 英文简称 */ private String customerNameEn; + /* 客户简称 */ + private String simpleName; /* 电话包含手机 */ private String phone; /* 手机号 */ @@ -116,6 +118,8 @@ public class EmisCustomerUser extends BaseEntity private String payee; /* 销售联系人 */ private String salesmen; + /* 数据来源 */ + private String dataFrom; /* 是否开通oms */ private String blOpenOms; /* 是否短信 */ @@ -129,4 +133,26 @@ public class EmisCustomerUser extends BaseEntity /* 修改站点代码 */ private String updateSite; + + /* 国家 */ + private String countryName; + /* 省份 */ + private String provinceName; + /* 城市 */ + private String cityName; + /* 区县 */ + private String countyName; + + /* 归属站点 */ + private String ownerSiteName; + + /* 回款联系人 */ + private String payeeName; + /* 销售联系人 */ + private String salesmenName; + + /* 专属业务员 */ + private String opEmpName; + + } diff --git a/emis-biz/src/main/resources/mapper/EmisCustomerUserMapper.xml b/emis-biz/src/main/resources/mapper/EmisCustomerUserMapper.xml index 2ae2104ae..e6bff4443 100644 --- a/emis-biz/src/main/resources/mapper/EmisCustomerUserMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisCustomerUserMapper.xml @@ -4,11 +4,13 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> + + @@ -46,6 +48,7 @@ + @@ -58,19 +61,52 @@ + + + + + + + + + + + + - 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 + select id, customer_code, customer_name, customer_name_en, simple_name, 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, data_from, 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 + + + + + + + + + + + + @@ -133,9 +170,11 @@ insert into emis_customer_user + id, customer_code, customer_name, customer_name_en, + simple_name, phone, mobile, customer_type, @@ -173,6 +212,7 @@ id_no, payee, salesmen, + data_from, bl_open_oms, bl_sms, op_emp_code, @@ -187,9 +227,11 @@ update_site, + #{id}, #{customerCode}, #{customerName}, #{customerNameEn}, + #{simpleName}, #{phone}, #{mobile}, #{customerType}, @@ -227,6 +269,7 @@ #{idNo}, #{payee}, #{salesmen}, + #{dataFrom}, #{blOpenOms}, #{blSms}, #{opEmpCode}, @@ -248,6 +291,7 @@ customer_code = #{customerCode}, customer_name = #{customerName}, customer_name_en = #{customerNameEn}, + simple_name = #{simpleName}, phone = #{phone}, mobile = #{mobile}, customer_type = #{customerType}, @@ -285,6 +329,7 @@ id_no = #{idNo}, payee = #{payee}, salesmen = #{salesmen}, + data_from = #{dataFrom}, bl_open_oms = #{blOpenOms}, bl_sms = #{blSms}, op_emp_code = #{opEmpCode}, @@ -301,6 +346,9 @@ where id = #{id} + + + update emis_customer_user set del_flag='1' where id = #{id} diff --git a/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml b/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml index 82e1cda69..676a29438 100644 --- a/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisSiteMapper.xml @@ -164,6 +164,10 @@ select a.name from emis_brand a where a.code = #{code} limit 1 + +