|
@@ -137,8 +137,12 @@
|
|
|
<if test="maxComplexity != null and maxComplexity != ''">
|
|
|
AND complexity+0 <= #{maxComplexity}
|
|
|
</if>
|
|
|
- <if test="complexityLevel != null and complexityLevel != ''">
|
|
|
- AND complexity_level+0 >= #{complexityLevel}
|
|
|
+ <if test="complexityLevels != null and complexityLevels.size()>0">
|
|
|
+ AND complexity_level IN
|
|
|
+ <foreach collection="complexityLevels" item="item" index="index"
|
|
|
+ separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|
|
@@ -150,8 +154,12 @@
|
|
|
<if test="maxRisk != null and maxRisk != ''">
|
|
|
AND risk+0 <= #{maxRisk}
|
|
|
</if>
|
|
|
- <if test="riskLevel != null and riskLevel != ''">
|
|
|
- AND risk_level+0 >= #{riskLevel}
|
|
|
+ <if test="riskLevels != null and riskLevels.size()>0">
|
|
|
+ AND risk_level IN
|
|
|
+ <foreach collection="riskLevels" item="item" index="index"
|
|
|
+ separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|
|
@@ -282,8 +290,12 @@
|
|
|
<if test="maxComplexity != null and maxComplexity != ''">
|
|
|
AND complexity+0 <= #{maxComplexity}
|
|
|
</if>
|
|
|
- <if test="complexityLevel != null and complexityLevel != ''">
|
|
|
- AND complexity_level+0 >= #{complexityLevel}
|
|
|
+ <if test="complexityLevels != null and complexityLevels.size()>0">
|
|
|
+ AND complexity_level IN
|
|
|
+ <foreach collection="complexityLevels" item="item" index="index"
|
|
|
+ separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|
|
@@ -295,8 +307,12 @@
|
|
|
<if test="maxRisk != null and maxRisk != ''">
|
|
|
AND risk+0 <= #{maxRisk}
|
|
|
</if>
|
|
|
- <if test="riskLevel != null and riskLevel != ''">
|
|
|
- AND risk_level+0 >= #{riskLevel}
|
|
|
+ <if test="riskLevels != null and riskLevels.size()>0">
|
|
|
+ AND risk_level IN
|
|
|
+ <foreach collection="riskLevels" item="item" index="index"
|
|
|
+ separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|
|
@@ -500,8 +516,12 @@
|
|
|
<if test="maxComplexity != null and maxComplexity != ''">
|
|
|
AND complexity+0 <= #{maxComplexity}
|
|
|
</if>
|
|
|
- <if test="complexityLevel != null and complexityLevel != ''">
|
|
|
- AND complexity_level+0 >= #{complexityLevel}
|
|
|
+ <if test="complexityLevels != null and complexityLevels.size()>0">
|
|
|
+ AND complexity_level IN
|
|
|
+ <foreach collection="complexityLevels" item="item" index="index"
|
|
|
+ separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|
|
@@ -513,8 +533,12 @@
|
|
|
<if test="maxRisk != null and maxRisk != ''">
|
|
|
AND risk+0 <= #{maxRisk}
|
|
|
</if>
|
|
|
- <if test="riskLevel != null and riskLevel != ''">
|
|
|
- AND risk_level+0 >= #{riskLevel}
|
|
|
+ <if test="riskLevels != null and riskLevels.size()>0">
|
|
|
+ AND risk_level IN
|
|
|
+ <foreach collection="riskLevels" item="item" index="index"
|
|
|
+ separator="," open="(" close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
)
|
|
|
</if>
|