mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 14:49:37 +08:00
修改统计语句
This commit is contained in:
parent
a6098c8b53
commit
713b6fd548
@ -255,7 +255,7 @@
|
|||||||
<if test="evalService != null and evalService==1"> AND rep.eval_service >= 4</if>
|
<if test="evalService != null and evalService==1"> AND rep.eval_service >= 4</if>
|
||||||
<if test="evalService != null and evalService==2"> AND rep.eval_service = 3</if>
|
<if test="evalService != null and evalService==2"> AND rep.eval_service = 3</if>
|
||||||
<if test="evalService != null and evalService==3"> AND rep.eval_service <= 2</if>
|
<if test="evalService != null and evalService==3"> AND rep.eval_service <= 2</if>
|
||||||
<if test="timeout != null and timeout==9"> and predate < now() and status < 9</if>
|
<if test="timeout != null and timeout==9"> and predate is not null and predate < now() and status < 9</if>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -125,8 +125,8 @@
|
|||||||
<select id="repairAdminStats" resultType="com.ics.admin.vo.RepairAdminStatsVo">
|
<select id="repairAdminStats" resultType="com.ics.admin.vo.RepairAdminStatsVo">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
SELECT `wait`,`anew`,newnotice,oldnotice FROM
|
SELECT `wait`,`anew`,newnotice,oldnotice FROM
|
||||||
(SELECT count(id) as `wait` FROM ics_repair where delete_flag=0 and status=3) as A,
|
(SELECT count(id) as `wait` FROM ics_repair where delete_flag=0 and status=1) as A,
|
||||||
(SELECT count(DISTINCT repair_id) as `anew` FROM ics_repair_log where delete_flag=0 and node_form=3) as B,
|
(SELECT count(id) as `anew` FROM ics_repair where delete_flag=0 and status=3) as B,
|
||||||
(select count(id) as newnotice from ics_repair_remind where `read`=0 and user_id= #{userId}) C,
|
(select count(id) as newnotice from ics_repair_remind where `read`=0 and user_id= #{userId}) C,
|
||||||
(select count(id) as oldnotice from ics_repair_remind where `read`=1 and user_id= #{userId}) D
|
(select count(id) as oldnotice from ics_repair_remind where `read`=1 and user_id= #{userId}) D
|
||||||
]]>
|
]]>
|
||||||
@ -137,7 +137,7 @@
|
|||||||
<![CDATA[
|
<![CDATA[
|
||||||
SELECT
|
SELECT
|
||||||
count(id) zs,
|
count(id) zs,
|
||||||
sum(case when status < 9 then 1 else 0 end) `wait`,
|
sum(case when status <= 7 then 1 else 0 end) `wait`,
|
||||||
sum(case when predate is not null and predate < now() and status < 9 then 1 else 0 end) timeout,
|
sum(case when predate is not null and predate < now() and status < 9 then 1 else 0 end) timeout,
|
||||||
sum(case when eval_service is not null then 1 else 0 end) as pj,
|
sum(case when eval_service is not null then 1 else 0 end) as pj,
|
||||||
sum(case when eval_service is not null and eval_service >=4 then 1 else 0 end) as h,
|
sum(case when eval_service is not null and eval_service >=4 then 1 else 0 end) as h,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user