|
|
@@ -7,7 +7,7 @@
|
|
|
select
|
|
|
a.id as uid,a.type,a.status, a.create_time as createTime,a.service_certification as serviceCertification,
|
|
|
a.user_certification as userCertification,a.current_member_status as currentMemberStatus,
|
|
|
- b.aft_username as aftUsername,b.contacts,b.contact_mobile as contactMobile,b.international,b.expert,b.celebrity,
|
|
|
+ b.username as name,b.contacts,b.contact_mobile as contactMobile,b.international,b.expert,b.celebrity,
|
|
|
dg1.name as province,dg2.name as city, dg3.name as area,c.name as industry
|
|
|
from
|
|
|
(select
|
|
|
@@ -44,8 +44,8 @@
|
|
|
left join district_glossory dg3 on b.area = dg3.id
|
|
|
left join industry_category c on b.industry = c.id
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name''">
|
|
|
+ and b.username = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.province = #{province,jdbcType=INTEGER}
|
|
|
@@ -64,7 +64,7 @@
|
|
|
select
|
|
|
a.id as uid,a.type,a.status, a.create_time as createTime,a.service_certification as serviceCertification,
|
|
|
a.user_certification as userCertification,a.current_member_status as currentMemberStatus,
|
|
|
- b.aft_username as aftUsername,b.contacts,b.contact_mobile as contactMobile,b.international,0 as expert,0 as celebrity,
|
|
|
+ b.unit_name as name,b.contacts,b.contact_mobile as contactMobile,b.international,0 as expert,0 as celebrity,
|
|
|
dg1.name as province,dg2.name as city, dg3.name as area,c.name as industry
|
|
|
from
|
|
|
(select
|
|
|
@@ -101,8 +101,8 @@
|
|
|
left join district_glossory dg3 on b.licence_area = dg3.id
|
|
|
left join industry_category c on b.industry = c.id
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name''">
|
|
|
+ and b.unit_name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.licence_province = #{province,jdbcType=INTEGER}
|
|
|
@@ -121,7 +121,7 @@
|
|
|
select
|
|
|
a.id as uid,a.type,a.status, a.create_time as createTime,a.service_certification as serviceCertification,
|
|
|
a.user_certification as userCertification,a.current_member_status as currentMemberStatus,
|
|
|
- b.aft_username as aftUsername,b.contacts,b.contact_mobile as contactMobile,b.international,b.expert,b.celebrity,
|
|
|
+ b.username as name,b.contacts,b.contact_mobile as contactMobile,b.international,b.expert,b.celebrity,
|
|
|
dg1.name as province,dg2.name as city, dg3.name as area,c.name as industry
|
|
|
from
|
|
|
(select
|
|
|
@@ -158,8 +158,8 @@
|
|
|
left join district_glossory dg3 on b.area = dg3.id
|
|
|
left join industry_category c on b.industry = c.id
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name''">
|
|
|
+ and b.username = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.province = #{province,jdbcType=INTEGER}
|
|
|
@@ -177,7 +177,7 @@
|
|
|
select
|
|
|
a.id as uid,a.type,a.status, a.create_time as createTime,a.service_certification as serviceCertification,
|
|
|
a.user_certification as userCertification,a.current_member_status as currentMemberStatus,
|
|
|
- b.aft_username as aftUsername,b.contacts,b.contact_mobile as contactMobile,b.international,0 as expert,0 as celebrity,
|
|
|
+ b.unit_name as name,b.contacts,b.contact_mobile as contactMobile,b.international,0 as expert,0 as celebrity,
|
|
|
dg1.name as province,dg2.name as city, dg3.name as area,c.name as industry
|
|
|
from
|
|
|
(select
|
|
|
@@ -214,8 +214,8 @@
|
|
|
left join district_glossory dg3 on b.licence_area = dg3.id
|
|
|
left join industry_category c on b.industry = c.id
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name''">
|
|
|
+ and b.unit_name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.licence_province = #{province,jdbcType=INTEGER}
|
|
|
@@ -272,8 +272,8 @@
|
|
|
</if>
|
|
|
)as a inner join user_identity b on a.id = b.uid
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name !=''">
|
|
|
+ and b.username = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.province = #{province,jdbcType=INTEGER}
|
|
|
@@ -322,8 +322,8 @@
|
|
|
</if>
|
|
|
)as a inner join organization_identity b on a.id = b.uid
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name !=''">
|
|
|
+ and b.unit_name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.licence_province = #{province,jdbcType=INTEGER}
|
|
|
@@ -339,10 +339,10 @@
|
|
|
</if>
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
- select x.count1 + x.count2
|
|
|
+ select count(0)
|
|
|
from(
|
|
|
select
|
|
|
- count(0) as count1,0 as count2
|
|
|
+ a.id
|
|
|
from
|
|
|
(select
|
|
|
id
|
|
|
@@ -374,8 +374,8 @@
|
|
|
</if>
|
|
|
)as a inner join user_identity b on a.id = b.uid
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name !=''">
|
|
|
+ and b.username = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.province = #{province,jdbcType=INTEGER}
|
|
|
@@ -391,7 +391,7 @@
|
|
|
</if>
|
|
|
union
|
|
|
select
|
|
|
- 0 as count1,count(0) as count2
|
|
|
+ a.id
|
|
|
from
|
|
|
(select
|
|
|
id
|
|
|
@@ -423,8 +423,8 @@
|
|
|
</if>
|
|
|
)as a inner join organization_identity b on a.id = b.uid
|
|
|
where 1=1
|
|
|
- <if test="aftUsername != null and aftUsername!=''">
|
|
|
- and b.aft_username = #{aftUsername,jdbcType=VARCHAR}
|
|
|
+ <if test="name != null and name !=''">
|
|
|
+ and b.unit_name = #{name,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="province != null">
|
|
|
and b.licence_province = #{province,jdbcType=INTEGER}
|