Browse Source

缺陷汇总过滤掉异常,展示缺陷数据

master
wangguangyuan 7 months ago
parent
commit
d0f0b7d3e2
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      inspect-main/inspect-main-task/src/main/resources/mapper/task/ResultAnalysisMapper.xml

+ 2
- 3
inspect-main/inspect-main-task/src/main/resources/mapper/task/ResultAnalysisMapper.xml View File

@ -642,12 +642,11 @@
from patrol_result a
LEFT JOIN result_analysis b on a.line_id=b.business_id
<where>
b.result_type != '2'
<if test="isToday != null and isToday != '' and isToday == 1">and to_days(a.create_time) = to_days(now())</if>
<if test="objectId != null and objectId != ''">and b.objectId = #{objectId}</if>
<if test="filter != null and filter != ''">and b.filter = #{filter}</if>
<if test="type != null and type != '' and type == 0">and b.point_status = 0 </if>
and b.res_code = '2000'
and b.result_type != 2
<if test="type != null and type != '' and type == 0">and b.result_type = '0' </if>
</where>
ORDER BY b.line_id desc
</select>


Loading…
Cancel
Save