|
|
@@ -95,14 +95,14 @@
|
|
|
</select>
|
|
|
<select id="selectPersonalCustomerCount" resultType="java.lang.Integer">
|
|
|
select count(0)
|
|
|
- from user a inner join user_identity b on a.id = b.uid
|
|
|
+ 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
|
|
|
- AND b.expert_audit=2
|
|
|
+ AND a.audit_status=1
|
|
|
<if test="aid != null and aid !=''">
|
|
|
and a.aid = #{aid,jdbcType=VARCHAR}
|
|
|
</if>
|