BI页面任务处理情况统计增加隐患排查数据情况

pull/4/head
wangpeng 2024-02-21 15:27:54 +08:00
parent 81053da3a3
commit eb44fe6dfe
1 changed files with 25 additions and 16 deletions

View File

@ -1256,9 +1256,18 @@
<!--根据企业ID获取驾驶舱隐患统计信息 --> <!--根据企业ID获取驾驶舱隐患统计信息 -->
<select id="getBICount" parameterType="pd" resultType="pd"> <select id="getBICount" parameterType="pd" resultType="pd">
SELECT SELECT
<include refid="Field"></include> f.LIST_TYPE, f.HIDDEN_ID, f.LISTMANAGER_ID, f.RISKITEM_ID, f.CHECKRECORD_ID, f.RECORDITEM_ID, f.SOURCE, f.CHECK_CONTENT,
f.HIDDENDESCR, f.HIDDENPART, f.CREATOR, f.CREATTIME,
f.RECTIFYDESCR, f.RECTIFICATIONTYPE, f.RECTIFICATIONOR, f.RECTIFICATIONTIME,
f.HIDDENLEVEL, f.STATE,
f.CHECKDEPT, f.CHECKOR, f.CHECKTIME, f.CHECKDESCR,
f.ISQUALIFIED, f.ISDELETE, f.CORPINFO_ID, f.HIDDENFINDDEPT,
f.RECTIFICATIONDEADLINE, f.RECTIFICATIONDEPT, f.REVIEWOR, f.REVIEWTIME, f.REVIEWDEPT,
f.LONGITUDE, f.LATITUDE,
f.HAVESCHEME, f.HAVEPLAN, f.HIDDENTYPE, f.HIDDENTYPE1, f.HIDDENTYPE2, f.HIDDENTYPE3, f.HIDDENTYPE_NAME,
f.ISCONFIRM, f.OPERATTIME, f.HIDDEN_CATEGORY
FROM FROM
BUS_HIDDEN f vi_hidden_all f
WHERE f.ISDELETE = '0' and f.STATE != '0' and f.HIDDENLEVEL = 'hiddenLevel0001' WHERE f.ISDELETE = '0' and f.STATE != '0' and f.HIDDENLEVEL = 'hiddenLevel0001'
<if test="CORPINFO_ID != null and CORPINFO_ID != ''"> <if test="CORPINFO_ID != null and CORPINFO_ID != ''">
and f.CORPINFO_ID =#{CORPINFO_ID} and f.CORPINFO_ID =#{CORPINFO_ID}
@ -1423,7 +1432,7 @@
count( 1 ) NUMBER, count( 1 ) NUMBER,
DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME
FROM FROM
bus_hidden h vi_hidden_all h
WHERE WHERE
h.ISDELETE = '0' h.ISDELETE = '0'
AND h.CORPINFO_ID = #{CORPINFO_ID} AND h.CORPINFO_ID = #{CORPINFO_ID}
@ -1441,7 +1450,7 @@
count( 1 ) NUMBER, count( 1 ) NUMBER,
DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME
FROM FROM
bus_hidden h vi_hidden_all h
WHERE WHERE
h.ISDELETE = '0' h.ISDELETE = '0'
AND h.CORPINFO_ID = #{CORPINFO_ID} AND h.CORPINFO_ID = #{CORPINFO_ID}
@ -1459,7 +1468,7 @@
count( 1 ) NUMBER, count( 1 ) NUMBER,
DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME
FROM FROM
bus_hidden h vi_hidden_all h
WHERE WHERE
h.ISDELETE = '0' h.ISDELETE = '0'
AND h.CORPINFO_ID = #{CORPINFO_ID} AND h.CORPINFO_ID = #{CORPINFO_ID}
@ -1477,7 +1486,7 @@
count( 1 ) NUMBER, count( 1 ) NUMBER,
DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME
FROM FROM
bus_hidden h vi_hidden_all h
WHERE WHERE
h.ISDELETE = '0' h.ISDELETE = '0'
AND h.CORPINFO_ID = #{CORPINFO_ID} AND h.CORPINFO_ID = #{CORPINFO_ID}