Commit 4ab45806 authored by zhangfeng's avatar zhangfeng

会员积分总览特殊查询条件处理

parent 94bd5d5e
...@@ -61,9 +61,12 @@ ...@@ -61,9 +61,12 @@
<if test="query.usedScoreOperate == 1"> <if test="query.usedScoreOperate == 1">
and mus.used_score &gt; #{query.usedScore} and mus.used_score &gt; #{query.usedScore}
</if> </if>
<if test="query.usedScoreOperate == 2"> <if test="query.usedScoreOperate == 2 and query.usedScore != 0">
and mus.used_score = #{query.usedScore} and mus.used_score = #{query.usedScore}
</if> </if>
<if test="query.usedScoreOperate == 2 and query.usedScore == 0">
and (mus.used_score = 0 or mus.used_score is null)
</if>
<if test="query.usedScoreOperate == 3"> <if test="query.usedScoreOperate == 3">
and mus.used_score &lt; #{query.usedScore} and mus.used_score &lt; #{query.usedScore}
</if> </if>
...@@ -73,9 +76,13 @@ ...@@ -73,9 +76,13 @@
<if test="query.holdScoreOperate == 1"> <if test="query.holdScoreOperate == 1">
and mus.hold_score &gt; #{query.holdScore} and mus.hold_score &gt; #{query.holdScore}
</if> </if>
<if test="query.holdScoreOperate == 2"> <if test="query.holdScoreOperate == 2 and query.holdScore != 0">
and mus.hold_score = #{query.holdScore} and mus.hold_score = #{query.holdScore}
</if> </if>
<!--特殊条件处理-->
<if test="query.holdScoreOperate == 2 and query.holdScore == 0">
and (mus.hold_score = 0 or mus.hold_score is null)
</if>
<if test="query.holdScoreOperate == 3"> <if test="query.holdScoreOperate == 3">
and mus.hold_score &lt; #{query.holdScore} and mus.hold_score &lt; #{query.holdScore}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment