forked from integrated_whb/integrated_whb
BI页统计数据校准
parent
51d29c72ef
commit
15c3d39b8b
|
@ -1610,8 +1610,8 @@
|
|||
|
||||
<select id="listTypeBi" parameterType="pd" resultType="pd">
|
||||
select count(1) count,d.NAME
|
||||
from bus_checkrecord f
|
||||
left join BUS_LISTMANAGER l on f.LISTMANAGER_ID = l.LISTMANAGER_ID
|
||||
from vi_list_checkrecord_all f
|
||||
left join vi_list_all l on f.LISTMANAGER_ID = l.LISTMANAGER_ID and f.LIST_TYPE = l.LIST_TYPE
|
||||
left join sys_dictionaries d on d.BIANMA = l.SCREENTYPE
|
||||
where f.ISDELETE = '0'
|
||||
AND f.FINISHED = '1'
|
||||
|
|
|
@ -1436,16 +1436,18 @@
|
|||
WHERE
|
||||
h.ISDELETE = '0'
|
||||
AND h.CORPINFO_ID = #{CORPINFO_ID}
|
||||
AND h.state != '0'
|
||||
<!-- AND h.state != '0' -->
|
||||
<!-- 不包含安全环保检查的状态 100-安全环保检查暂存的隐患 101.检查已归档,待指派 102.检查已归档,指派中 -2.待确认 -->
|
||||
AND h.STATE NOT IN ('0','100','101','102','-2')
|
||||
AND h.HIDDENLEVEL = 'hiddenLevel0001'
|
||||
AND DATE_FORMAT( h.CREATTIME, '%Y-%m' ) >= #{TIME}
|
||||
AND DATE_FORMAT( h.CREATTIME, '%Y-%m' ) <= DATE_FORMAT( NOW(), '%Y-%m' )
|
||||
GROUP BY
|
||||
DATE_FORMAT( h.CREATTIME, '%Y-%m' )
|
||||
ORDER BY
|
||||
DATE_FORMAT( h.CREATTIME, '%Y-%m' )
|
||||
</if>
|
||||
<if test="TYPE==2"><!-- 未整改 -->
|
||||
DATE_FORMAT( h.CREATTIME, '%Y-%m' )
|
||||
</if>
|
||||
<if test="TYPE==2"><!-- 未整改 -->
|
||||
SELECT
|
||||
count( 1 ) NUMBER,
|
||||
DATE_FORMAT( h.CREATTIME, '%Y-%m' ) TIME
|
||||
|
|
Loading…
Reference in New Issue