md
This commit is contained in:
parent
77bfb26bc2
commit
ddfdbd4d62
@ -381,10 +381,15 @@
|
||||
|
||||
|
||||
<select id="selectMaxCustomerCodeBySite" parameterType="String" resultType="Long">
|
||||
select IF(max(customer_code) is NULL,CONCAT(#{ownSiteCode},LPAD('1',6,'0')),CONCAT(CONVERT(max(customer_code),SIGNED)+1,'')) as code
|
||||
select CONCAT(CONVERT(max(customer_code),SIGNED)+1,'') as code
|
||||
from emis_customer_user where owner_site = #{ownSiteCode}
|
||||
</select>
|
||||
|
||||
<!-- <select id="selectMaxCustomerCodeBySite" parameterType="String" resultType="Long">-->
|
||||
<!-- select IF(max(customer_code) is NULL,CONCAT(#{ownSiteCode},LPAD('1',6,'0')),CONCAT(CONVERT(max(customer_code),SIGNED)+1,'')) as code-->
|
||||
<!-- from emis_customer_user where owner_site = #{ownSiteCode}-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="selectEmisCustomerUserByPhone" parameterType="string" resultMap="EmisCustomerUserResult">
|
||||
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 a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user