|
|
@@ -23,15 +23,15 @@
|
|
|
dg3.name as area,
|
|
|
c.name as industry,
|
|
|
d.name as adminName,
|
|
|
- b.expert_audit as expertAudit,
|
|
|
- b.release_status as releaseStatus
|
|
|
+ b.expert_audit as expertAudit
|
|
|
from user a inner join user_identity b on a.id = b.uid
|
|
|
left join district_glossory dg1 on b.province = dg1.id
|
|
|
left join district_glossory dg2 on b.city = dg2.id
|
|
|
left join district_glossory dg3 on b.area = dg3.id
|
|
|
left join industry_category c on b.industry = c.id
|
|
|
left join admin d on a.aid = d.id
|
|
|
- where a.type = 0 and a.status != 1 and a.audit_status = 1
|
|
|
+ where a.type = 0 and a.status != 1 and a.audit_status = 1
|
|
|
+ AND b.expert_audit=2
|
|
|
<if test="aid != null and aid !=''">
|
|
|
and a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -95,8 +95,15 @@
|
|
|
</select>
|
|
|
<select id="selectPersonalCustomerCount" resultType="java.lang.Integer">
|
|
|
select count(0)
|
|
|
+ select count(0)
|
|
|
from user a inner join user_identity b on a.id = b.uid
|
|
|
- where a.type = 0 and a.status != 1 and a.audit_status = 1
|
|
|
+ left join district_glossory dg1 on b.province = dg1.id
|
|
|
+ left join district_glossory dg2 on b.city = dg2.id
|
|
|
+ left join district_glossory dg3 on b.area = dg3.id
|
|
|
+ left join industry_category c on b.industry = c.id
|
|
|
+ left join admin d on a.aid = d.id
|
|
|
+ where a.type = 0 and a.status != 1 and a.audit_status = 1
|
|
|
+ AND b.expert_audit=2
|
|
|
<if test="aid != null and aid !=''">
|
|
|
and a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|