|
@@ -8,26 +8,25 @@
|
|
|
FROM
|
|
|
(
|
|
|
SELECT
|
|
|
- DISTINCT(srl.scene_id) scene_id,
|
|
|
- sc.complexity complexity,
|
|
|
- sc.complexity_level complexity_level,
|
|
|
- sc.create_time create_time
|
|
|
+ DISTINCT(scene_id),
|
|
|
+ complexity,
|
|
|
+ complexity_level,
|
|
|
+ create_time
|
|
|
FROM
|
|
|
- simulation.scene_reference_lib srl
|
|
|
- LEFT JOIN scene_complexity sc ON srl.scene_id = sc.scene_id
|
|
|
+ scene_complexity
|
|
|
<where>
|
|
|
- srl.is_deleted = '0'
|
|
|
+ is_deleted = '0'
|
|
|
<if test="minComplexity != null and minComplexity != ''">
|
|
|
- AND sc.complexity+0 >= #{minComplexity}
|
|
|
+ AND complexity+0 >= #{minComplexity}
|
|
|
</if>
|
|
|
<if test="maxComplexity != null and maxComplexity != ''">
|
|
|
- AND sc.complexity+0 <= #{maxComplexity}
|
|
|
+ AND complexity+0 <= #{maxComplexity}
|
|
|
</if>
|
|
|
<if test="complexityLevel != null and complexityLevel != ''">
|
|
|
- AND sc.complexity_level+0 >= #{complexityLevel}
|
|
|
+ AND complexity_level+0 >= #{complexityLevel}
|
|
|
</if>
|
|
|
<if test="sceneIdList != null and sceneIdList.size()>0">
|
|
|
- AND srl.scene_id IN
|
|
|
+ AND scene_id IN
|
|
|
<foreach collection="sceneIdList" item="item" index="index"
|
|
|
separator="," open="(" close=")">
|
|
|
#{item}
|
|
@@ -35,7 +34,7 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
ORDER BY
|
|
|
- sc.create_time DESC
|
|
|
+ create_time DESC
|
|
|
) srlsc GROUP BY scene_id;
|
|
|
</select>
|
|
|
|