|
|
@@ -629,8 +629,9 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAll" resultType="com.goafanti.admin.bo.depCountBo">
|
|
|
- select a.id ,a.name ,0 userCount,0 inputCount,0 receiveCount, 0 completeCount, 0 interviewCount
|
|
|
+ select a.id ,a.name ,0 userCount,0 inputCount,0 receiveCount, 0 completeCount, 0 interviewCount
|
|
|
from department a left join department b on a.super_id=b.id
|
|
|
+ where a.name !='平台超管中心'
|
|
|
</select>
|
|
|
|
|
|
<!-- 查询所有 -->
|
|
|
@@ -648,16 +649,16 @@
|
|
|
ifnull(d.timeCount,0) as receiveCount, ifnull(e.completeCount,0)completeCount,ifnull(f.interviewCount,0)interviewCount
|
|
|
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
|
|
|
+ and share_type in(0,2) and source !=0 and type=1
|
|
|
group by aid) b on a.id=b.aid
|
|
|
left join (select aid,count(aid) as timeCount from `user` where aid is not null
|
|
|
- and share_type=0 and source =1 and type=1
|
|
|
+ and share_type in(0,2) and source =1 and type=1
|
|
|
<if test="startTime != null and endTime != null">
|
|
|
and create_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
group by aid) c on a.id=c.aid
|
|
|
left join (select aid,count(aid) as timeCount from `user` where aid is not null
|
|
|
- and share_type=0 and source =2 and type=1
|
|
|
+ and share_type in(0,2) and source =2 and type=1
|
|
|
<if test="startTime != null and endTime != null">
|
|
|
and transfer_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
|
|
|
</if>
|