소스 검색

修改异常统计

chenhongyan1989 3 달 전
부모
커밋
55dbd26bcc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      energy-manage-service/src/main/resources/mybatis/system/OrganizationAuthMapper.xml

+ 2 - 2
energy-manage-service/src/main/resources/mybatis/system/OrganizationAuthMapper.xml

@@ -186,7 +186,7 @@
             (select field_code as fieldCode,count(1) as uncorrelatedCount from analysis_result where analysis_state = -1  group by field_code) uar
             on soa.code_number = uar.fieldCode
             left join
-            (select field_code as fieldCode,count(1) as errCount from analysis_result where 	err_state = 1  group by field_code) uer
+            (select field_code as fieldCode,count(1) as errCount from analysis_result where 	err_state = 1 and analysis_state = 30  group by field_code) uer
             on soa.code_number = uer.fieldCode
             left join
             (select field_code as fieldCode,count(1) as qCount from analysis_result where 	analysis_state = 10  group by field_code) uqr
@@ -210,7 +210,7 @@
             wr.code_number
             from sys_organization_auth a
             inner join wind_relation wr on a.code_number = wr.code_number where 1=1 and a.role_id =  #{roleId} and wr.type = 'field')
-        and err_state = 1
+        and err_state = 1 and analysis_state = 30
         </select>
 
 </mapper>