forked from integrated_whb/integrated_whb
统计分析增加隐患排查数据统计
parent
a67934c55c
commit
81053da3a3
|
@ -1669,8 +1669,8 @@
|
||||||
c.PERIODEND,
|
c.PERIODEND,
|
||||||
COUNT(h.HIDDEN_ID) HIDDEN_COUNT
|
COUNT(h.HIDDEN_ID) HIDDEN_COUNT
|
||||||
FROM
|
FROM
|
||||||
BUS_CHECKRECORD c
|
vi_list_checkrecord_all c
|
||||||
left join bus_hidden h on h.CHECKRECORD_ID = c.CHECKRECORD_ID and h.ISDELETE = '0'
|
left join vi_hidden_all h on h.CHECKRECORD_ID = c.CHECKRECORD_ID and h.LIST_TYPE = c.HIDDEN_RISKSTANDARD and h.ISDELETE = '0'
|
||||||
WHERE
|
WHERE
|
||||||
c.FINISHED = 1
|
c.FINISHED = 1
|
||||||
and (#{MONTH} >= DATE_FORMAT(c.PERIODSTART,'%Y-%m') and #{MONTH} <=DATE_FORMAT(c.PERIODEND,'%Y-%m'))
|
and (#{MONTH} >= DATE_FORMAT(c.PERIODSTART,'%Y-%m') and #{MONTH} <=DATE_FORMAT(c.PERIODEND,'%Y-%m'))
|
||||||
|
|
|
@ -131,8 +131,8 @@
|
||||||
c.USER_ID,
|
c.USER_ID,
|
||||||
count( c.CHECKUSER_ID ) NUM
|
count( c.CHECKUSER_ID ) NUM
|
||||||
FROM
|
FROM
|
||||||
bus_checkuser c
|
vi_list_checkuser_all c
|
||||||
LEFT JOIN bus_checkrecord cr ON c.CHECKRECORD_ID = cr.CHECKRECORD_ID
|
LEFT JOIN vi_list_checkrecord_all cr ON cr.CHECKRECORD_ID = c.CHECKRECORD_ID and cr.HIDDEN_RISKSTANDARD = c.HIDDEN_RISKSTANDARD
|
||||||
WHERE
|
WHERE
|
||||||
cr.isdelete = '0'
|
cr.isdelete = '0'
|
||||||
AND cr.FINISHED = '1'
|
AND cr.FINISHED = '1'
|
||||||
|
|
|
@ -1912,7 +1912,7 @@
|
||||||
count(1) NUM,
|
count(1) NUM,
|
||||||
f.USER_ID
|
f.USER_ID
|
||||||
FROM
|
FROM
|
||||||
bus_listmanager f
|
vi_list_all f
|
||||||
LEFT JOIN SYS_USER u ON u.USER_ID = f.USER_ID
|
LEFT JOIN SYS_USER u ON u.USER_ID = f.USER_ID
|
||||||
WHERE
|
WHERE
|
||||||
f.ISDELETE = '0'
|
f.ISDELETE = '0'
|
||||||
|
@ -1967,6 +1967,7 @@
|
||||||
<!--查询人员清单 -->
|
<!--查询人员清单 -->
|
||||||
<select id="getListByCorplistPage" parameterType="page" resultType="pd">
|
<select id="getListByCorplistPage" parameterType="page" resultType="pd">
|
||||||
SELECT
|
SELECT
|
||||||
|
f.LIST_TYPE,
|
||||||
f.LISTMANAGER_ID,
|
f.LISTMANAGER_ID,
|
||||||
f.NAME,
|
f.NAME,
|
||||||
f.CREATTIME,
|
f.CREATTIME,
|
||||||
|
@ -1976,7 +1977,7 @@
|
||||||
getFullName(d.DEPARTMENT_ID) DEPARTMENT_NAME,
|
getFullName(d.DEPARTMENT_ID) DEPARTMENT_NAME,
|
||||||
po.NAME POST_NAME
|
po.NAME POST_NAME
|
||||||
FROM
|
FROM
|
||||||
bus_listmanager f
|
vi_list_all f
|
||||||
left join sys_dictionaries p on p.BIANMA = f.PERIOD
|
left join sys_dictionaries p on p.BIANMA = f.PERIOD
|
||||||
left join sys_dictionaries t on t.BIANMA = f.TYPE
|
left join sys_dictionaries t on t.BIANMA = f.TYPE
|
||||||
left join sys_user u on u.USER_ID = f.USER_ID
|
left join sys_user u on u.USER_ID = f.USER_ID
|
||||||
|
|
|
@ -209,7 +209,7 @@
|
||||||
sum(f.NOTEXAMINEDNUM) NUM,
|
sum(f.NOTEXAMINEDNUM) NUM,
|
||||||
f.USER_ID
|
f.USER_ID
|
||||||
FROM
|
FROM
|
||||||
bus_list_statistics f
|
vi_list_statistics_all f
|
||||||
WHERE
|
WHERE
|
||||||
f.CORPINFO_ID = #{CORPINFO_ID}
|
f.CORPINFO_ID = #{CORPINFO_ID}
|
||||||
and f.USER_ID is not null
|
and f.USER_ID is not null
|
||||||
|
@ -259,8 +259,8 @@
|
||||||
SELECT
|
SELECT
|
||||||
COUNT( distinct bcr.LISTMANAGER_ID )
|
COUNT( distinct bcr.LISTMANAGER_ID )
|
||||||
FROM
|
FROM
|
||||||
BUS_CHECKRECORD bcr
|
vi_list_checkrecord_all bcr
|
||||||
LEFT JOIN BUS_CHECKUSER bcu ON bcu.CHECKRECORD_ID = bcr.CHECKRECORD_ID
|
LEFT JOIN vi_list_checkuser_all bcu ON bcu.CHECKRECORD_ID = bcr.CHECKRECORD_ID and bcu.HIDDEN_RISKSTANDARD = bcr.HIDDEN_RISKSTANDARD
|
||||||
WHERE
|
WHERE
|
||||||
bcu.USER_ID = u.USER_ID
|
bcu.USER_ID = u.USER_ID
|
||||||
AND bcr.FINISHED = '1'
|
AND bcr.FINISHED = '1'
|
||||||
|
@ -430,7 +430,7 @@
|
||||||
CAST( sum( f.NOTEXAMINEDNUM ) AS SIGNED ) NUM,
|
CAST( sum( f.NOTEXAMINEDNUM ) AS SIGNED ) NUM,
|
||||||
f.USER_ID
|
f.USER_ID
|
||||||
FROM
|
FROM
|
||||||
bus_list_statistics f
|
vi_list_statistics_all f
|
||||||
|
|
||||||
LEFT JOIN SYS_USER u ON u.USER_ID = f.USER_ID
|
LEFT JOIN SYS_USER u ON u.USER_ID = f.USER_ID
|
||||||
WHERE
|
WHERE
|
||||||
|
|
Loading…
Reference in New Issue