lichunyang 1 år sedan
förälder
incheckning
aafd62566e

+ 3 - 3
simulation-resource-server/src/main/resources/mysql/mapper/SceneAccidentMapper.xml

@@ -143,7 +143,7 @@
                 )
             </if>
             <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 != ''">
                     AND risk+0 >= #{minRisk}
                 </if>
@@ -288,7 +288,7 @@
                 )
             </if>
             <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 != ''">
                     AND risk+0 >= #{minRisk}
                 </if>
@@ -506,7 +506,7 @@
                 )
             </if>
             <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 != ''">
                     AND risk+0 >= #{minRisk}
                 </if>

+ 2 - 2
simulation-resource-server/src/main/resources/mysql/mapper/SceneNaturalMapper.xml

@@ -414,7 +414,7 @@
                 )
             </if>
             <if test="needRisk != null and needRisk != ''">
-                and natural_id in (select scene_id from scene_complexity where is_deleted = '0'
+                and natural_id in (select scene_id from scene_risk where is_deleted = '0'
                 <if test="minRisk != null and minRisk != ''">
                     AND risk+0 >= #{minRisk}
                 </if>
@@ -1836,7 +1836,7 @@
                 )
             </if>
             <if test="needRisk != null and needRisk != ''">
-                and dd.natural_id in (select scene_id from scene_complexity where is_deleted = '0'
+                and dd.natural_id in (select scene_id from scene_risk where is_deleted = '0'
                 <if test="minRisk != null and minRisk != ''">
                     AND risk+0 >= #{minRisk}
                 </if>

+ 1 - 1
simulation-resource-server/src/main/resources/mysql/mapper/SceneReferenceLibMapper.xml

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

+ 2 - 2
simulation-resource-server/src/main/resources/mysql/mapper/SceneStandardsRegulationsMapper.xml

@@ -115,7 +115,7 @@
                 )
             </if>
             <if test="needRisk != null and needRisk != ''">
-                and regulations_id in (select scene_id from scene_complexity where is_deleted = '0'
+                and regulations_id in (select scene_id from scene_risk where is_deleted = '0'
                 <if test="minRisk != null and minRisk != ''">
                     AND risk+0 >= #{minRisk}
                 </if>
@@ -316,7 +316,7 @@
                 )
             </if>
             <if test="needRisk != null and needRisk != ''">
-                and dd.regulations_id in (select scene_id from scene_complexity where is_deleted = '0'
+                and dd.regulations_id in (select scene_id from scene_risk where is_deleted = '0'
                 <if test="minRisk != null and minRisk != ''">
                     AND risk+0 >= #{minRisk}
                 </if>