|
@@ -143,7 +143,7 @@
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
<if test="needRisk != null and needRisk != ''">
|
|
<if test="needRisk != null and needRisk != ''">
|
|
- and accident_id in (select scene_id from scene_complexity where is_deleted = '0'
|
|
|
|
|
|
+ and accident_id in (select scene_id from scene_risk where is_deleted = '0'
|
|
<if test="minRisk != null and minRisk != ''">
|
|
<if test="minRisk != null and minRisk != ''">
|
|
AND risk+0 >= #{minRisk}
|
|
AND risk+0 >= #{minRisk}
|
|
</if>
|
|
</if>
|
|
@@ -288,7 +288,7 @@
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
<if test="needRisk != null and needRisk != ''">
|
|
<if test="needRisk != null and needRisk != ''">
|
|
- and accident_id in (select scene_id from scene_complexity where is_deleted = '0'
|
|
|
|
|
|
+ and accident_id in (select scene_id from scene_risk where is_deleted = '0'
|
|
<if test="minRisk != null and minRisk != ''">
|
|
<if test="minRisk != null and minRisk != ''">
|
|
AND risk+0 >= #{minRisk}
|
|
AND risk+0 >= #{minRisk}
|
|
</if>
|
|
</if>
|
|
@@ -506,7 +506,7 @@
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
<if test="needRisk != null and needRisk != ''">
|
|
<if test="needRisk != null and needRisk != ''">
|
|
- and cc.accident_id in (select scene_id from scene_complexity where is_deleted = '0'
|
|
|
|
|
|
+ and cc.accident_id in (select scene_id from scene_risk where is_deleted = '0'
|
|
<if test="minRisk != null and minRisk != ''">
|
|
<if test="minRisk != null and minRisk != ''">
|
|
AND risk+0 >= #{minRisk}
|
|
AND risk+0 >= #{minRisk}
|
|
</if>
|
|
</if>
|