BI页统计数据校准

pull/4/head
wangpeng 2024-02-23 10:08:25 +08:00
parent 51d29c72ef
commit 15c3d39b8b
2 changed files with 8 additions and 6 deletions

View File

@ -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'

View File

@ -1436,7 +1436,9 @@
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' ) &gt;= #{TIME}
AND DATE_FORMAT( h.CREATTIME, '%Y-%m' ) &lt;= DATE_FORMAT( NOW(), '%Y-%m' )