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