Browse Source

管理中心专家列表显示BUG修复

anderx 8 years ago
parent
commit
560fb314d7
1 changed files with 11 additions and 4 deletions
  1. 11 4
      src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

+ 11 - 4
src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

@@ -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>