Antiloveg 8 years ago
parent
commit
192f47eb33
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/main/java/com/goafanti/common/mapper/AdminMapper.xml

+ 1 - 3
src/main/java/com/goafanti/common/mapper/AdminMapper.xml

@@ -396,7 +396,7 @@
   </select>
   
   <select id = "findAreaAdminCount" parameterType="java.lang.String" resultType="java.lang.Integer">
-   select count(1) from ( select count(1) 
+   select count(distinct(a.number))  
    from admin a 
     left join admin_location al on a.id = al.admin_id
     where 1 = 1
@@ -427,7 +427,5 @@
 				#{clist}
 			</foreach>
 	</if>
-	group by a.id
-	) tem
   </select>
 </mapper>