|
|
@@ -32,6 +32,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="isConsignee" column="is_consignee" />
|
|
|
+ <result property="isAuthentication" column="is_authentication" />
|
|
|
+ <result property="personAttestationTime" column="person_attestation_time" />
|
|
|
+ <result property="isOrgAuthentication" column="is_org_authentication" />
|
|
|
+ <result property="orgAttestationTime" column="org_attestation_time" />
|
|
|
<!--<result property="salesLevel" column="sales_level" />-->
|
|
|
<!--<result property="orgName" column="org_name" />-->
|
|
|
<!--<result property="orgCode" column="org_code" />-->
|
|
|
@@ -100,11 +104,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
u.phonenumber, u.password, u.sex, u.salt, u.status, u.del_flag,
|
|
|
u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
|
|
|
d.dept_name, d.leader,
|
|
|
- suse.sales_level,suse.org_name,suse.org_code,suse.post_name,suse.is_customer_manager
|
|
|
+ suse.sales_level,suse.org_name,suse.org_code,suse.post_name,suse.is_customer_manager,ce.is_authentication is_org_authentication,ce.org_attestation_time
|
|
|
from sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
|
left join sys_company c on u.company_id = c.id
|
|
|
left join sys_user_ext suse on suse.user_id = u.user_id
|
|
|
+ LEFT JOIN customers_ext ce ON suse.org_code = ce.chains_code
|
|
|
where u.del_flag = '0'
|
|
|
<if test="loginName != null and loginName != ''">
|
|
|
AND u.login_name like concat('%', #{loginName}, '%')
|
|
|
@@ -142,6 +147,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null and companyId != 0">
|
|
|
AND u.company_id = #{companyId}
|
|
|
</if>
|
|
|
+ <if test="isAuthentication != null and isAuthentication != ''">
|
|
|
+ AND u.is_authentication = #{isAuthentication}
|
|
|
+ </if>
|
|
|
+ <if test="isOrgAuthentication != null and isOrgAuthentication != '' and isOrgAuthentication =='1'.toString()">
|
|
|
+ AND ce.is_authentication = '1'
|
|
|
+ </if>
|
|
|
+ <if test="isOrgAuthentication != null and isOrgAuthentication != '' and isOrgAuthentication =='0'.toString()">
|
|
|
+ AND (ce.is_authentication = '0' or ce.is_authentication is null)
|
|
|
+ </if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
</select>
|