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