2 Commits

1 changed files with 1 additions and 1 deletions
Split View
  1. +1
    -1
      inspect-main/inspect-main-task/src/main/resources/mapper/task/PatrolResultMapper.xml

+ 1
- 1
inspect-main/inspect-main-task/src/main/resources/mapper/task/PatrolResultMapper.xml View File

@ -199,7 +199,7 @@
a.data_type,
JSON_VALUE(b.result_content, '$**.resImageUrl') imgAnalyse
from patrol_result a
LEFT JOIN result_analysis b on a.line_id=b.business_id
LEFT JOIN result_analysis b on a.line_id=b.business_id and a.task_patrolled_id = b.task_patrol_id
<where>
<if test="taskCode != null and taskCode != ''">and a.task_code = #{taskCode}</if>
<if test="taskPatrolledId != null and taskPatrolledId != ''">and a.task_patrolled_id=#{taskPatrolledId}


Loading…
Cancel
Save