Browse Source

客户审核修复

Michael 8 years ago
parent
commit
e61ffa83bb
1 changed files with 10 additions and 10 deletions
  1. 10 10
      src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

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

@@ -31,7 +31,7 @@
 		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
+		where a.type = 0  and a.status != 1 and a.audit_status = 1
 		<if test="aid != null and aid !=''">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 		</if>
@@ -97,7 +97,7 @@
 	<select id="selectPersonalCustomerCount" resultType="java.lang.Integer">
 		select count(0)
 			from user a inner join user_identity b on a.id = b.uid
-		where a.type = 0  and a.status != 1
+		where a.type = 0  and a.status != 1 and a.audit_status = 1
 		<if test="aid != null and aid !=''">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 		</if>
@@ -183,7 +183,7 @@
 		left join district_glossory dg3 on b.location_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 = 1 and a.status != 1
+		where a.type = 1 and a.status != 1 and a.audit_status = 1
 		<if test="aid != null and aid !=''">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 		</if>
@@ -250,7 +250,7 @@
 		select 
 			count(0)	
 		from user a inner join organization_identity b on a.id = b.uid
-		where a.type = 1 and a.status != 1
+		where a.type = 1 and a.status != 1 and a.audit_status = 1
 		<if test="aid != null and aid !=''">
 			and a.aid = #{aid,jdbcType=VARCHAR}
 		</if>
@@ -907,7 +907,7 @@
 		left join industry_category c on b.industry = c.id
 		left join admin d on a.aid = d.id
 		LEFT JOIN department_management dm on dm.id = d.department_id 		
-		where a.type = 0  and a.status != 1
+		where a.type = 0  and a.status != 1 and a.audit_status = 1
 		<if test="aid != null and aid !=''">
 			and (a.aid = #{aid,jdbcType=VARCHAR} or d.department_id=(select department_id from admin where id=#{aid,jdbcType=VARCHAR}))
 		</if>
@@ -972,7 +972,7 @@
 			from user a inner join user_identity b on a.id = b.uid
 			left join admin d on a.aid = d.id
 			LEFT JOIN department_management dm on dm.id = d.department_id 	
-		where a.type = 0  and a.status != 1
+		where a.type = 0  and a.status != 1 and a.audit_status = 1
 		<if test="aid != null and aid !=''">
 			and (a.aid = #{aid,jdbcType=VARCHAR} or d.department_id=(select department_id from admin where id=#{aid,jdbcType=VARCHAR}))
 		</if>
@@ -1060,7 +1060,7 @@
 		left join industry_category c on b.industry = c.id
 		left join admin d on a.aid = d.id
 		LEFT JOIN department_management dm on dm.id = d.department_id 	 	
-		where a.type = 1 and a.status != 1
+		where a.type = 1 and a.status != 1 and a.audit_status = 1 
 		<if test="aid != null and aid !=''">
 			and (a.aid = #{aid,jdbcType=VARCHAR} or d.department_id=(select department_id from admin where id=#{aid,jdbcType=VARCHAR}))
 		</if>
@@ -1129,7 +1129,7 @@
 			count(0)	
 		from user a inner join organization_identity b on a.id = b.uid
 		LEFT JOIN department_management dm on dm.id = d.department_id 
-		where a.type = 1 and a.status != 1
+		where a.type = 1 and a.status != 1 and a.audit_status = 1 
 		<if test="aid != null and aid !=''">
 			and (a.aid = #{aid,jdbcType=VARCHAR} or d.department_id=(select department_id from admin where id=#{aid,jdbcType=VARCHAR}))
 		</if>
@@ -1195,7 +1195,7 @@
 	<select id="findEnteringAuditList" resultType="com.goafanti.customer.bo.CustomerListOut">
 		select u.id as uid,u.nickname as name,u.mobile as contactMobile,a.name as adminName,u.create_time as createTime,u.audit_status as auditStatus
 		from user u left join admin a on u.aid=a.id
-		where u.audit_status=0 and u.status != 1
+		where u.audit_status=0 and u.status != 1 and u.share_type=0
 		<if test="aid != null and aid !=''">
 			and u.aid = #{aid,jdbcType=VARCHAR}
 		</if>
@@ -1214,7 +1214,7 @@
 		select 
 			count(0)	
 		from user u left join admin a on u.aid=a.id
-		where u.audit_status=0 and u.status != 1
+		where u.audit_status=0 and u.status != 1 and u.share_type=0
 		<if test="aid != null and aid !=''">
 			and u.aid = #{aid,jdbcType=VARCHAR}
 		</if>