Browse Source

营销人员统计Bug修复

anderx 6 years ago
parent
commit
f5f2e0ada2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/goafanti/common/mapper/AdminMapper.xml

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

@@ -1053,7 +1053,7 @@
   
    <select id="selectAdminCustomerList"  resultType="com.goafanti.admin.bo.AdminCustomerBo">
   	select a.id as aid,a.name as aName,d.name as depName,ifnull(b.userCount,0) as userCount,ifnull(c.timeCount,0) as inputCount,
-  	ifnull(c.timeCount,0) as receiveCount from admin a 
+  	ifnull(d.timeCount,0) as receiveCount from admin a 
 	left join (select aid,count(aid) as userCount from user where aid is not null  
 	and  share_type=0 and source !=0 and type=1
 	group by aid) b on a.id=b.aid
@@ -1068,7 +1068,7 @@
 	 <if test="startTime != null and endTime != null"> 
     and  transfer_time  between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
     </if>
-	group by aid) d on a.id=c.aid
+	group by aid) d on a.id=d.aid
 	left join department d on a.department_id=d.id
 	left join user_role e on a.id=e.uid
 	left join `role` f on e.rid=f.id